Changeset 39229 in webkit for trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
- Timestamp:
- Dec 12, 2008, 12:02:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r39198 r39229 981 981 982 982 if (globalObject) { 983 #if ENABLE(JIT) 984 m_codeBlock->addGlobalResolveInfo(); 985 #else 983 986 m_codeBlock->addGlobalResolveInstruction(instructions().size()); 987 #endif 984 988 emitOpcode(op_resolve_global); 985 989 instructions().append(dst->index()); … … 1061 1065 RegisterID* BytecodeGenerator::emitGetById(RegisterID* dst, RegisterID* base, const Identifier& property) 1062 1066 { 1067 #if ENABLE(JIT) 1068 m_codeBlock->addStructureStubInfo(StructureStubInfo(op_get_by_id)); 1069 #else 1063 1070 m_codeBlock->addPropertyAccessInstruction(instructions().size()); 1071 #endif 1064 1072 1065 1073 emitOpcode(op_get_by_id); … … 1076 1084 RegisterID* BytecodeGenerator::emitPutById(RegisterID* base, const Identifier& property, RegisterID* value) 1077 1085 { 1086 #if ENABLE(JIT) 1087 m_codeBlock->addStructureStubInfo(StructureStubInfo(op_put_by_id)); 1088 #else 1078 1089 m_codeBlock->addPropertyAccessInstruction(instructions().size()); 1090 #endif 1079 1091 1080 1092 emitOpcode(op_put_by_id); … … 1248 1260 1249 1261 emitExpressionInfo(divot, startOffset, endOffset); 1262 1263 #if ENABLE(JIT) 1250 1264 m_codeBlock->addCallLinkInfo(); 1265 #endif 1251 1266 1252 1267 // Emit call. … … 1327 1342 1328 1343 emitExpressionInfo(divot, startOffset, endOffset); 1344 1345 #if ENABLE(JIT) 1329 1346 m_codeBlock->addCallLinkInfo(); 1347 #endif 1330 1348 1331 1349 emitOpcode(op_construct); … … 1545 1563 RegisterID* BytecodeGenerator::emitCatch(RegisterID* targetRegister, Label* start, Label* end) 1546 1564 { 1565 #if ENABLE(JIT) 1547 1566 HandlerInfo info = { start->offsetFrom(0), end->offsetFrom(0), instructions().size(), m_dynamicScopeDepth, 0 }; 1567 #else 1568 HandlerInfo info = { start->offsetFrom(0), end->offsetFrom(0), instructions().size(), m_dynamicScopeDepth }; 1569 #endif 1570 1548 1571 m_codeBlock->addExceptionHandler(info); 1549 1572 emitOpcode(op_catch);
Note:
See TracChangeset
for help on using the changeset viewer.