| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
| 10 #include "src/lithium-inl.h" | 10 #include "src/lithium-inl.h" |
| (...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1104 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); | 1104 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); |
| 1105 ops.Add(op, zone()); | 1105 ops.Add(op, zone()); |
| 1106 } | 1106 } |
| 1107 | 1107 |
| 1108 LCallWithDescriptor* result = | 1108 LCallWithDescriptor* result = |
| 1109 new (zone()) LCallWithDescriptor(descriptor, ops, zone()); | 1109 new (zone()) LCallWithDescriptor(descriptor, ops, zone()); |
| 1110 return MarkAsCall(DefineFixed(result, r3), instr); | 1110 return MarkAsCall(DefineFixed(result, r3), instr); |
| 1111 } | 1111 } |
| 1112 | 1112 |
| 1113 | 1113 |
| 1114 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( | |
| 1115 HTailCallThroughMegamorphicCache* instr) { | |
| 1116 LOperand* context = UseFixed(instr->context(), cp); | |
| 1117 LOperand* receiver_register = | |
| 1118 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); | |
| 1119 LOperand* name_register = | |
| 1120 UseFixed(instr->name(), LoadDescriptor::NameRegister()); | |
| 1121 | |
| 1122 // Not marked as call. It can't deoptimize, and it never returns. | |
| 1123 return new (zone()) LTailCallThroughMegamorphicCache( | |
| 1124 context, receiver_register, name_register); | |
| 1125 } | |
| 1126 | |
| 1127 | |
| 1128 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 1114 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { |
| 1129 LOperand* context = UseFixed(instr->context(), cp); | 1115 LOperand* context = UseFixed(instr->context(), cp); |
| 1130 LOperand* function = UseFixed(instr->function(), r4); | 1116 LOperand* function = UseFixed(instr->function(), r4); |
| 1131 LInvokeFunction* result = new (zone()) LInvokeFunction(context, function); | 1117 LInvokeFunction* result = new (zone()) LInvokeFunction(context, function); |
| 1132 return MarkAsCall(DefineFixed(result, r3), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1118 return MarkAsCall(DefineFixed(result, r3), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
| 1133 } | 1119 } |
| 1134 | 1120 |
| 1135 | 1121 |
| 1136 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { | 1122 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { |
| 1137 switch (instr->op()) { | 1123 switch (instr->op()) { |
| (...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2629 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2615 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2630 HAllocateBlockContext* instr) { | 2616 HAllocateBlockContext* instr) { |
| 2631 LOperand* context = UseFixed(instr->context(), cp); | 2617 LOperand* context = UseFixed(instr->context(), cp); |
| 2632 LOperand* function = UseRegisterAtStart(instr->function()); | 2618 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2633 LAllocateBlockContext* result = | 2619 LAllocateBlockContext* result = |
| 2634 new (zone()) LAllocateBlockContext(context, function); | 2620 new (zone()) LAllocateBlockContext(context, function); |
| 2635 return MarkAsCall(DefineFixed(result, cp), instr); | 2621 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2636 } | 2622 } |
| 2637 } | 2623 } |
| 2638 } // namespace v8::internal | 2624 } // namespace v8::internal |
| OLD | NEW |