| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 return DefineAsRegister(new(zone()) LContext); | 1126 return DefineAsRegister(new(zone()) LContext); |
| 1127 } | 1127 } |
| 1128 | 1128 |
| 1129 | 1129 |
| 1130 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { | 1130 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { |
| 1131 LOperand* context = UseFixed(instr->context(), esi); | 1131 LOperand* context = UseFixed(instr->context(), esi); |
| 1132 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); | 1132 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); |
| 1133 } | 1133 } |
| 1134 | 1134 |
| 1135 | 1135 |
| 1136 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { | |
| 1137 LOperand* context = UseRegisterAtStart(instr->value()); | |
| 1138 return DefineAsRegister(new(zone()) LGlobalObject(context)); | |
| 1139 } | |
| 1140 | |
| 1141 | |
| 1142 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) { | |
| 1143 LOperand* global_object = UseRegisterAtStart(instr->value()); | |
| 1144 return DefineAsRegister(new(zone()) LGlobalReceiver(global_object)); | |
| 1145 } | |
| 1146 | |
| 1147 | |
| 1148 LInstruction* LChunkBuilder::DoCallJSFunction( | 1136 LInstruction* LChunkBuilder::DoCallJSFunction( |
| 1149 HCallJSFunction* instr) { | 1137 HCallJSFunction* instr) { |
| 1150 LOperand* function = UseFixed(instr->function(), edi); | 1138 LOperand* function = UseFixed(instr->function(), edi); |
| 1151 | 1139 |
| 1152 LCallJSFunction* result = new(zone()) LCallJSFunction(function); | 1140 LCallJSFunction* result = new(zone()) LCallJSFunction(function); |
| 1153 | 1141 |
| 1154 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1142 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
| 1155 } | 1143 } |
| 1156 | 1144 |
| 1157 | 1145 |
| (...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2618 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2619 LOperand* object = UseRegister(instr->object()); | 2607 LOperand* object = UseRegister(instr->object()); |
| 2620 LOperand* index = UseTempRegister(instr->index()); | 2608 LOperand* index = UseTempRegister(instr->index()); |
| 2621 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2609 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2622 } | 2610 } |
| 2623 | 2611 |
| 2624 | 2612 |
| 2625 } } // namespace v8::internal | 2613 } } // namespace v8::internal |
| 2626 | 2614 |
| 2627 #endif // V8_TARGET_ARCH_IA32 | 2615 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |