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