Changeset 80684 in webkit for trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Mar 9, 2011, 6:22:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r80598 r80684 1550 1550 */ 1551 1551 int dst = vPC[1].u.operand; 1552 int regExp = vPC[2].u.operand; 1553 callFrame->uncheckedR(dst) = JSValue(new (globalData) RegExpObject(callFrame->lexicalGlobalObject(), callFrame->scopeChain()->globalObject->regExpStructure(), codeBlock->regexp(regExp))); 1552 RegExp* regExp = codeBlock->regexp(vPC[2].u.operand); 1553 if (!regExp->isValid()) { 1554 exceptionValue = createSyntaxError(exec, "Invalid flags supplied to RegExp constructor."); 1555 goto vm_throw; 1556 } 1557 callFrame->uncheckedR(dst) = JSValue(new (globalData) RegExpObject(callFrame->lexicalGlobalObject(), callFrame->scopeChain()->globalObject->regExpStructure(), regExp)); 1554 1558 1555 1559 vPC += OPCODE_LENGTH(op_new_regexp);
Note:
See TracChangeset
for help on using the changeset viewer.