Bug 1182428 - Refactor bytecode compilation r=luke

This commit is contained in:
Jon Coppeard 2015-07-15 11:50:38 +01:00
parent 4b52004fb6
commit 938be66def
3 changed files with 560 additions and 375 deletions

File diff suppressed because it is too large Load Diff

View File

@ -40,7 +40,7 @@ bool
CompileFunctionBody(JSContext* cx, MutableHandleFunction fun,
const ReadOnlyCompileOptions& options,
const AutoNameVector& formals, JS::SourceBufferHolder& srcBuf,
HandleObject enclosingStaticScope);
Handle<ScopeObject*> enclosingStaticScope);
bool
CompileStarGeneratorBody(JSContext* cx, MutableHandleFunction fun,
const ReadOnlyCompileOptions& options,

View File

@ -4199,7 +4199,7 @@ CompileFunction(JSContext* cx, const ReadOnlyCompileOptions& optionsArg,
const char* name, unsigned nargs, const char* const* argnames,
SourceBufferHolder& srcBuf,
HandleObject enclosingDynamicScope,
HandleObject enclosingStaticScope,
Handle<ScopeObject*> enclosingStaticScope,
MutableHandleFunction fun)
{
MOZ_ASSERT(!cx->runtime()->isAtomsCompartment(cx->compartment()));