| 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_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
| 10 | 10 |
| (...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 } | 1110 } |
| 1111 | 1111 |
| 1112 | 1112 |
| 1113 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( | 1113 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( |
| 1114 HTailCallThroughMegamorphicCache* instr) { | 1114 HTailCallThroughMegamorphicCache* instr) { |
| 1115 LOperand* context = UseFixed(instr->context(), cp); | 1115 LOperand* context = UseFixed(instr->context(), cp); |
| 1116 LOperand* receiver_register = | 1116 LOperand* receiver_register = |
| 1117 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); | 1117 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); |
| 1118 LOperand* name_register = | 1118 LOperand* name_register = |
| 1119 UseFixed(instr->name(), LoadDescriptor::NameRegister()); | 1119 UseFixed(instr->name(), LoadDescriptor::NameRegister()); |
| 1120 LOperand* slot = NULL; | |
| 1121 LOperand* vector = NULL; | |
| 1122 if (FLAG_vector_ics) { | |
| 1123 slot = UseFixed(instr->slot(), VectorLoadICDescriptor::SlotRegister()); | |
| 1124 vector = | |
| 1125 UseFixed(instr->vector(), VectorLoadICDescriptor::VectorRegister()); | |
| 1126 } | |
| 1127 | 1120 |
| 1128 // Not marked as call. It can't deoptimize, and it never returns. | 1121 // Not marked as call. It can't deoptimize, and it never returns. |
| 1129 return new (zone()) LTailCallThroughMegamorphicCache( | 1122 return new (zone()) LTailCallThroughMegamorphicCache( |
| 1130 context, receiver_register, name_register, slot, vector); | 1123 context, receiver_register, name_register); |
| 1131 } | 1124 } |
| 1132 | 1125 |
| 1133 | 1126 |
| 1134 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 1127 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { |
| 1135 LOperand* context = UseFixed(instr->context(), cp); | 1128 LOperand* context = UseFixed(instr->context(), cp); |
| 1136 LOperand* function = UseFixed(instr->function(), a1); | 1129 LOperand* function = UseFixed(instr->function(), a1); |
| 1137 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); | 1130 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); |
| 1138 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1131 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
| 1139 } | 1132 } |
| 1140 | 1133 |
| (...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2605 LOperand* context = UseFixed(instr->context(), cp); | 2598 LOperand* context = UseFixed(instr->context(), cp); |
| 2606 LOperand* function = UseRegisterAtStart(instr->function()); | 2599 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2607 LAllocateBlockContext* result = | 2600 LAllocateBlockContext* result = |
| 2608 new(zone()) LAllocateBlockContext(context, function); | 2601 new(zone()) LAllocateBlockContext(context, function); |
| 2609 return MarkAsCall(DefineFixed(result, cp), instr); | 2602 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2610 } | 2603 } |
| 2611 | 2604 |
| 2612 } } // namespace v8::internal | 2605 } } // namespace v8::internal |
| 2613 | 2606 |
| 2614 #endif // V8_TARGET_ARCH_MIPS | 2607 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |