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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
10 #include "src/lithium-inl.h" | 10 #include "src/lithium-inl.h" |
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1097 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); | 1097 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); |
1098 ops.Add(op, zone()); | 1098 ops.Add(op, zone()); |
1099 } | 1099 } |
1100 | 1100 |
1101 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor( | 1101 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor( |
1102 descriptor, ops, zone()); | 1102 descriptor, ops, zone()); |
1103 return MarkAsCall(DefineFixed(result, v0), instr); | 1103 return MarkAsCall(DefineFixed(result, v0), instr); |
1104 } | 1104 } |
1105 | 1105 |
1106 | 1106 |
| 1107 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( |
| 1108 HTailCallThroughMegamorphicCache* instr) { |
| 1109 LOperand* context = UseFixed(instr->context(), cp); |
| 1110 LOperand* receiver_register = |
| 1111 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); |
| 1112 LOperand* name_register = |
| 1113 UseFixed(instr->name(), LoadDescriptor::NameRegister()); |
| 1114 // Not marked as call. It can't deoptimize, and it never returns. |
| 1115 return new (zone()) LTailCallThroughMegamorphicCache( |
| 1116 context, receiver_register, name_register); |
| 1117 } |
| 1118 |
| 1119 |
1107 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 1120 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { |
1108 LOperand* context = UseFixed(instr->context(), cp); | 1121 LOperand* context = UseFixed(instr->context(), cp); |
1109 LOperand* function = UseFixed(instr->function(), a1); | 1122 LOperand* function = UseFixed(instr->function(), a1); |
1110 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); | 1123 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); |
1111 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1124 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
1112 } | 1125 } |
1113 | 1126 |
1114 | 1127 |
1115 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { | 1128 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { |
1116 switch (instr->op()) { | 1129 switch (instr->op()) { |
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2577 LOperand* function = UseRegisterAtStart(instr->function()); | 2590 LOperand* function = UseRegisterAtStart(instr->function()); |
2578 LAllocateBlockContext* result = | 2591 LAllocateBlockContext* result = |
2579 new(zone()) LAllocateBlockContext(context, function); | 2592 new(zone()) LAllocateBlockContext(context, function); |
2580 return MarkAsCall(DefineFixed(result, cp), instr); | 2593 return MarkAsCall(DefineFixed(result, cp), instr); |
2581 } | 2594 } |
2582 | 2595 |
2583 | 2596 |
2584 } } // namespace v8::internal | 2597 } } // namespace v8::internal |
2585 | 2598 |
2586 #endif // V8_TARGET_ARCH_MIPS64 | 2599 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |