| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <sstream> | 5 #include <sstream> |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_X87 | 9 #if V8_TARGET_ARCH_X87 |
| 10 | 10 |
| (...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 | 1166 |
| 1167 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( | 1167 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( |
| 1168 HTailCallThroughMegamorphicCache* instr) { | 1168 HTailCallThroughMegamorphicCache* instr) { |
| 1169 LOperand* context = UseFixed(instr->context(), esi); | 1169 LOperand* context = UseFixed(instr->context(), esi); |
| 1170 LOperand* receiver_register = | 1170 LOperand* receiver_register = |
| 1171 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); | 1171 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); |
| 1172 LOperand* name_register = | 1172 LOperand* name_register = |
| 1173 UseFixed(instr->name(), LoadDescriptor::NameRegister()); | 1173 UseFixed(instr->name(), LoadDescriptor::NameRegister()); |
| 1174 LOperand* slot = NULL; | |
| 1175 LOperand* vector = NULL; | |
| 1176 if (FLAG_vector_ics) { | |
| 1177 slot = UseFixed(instr->slot(), VectorLoadICDescriptor::SlotRegister()); | |
| 1178 vector = | |
| 1179 UseFixed(instr->vector(), VectorLoadICDescriptor::VectorRegister()); | |
| 1180 } | |
| 1181 | 1174 |
| 1182 // Not marked as call. It can't deoptimize, and it never returns. | 1175 // Not marked as call. It can't deoptimize, and it never returns. |
| 1183 return new (zone()) LTailCallThroughMegamorphicCache( | 1176 return new (zone()) LTailCallThroughMegamorphicCache( |
| 1184 context, receiver_register, name_register, slot, vector); | 1177 context, receiver_register, name_register); |
| 1185 } | 1178 } |
| 1186 | 1179 |
| 1187 | 1180 |
| 1188 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 1181 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { |
| 1189 LOperand* context = UseFixed(instr->context(), esi); | 1182 LOperand* context = UseFixed(instr->context(), esi); |
| 1190 LOperand* function = UseFixed(instr->function(), edi); | 1183 LOperand* function = UseFixed(instr->function(), edi); |
| 1191 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); | 1184 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); |
| 1192 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1185 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
| 1193 } | 1186 } |
| 1194 | 1187 |
| (...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2724 LOperand* function = UseRegisterAtStart(instr->function()); | 2717 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2725 LAllocateBlockContext* result = | 2718 LAllocateBlockContext* result = |
| 2726 new(zone()) LAllocateBlockContext(context, function); | 2719 new(zone()) LAllocateBlockContext(context, function); |
| 2727 return MarkAsCall(DefineFixed(result, esi), instr); | 2720 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2728 } | 2721 } |
| 2729 | 2722 |
| 2730 | 2723 |
| 2731 } } // namespace v8::internal | 2724 } } // namespace v8::internal |
| 2732 | 2725 |
| 2733 #endif // V8_TARGET_ARCH_X87 | 2726 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |