Open zhuzilin opened 2 years ago
I'm trying to implement a stack-based virtual machine inside es.
I would use bytecode of SpiderMonkey: https://udn.realityripple.com/docs/Mozilla/Projects/SpiderMonkey/Internals/Bytecodes which is the only stack-based bytecode from a mainstream engine that is "well" documented.
The structure of the stack-based VM could be similar to JVM, as documented in the spec: https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-2.html
The main performance bottleneck with the current implementation is that the property visiting is slow (the hashmap visiting costs around 40% of time). To completely solve this, I need to implement both the hidden class and inline caching (which means a good byte code design is also needed), which is too much work......
recent:
functions:
long term