stack and heap in V8 ( JavaScript)

后端 未结 3 493
-上瘾入骨i
-上瘾入骨i 2020-11-28 22:47

does V8 uses stack and heap like the JVM? if so does it put primitives on the stack and objects on the heap?

3条回答
  •  半阙折子戏
    2020-11-28 23:30

    In the most general terms, Yes V8 uses a heap and stack for functioning wherein general local variables are stored in the stack while the objects that need to be maintained are stored in the heap.

提交回复
热议问题