Too Long; Didn't Read
The data structure that saves bytecodes is SharedFunction, and the SharedFunction bound to the context is JSFunction. A SharedFunction is like a DLL, a common library that can be shared by multiple programs. In this paper, we’ll talk about the JSJunction’s code and the memory layout. We’ve got a look at the code and memory layout of Chrome V8. The code is the definition of JSFunction: public JSObject.