Fixed FrameSlotRef for nested functions. Bug in octal parsing.
git-svn-id: svn://10.0.0.236/trunk@141247 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -4456,7 +4456,7 @@ XXX see EvalAttributeExpression, where identifiers are being handled for now...
|
||||
ASSERT(plural->positional[i]->cloneContent->memberKind == Member::VariableMember);
|
||||
(checked_cast<Variable *>(plural->positional[i]->cloneContent))->value = argBase[i];
|
||||
}
|
||||
meta->arrayClass->writePublic(meta, OBJECT_TO_JS2VAL(argsObj), meta->arrayClass, meta->engine->numberToString(i), true, argBase[i]);
|
||||
meta->objectClass->writePublic(meta, OBJECT_TO_JS2VAL(argsObj), meta->objectClass, meta->engine->numberToString(i), true, argBase[i]);
|
||||
}
|
||||
while (i++ < length) {
|
||||
if (i < plural->positionalCount) {
|
||||
@@ -4464,10 +4464,10 @@ XXX see EvalAttributeExpression, where identifiers are being handled for now...
|
||||
ASSERT(plural->positional[i]->cloneContent->memberKind == Member::VariableMember);
|
||||
(checked_cast<Variable *>(plural->positional[i]->cloneContent))->value = JS2VAL_UNDEFINED;
|
||||
}
|
||||
meta->arrayClass->writePublic(meta, OBJECT_TO_JS2VAL(argsObj), meta->arrayClass, meta->engine->numberToString(i), true, JS2VAL_UNDEFINED);
|
||||
meta->objectClass->writePublic(meta, OBJECT_TO_JS2VAL(argsObj), meta->objectClass, meta->engine->numberToString(i), true, JS2VAL_UNDEFINED);
|
||||
}
|
||||
setLength(meta, argsObj, argCount);
|
||||
meta->arrayClass->writePublic(meta, OBJECT_TO_JS2VAL(argsObj), meta->arrayClass, meta->engine->allocStringPtr("callee"), true, OBJECT_TO_JS2VAL(fnObj));
|
||||
meta->objectClass->writePublic(meta, OBJECT_TO_JS2VAL(argsObj), meta->objectClass, meta->engine->allocStringPtr("callee"), true, OBJECT_TO_JS2VAL(fnObj));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -284,7 +284,7 @@
|
||||
push((*localFrame->slots)[slotIndex]);
|
||||
}
|
||||
break;
|
||||
/*
|
||||
|
||||
case eFrameSlotRef:
|
||||
{
|
||||
uint16 slotIndex = BytecodeContainer::getShort(pc);
|
||||
@@ -294,7 +294,7 @@
|
||||
push((*localFrame->slots)[slotIndex]);
|
||||
}
|
||||
break;
|
||||
*/
|
||||
|
||||
case ePackageSlotWrite:
|
||||
{
|
||||
uint16 slotIndex = BytecodeContainer::getShort(pc);
|
||||
|
||||
@@ -363,10 +363,10 @@ bool JS::Lexer::lexNumeral()
|
||||
} else
|
||||
reader.setPos(pos);
|
||||
goto done;
|
||||
} else if (isASCIIDecimalDigit(ch)) {
|
||||
} else if (isASCIIOctalDigit(ch)) {
|
||||
// Backward compatible hack, support octal for SpiderMonkey's sake
|
||||
octal = true;
|
||||
while (isASCIIDecimalDigit(ch)) {
|
||||
while (isASCIIOctalDigit(ch)) {
|
||||
reader.recordChar(ch);
|
||||
ch = getChar();
|
||||
}
|
||||
|
||||
@@ -235,6 +235,7 @@ namespace JavaScript
|
||||
};
|
||||
|
||||
inline bool isASCIIDecimalDigit(char16 c) {return c >= '0' && c <= '9';}
|
||||
inline bool isASCIIOctalDigit(char16 c) {return c >= '0' && c <= '7';}
|
||||
bool isASCIIHexDigit(char16 c, uint &digit);
|
||||
|
||||
const char16 *skipWhiteSpace(const char16 *str, const char16 *strEnd);
|
||||
|
||||
Reference in New Issue
Block a user