| 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 #include "src/arm/lithium-codegen-arm.h" | 9 #include "src/arm/lithium-codegen-arm.h" |
| 10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
| (...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); | 1098 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); |
| 1099 ops.Add(op, zone()); | 1099 ops.Add(op, zone()); |
| 1100 } | 1100 } |
| 1101 | 1101 |
| 1102 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor( | 1102 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor( |
| 1103 descriptor, ops, zone()); | 1103 descriptor, ops, zone()); |
| 1104 return MarkAsCall(DefineFixed(result, r0), instr); | 1104 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1105 } | 1105 } |
| 1106 | 1106 |
| 1107 | 1107 |
| 1108 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( | |
| 1109 HTailCallThroughMegamorphicCache* instr) { | |
| 1110 LOperand* context = UseFixed(instr->context(), cp); | |
| 1111 LOperand* receiver_register = | |
| 1112 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); | |
| 1113 LOperand* name_register = | |
| 1114 UseFixed(instr->name(), LoadDescriptor::NameRegister()); | |
| 1115 | |
| 1116 // Not marked as call. It can't deoptimize, and it never returns. | |
| 1117 return new (zone()) LTailCallThroughMegamorphicCache( | |
| 1118 context, receiver_register, name_register); | |
| 1119 } | |
| 1120 | |
| 1121 | |
| 1122 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 1108 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { |
| 1123 LOperand* context = UseFixed(instr->context(), cp); | 1109 LOperand* context = UseFixed(instr->context(), cp); |
| 1124 LOperand* function = UseFixed(instr->function(), r1); | 1110 LOperand* function = UseFixed(instr->function(), r1); |
| 1125 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); | 1111 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); |
| 1126 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1112 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
| 1127 } | 1113 } |
| 1128 | 1114 |
| 1129 | 1115 |
| 1130 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { | 1116 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { |
| 1131 switch (instr->op()) { | 1117 switch (instr->op()) { |
| (...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2680 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2666 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2681 HAllocateBlockContext* instr) { | 2667 HAllocateBlockContext* instr) { |
| 2682 LOperand* context = UseFixed(instr->context(), cp); | 2668 LOperand* context = UseFixed(instr->context(), cp); |
| 2683 LOperand* function = UseRegisterAtStart(instr->function()); | 2669 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2684 LAllocateBlockContext* result = | 2670 LAllocateBlockContext* result = |
| 2685 new(zone()) LAllocateBlockContext(context, function); | 2671 new(zone()) LAllocateBlockContext(context, function); |
| 2686 return MarkAsCall(DefineFixed(result, cp), instr); | 2672 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2687 } | 2673 } |
| 2688 | 2674 |
| 2689 } } // namespace v8::internal | 2675 } } // namespace v8::internal |
| OLD | NEW |