Fixed E3 bugs throughout. Added /Op to build for bug in numerics.cpp code

inherited from SpiderMonkey.


git-svn-id: svn://10.0.0.236/trunk@142342 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
2003-05-12 21:33:18 +00:00
parent 22c581e6eb
commit 022516fe63
5 changed files with 40 additions and 15 deletions

View File

@@ -137,7 +137,7 @@
push(a);
}
else {
if (length || fInst->isMethodClosure) {
if (length || fInst->isMethodClosure || fWrap->compileFrame->buildArguments) {
pFrame = new ParameterFrame(fWrap->compileFrame);
pFrame->instantiate(meta->env);
pFrame->thisObject = a;
@@ -155,7 +155,10 @@
// XXX constructing a parameterFrame only for the purpose of holding the 'this'
// need to find a more efficient way of stashing 'this'
// used to be : "meta->env->addFrame(fWrap->compileFrame->prototype);"
meta->env->addFrame(new ParameterFrame(a, fWrap->compileFrame->prototype));
// Still need to mark the frame as a runtime frame (see stmtnode::return in validate)
pFrame = new ParameterFrame(a, fWrap->compileFrame->prototype);
pFrame->pluralFrame = fWrap->compileFrame;
meta->env->addFrame(pFrame);
}
}
}