- Has a Function argument, Called from
FunctionNode* frontend::StandaloneFunctionCompiler<Unit>::parse
which has a function argument, called fromstatic bool CompileStandaloneFunction
which has a function argument. Called frombool frontend::CompileStandaloneGenerator
bool frontend::CompileStandaloneAsyncFunction
bool frontend::CompileStandaloneAsyncGenerator
- All of the above
CompileStandAlone
s, plus the belowCompileStandAloneFunction
are called fromCreateDynamicFunction
: the function is allocated there. The above three are -only- called fromCreateDynamicFunction
.
- All of the above
bool frontend::CompileStandaloneFunction
which has a function argument. Called fromJSFunction* FunctionCompiler::finish
which allocates the functionCompileStandAloneFunction
is called fromHandleInstantiationFailure
, which allocates a JSFunction for when AsmJS compilation fails for some reason.
- Function comes from
RootedFunction fun(cx_, handler_.nextLazyInnerFunction());
I can't quite figure out how this works (how do you get the 'right' lazyInnerFunction, does it matter?) -- is this infix related.
- Has a function argument, called from
GeneralParser<ParseHandler, Unit>::functionDefinition
which allocates the function
- Has function argument, called from
bool Parser<FullParseHandler, Unit>::trySyntaxParseInnerFunction
, has function argument. Called from: See above (GeneralParser<>::functionDefinition
)- An aside: This happens if we fail to do a syntax parse.
bool Parser<SyntaxParseHandler, Unit>::trySyntaxParseInnerFunction
, has function argument, called from: see above (GeneralParser<>::functionDefinition
)
- Has function argument called from
static bool CompileLazyFunctionImpl
. UsesRooted<JSFunction*> fun(cx, lazy->functionNonDelazifying());
as the function- Not sure how that works
- allocates a new function directly
- Allocates a new function directly.