Changeset 59064 in webkit for trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
- Timestamp:
- May 9, 2010, 6:41:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r59005 r59064 35 35 #include "JSFunction.h" 36 36 #include "Interpreter.h" 37 #include "RegExp.h"38 #include "RegExpObject.h"39 37 #include "UString.h" 40 38 … … 828 826 829 827 return &m_constantPoolRegisters[index]; 828 } 829 830 unsigned BytecodeGenerator::addRegExp(RegExp* r) 831 { 832 return m_codeBlock->addRegExp(r); 830 833 } 831 834 … … 980 983 } 981 984 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 988 985 RegisterID* BytecodeGenerator::emitLoad(RegisterID* dst, JSValue v) 989 986 { … … 1381 1378 } 1382 1379 1380 RegisterID* BytecodeGenerator::emitNewRegExp(RegisterID* dst, RegExp* regExp) 1381 { 1382 emitOpcode(op_new_regexp); 1383 instructions().append(dst->index()); 1384 instructions().append(addRegExp(regExp)); 1385 return dst; 1386 } 1387 1388 1383 1389 RegisterID* BytecodeGenerator::emitNewFunctionExpression(RegisterID* r0, FuncExprNode* n) 1384 1390 {
Note:
See TracChangeset
for help on using the changeset viewer.