Changeset 59064 in webkit for trunk/JavaScriptCore/interpreter
- Timestamp:
- May 9, 2010, 6:41:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/Interpreter.cpp
r58986 r59064 1305 1305 1306 1306 vPC += OPCODE_LENGTH(op_new_array); 1307 NEXT_INSTRUCTION(); 1308 } 1309 DEFINE_OPCODE(op_new_regexp) { 1310 /* new_regexp dst(r) regExp(re) 1311 1312 Constructs a new RegExp instance using the original 1313 constructor from regexp regExp, and puts the result in 1314 register dst. 1315 */ 1316 int dst = vPC[1].u.operand; 1317 int regExp = vPC[2].u.operand; 1318 callFrame->r(dst) = JSValue(new (globalData) RegExpObject(callFrame->scopeChain()->globalObject->regExpStructure(), callFrame->codeBlock()->regexp(regExp))); 1319 1320 vPC += OPCODE_LENGTH(op_new_regexp); 1307 1321 NEXT_INSTRUCTION(); 1308 1322 }
Note:
See TracChangeset
for help on using the changeset viewer.