| 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_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
| 10 | 10 |
| (...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); | 1139 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); |
| 1140 ops.Add(op, zone()); | 1140 ops.Add(op, zone()); |
| 1141 } | 1141 } |
| 1142 | 1142 |
| 1143 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor( | 1143 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor( |
| 1144 descriptor, ops, zone()); | 1144 descriptor, ops, zone()); |
| 1145 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1145 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
| 1146 } | 1146 } |
| 1147 | 1147 |
| 1148 | 1148 |
| 1149 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( | |
| 1150 HTailCallThroughMegamorphicCache* instr) { | |
| 1151 LOperand* context = UseFixed(instr->context(), esi); | |
| 1152 LOperand* receiver_register = | |
| 1153 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); | |
| 1154 LOperand* name_register = | |
| 1155 UseFixed(instr->name(), LoadDescriptor::NameRegister()); | |
| 1156 | |
| 1157 // Not marked as call. It can't deoptimize, and it never returns. | |
| 1158 return new (zone()) LTailCallThroughMegamorphicCache( | |
| 1159 context, receiver_register, name_register); | |
| 1160 } | |
| 1161 | |
| 1162 | |
| 1163 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 1149 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { |
| 1164 LOperand* context = UseFixed(instr->context(), esi); | 1150 LOperand* context = UseFixed(instr->context(), esi); |
| 1165 LOperand* function = UseFixed(instr->function(), edi); | 1151 LOperand* function = UseFixed(instr->function(), edi); |
| 1166 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); | 1152 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); |
| 1167 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1153 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
| 1168 } | 1154 } |
| 1169 | 1155 |
| 1170 | 1156 |
| 1171 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { | 1157 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { |
| 1172 switch (instr->op()) { | 1158 switch (instr->op()) { |
| (...skipping 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2745 LOperand* function = UseRegisterAtStart(instr->function()); | 2731 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2746 LAllocateBlockContext* result = | 2732 LAllocateBlockContext* result = |
| 2747 new(zone()) LAllocateBlockContext(context, function); | 2733 new(zone()) LAllocateBlockContext(context, function); |
| 2748 return MarkAsCall(DefineFixed(result, esi), instr); | 2734 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2749 } | 2735 } |
| 2750 | 2736 |
| 2751 | 2737 |
| 2752 } } // namespace v8::internal | 2738 } } // namespace v8::internal |
| 2753 | 2739 |
| 2754 #endif // V8_TARGET_ARCH_IA32 | 2740 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |