ScriptStencilBase and ScriptStencil are merged into ScriptStencil
ScriptStencil is the struct for top-level script, non-lazy function, and lazy function
ImmutableScriptData holds bytecode etc that is owned by non-lazy script (both top-level and function)
FunctionStencil was jsparagus-specific struct that has some field of FunctionBox, to instantiate JSFunction. those fields are going to be moved into ScriptStencil in m-c, so we move it into ScriptStencil here as well
Vec≤RegExp> is shared across all scripts, so moved to EmitResult
EmitResult now contains top level script ScriptStencil, and Vec<ScriptStencil> for functions, and Vec<ImmutableScriptData> for non-lazy scripts
ScriptStencilBase
andScriptStencil
are merged intoScriptStencil
ScriptStencil
is the struct for top-level script, non-lazy function, and lazy functionImmutableScriptData
holds bytecode etc that is owned by non-lazy script (both top-level and function)FunctionStencil
was jsparagus-specific struct that has some field ofFunctionBox
, to instantiateJSFunction
. those fields are going to be moved intoScriptStencil
in m-c, so we move it intoScriptStencil
here as wellVec≤RegExp>
is shared across all scripts, so moved toEmitResult
EmitResult
now contains top level scriptScriptStencil
, andVec<ScriptStencil>
for functions, andVec<ImmutableScriptData>
for non-lazy scripts