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 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); | 1103 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); |
1104 ops.Add(op, zone()); | 1104 ops.Add(op, zone()); |
1105 } | 1105 } |
1106 | 1106 |
1107 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor( | 1107 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor( |
1108 descriptor, ops, zone()); | 1108 descriptor, ops, zone()); |
1109 return MarkAsCall(DefineFixed(result, v0), instr); | 1109 return MarkAsCall(DefineFixed(result, v0), instr); |
1110 } | 1110 } |
1111 | 1111 |
1112 | 1112 |
1113 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( | |
1114 HTailCallThroughMegamorphicCache* instr) { | |
1115 LOperand* context = UseFixed(instr->context(), cp); | |
1116 LOperand* receiver_register = | |
1117 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); | |
1118 LOperand* name_register = | |
1119 UseFixed(instr->name(), LoadDescriptor::NameRegister()); | |
1120 | |
1121 // Not marked as call. It can't deoptimize, and it never returns. | |
1122 return new (zone()) LTailCallThroughMegamorphicCache( | |
1123 context, receiver_register, name_register); | |
1124 } | |
1125 | |
1126 | |
1127 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 1113 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { |
1128 LOperand* context = UseFixed(instr->context(), cp); | 1114 LOperand* context = UseFixed(instr->context(), cp); |
1129 LOperand* function = UseFixed(instr->function(), a1); | 1115 LOperand* function = UseFixed(instr->function(), a1); |
1130 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); | 1116 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); |
1131 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1117 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
1132 } | 1118 } |
1133 | 1119 |
1134 | 1120 |
1135 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { | 1121 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { |
1136 switch (instr->op()) { | 1122 switch (instr->op()) { |
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2630 LOperand* context = UseFixed(instr->context(), cp); | 2616 LOperand* context = UseFixed(instr->context(), cp); |
2631 LOperand* function = UseRegisterAtStart(instr->function()); | 2617 LOperand* function = UseRegisterAtStart(instr->function()); |
2632 LAllocateBlockContext* result = | 2618 LAllocateBlockContext* result = |
2633 new(zone()) LAllocateBlockContext(context, function); | 2619 new(zone()) LAllocateBlockContext(context, function); |
2634 return MarkAsCall(DefineFixed(result, cp), instr); | 2620 return MarkAsCall(DefineFixed(result, cp), instr); |
2635 } | 2621 } |
2636 | 2622 |
2637 } } // namespace v8::internal | 2623 } } // namespace v8::internal |
2638 | 2624 |
2639 #endif // V8_TARGET_ARCH_MIPS | 2625 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |