Changeset 57955 in webkit for trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
- Timestamp:
- Apr 20, 2010, 11:41:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r55833 r57955 35 35 #include "JSFunction.h" 36 36 #include "Interpreter.h" 37 #include "RegExp.h" 38 #include "RegExpObject.h" 37 39 #include "UString.h" 38 40 … … 826 828 827 829 return &m_constantPoolRegisters[index]; 828 }829 830 unsigned BytecodeGenerator::addRegExp(RegExp* r)831 {832 return m_codeBlock->addRegExp(r);833 830 } 834 831 … … 983 980 } 984 981 982 RegisterID* BytecodeGenerator::emitLoad(RegisterID* dst, RegExp* regExp) 983 { 984 JSValue jsRegExp = new (globalData()) RegExpObject(m_scopeChain->globalObject()->regExpStructure(), regExp); 985 return emitLoad(dst, jsRegExp); 986 } 987 985 988 RegisterID* BytecodeGenerator::emitLoad(RegisterID* dst, JSValue v) 986 989 { … … 1362 1365 } 1363 1366 1364 RegisterID* BytecodeGenerator::emitNewRegExp(RegisterID* dst, RegExp* regExp)1365 {1366 emitOpcode(op_new_regexp);1367 instructions().append(dst->index());1368 instructions().append(addRegExp(regExp));1369 return dst;1370 }1371 1372 1373 1367 RegisterID* BytecodeGenerator::emitNewFunctionExpression(RegisterID* r0, FuncExprNode* n) 1374 1368 {
Note:
See TracChangeset
for help on using the changeset viewer.