mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 775323 - move bindings construction (r=jorendorff)
--HG-- extra : rebase_source : 05e12cd2e2f7bd472bc1b5abdf1ebe51411e1975
This commit is contained in:
parent
81d9415df5
commit
cb24190c04
@ -1528,6 +1528,7 @@ JSScript::Create(JSContext *cx, HandleObject enclosingScope, bool savedCallerFun
|
||||
return NULL;
|
||||
|
||||
PodZero(script);
|
||||
new (&script->bindings) Bindings;
|
||||
|
||||
script->enclosingScope_ = enclosingScope;
|
||||
script->savedCallerFun = savedCallerFun;
|
||||
@ -1592,8 +1593,6 @@ JSScript::partiallyInit(JSContext *cx, Handle<JSScript*> script,
|
||||
|
||||
script->length = length;
|
||||
|
||||
new (&script->bindings) Bindings;
|
||||
|
||||
uint8_t *cursor = script->data;
|
||||
if (nconsts != 0) {
|
||||
script->setHasArray(CONSTS);
|
||||
@ -2222,7 +2221,6 @@ js::CloneScript(JSContext *cx, HandleObject enclosingScope, HandleFunction fun,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
new (&dst->bindings) Bindings;
|
||||
dst->bindings.transfer(&bindings);
|
||||
|
||||
/* This assignment must occur before all the Rebase calls. */
|
||||
|
Loading…
Reference in New Issue
Block a user