Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/x87/lithium-x87.cc

Issue 564683002: X87: Encapsulate megamorphic load/tail-call in hydrogen (Closed) Base URL: https://github.com/v8/v8.git@bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/x87/lithium-x87.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_X87 7 #if V8_TARGET_ARCH_X87
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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); 1128 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1));
1129 ops.Add(op, zone()); 1129 ops.Add(op, zone());
1130 } 1130 }
1131 1131
1132 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor( 1132 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor(
1133 descriptor, ops, zone()); 1133 descriptor, ops, zone());
1134 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1134 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1135 } 1135 }
1136 1136
1137 1137
1138 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache(
1139 HTailCallThroughMegamorphicCache* instr) {
1140 LOperand* context = UseFixed(instr->context(), esi);
1141 LOperand* receiver_register =
1142 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister());
1143 LOperand* name_register =
1144 UseFixed(instr->name(), LoadDescriptor::NameRegister());
1145 // Not marked as call. It can't deoptimize, and it never returns.
1146 return new (zone()) LTailCallThroughMegamorphicCache(
1147 context, receiver_register, name_register);
1148 }
1149
1150
1138 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { 1151 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) {
1139 LOperand* context = UseFixed(instr->context(), esi); 1152 LOperand* context = UseFixed(instr->context(), esi);
1140 LOperand* function = UseFixed(instr->function(), edi); 1153 LOperand* function = UseFixed(instr->function(), edi);
1141 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); 1154 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function);
1142 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1155 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1143 } 1156 }
1144 1157
1145 1158
1146 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1159 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1147 switch (instr->op()) { 1160 switch (instr->op()) {
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
2677 LOperand* function = UseRegisterAtStart(instr->function()); 2690 LOperand* function = UseRegisterAtStart(instr->function());
2678 LAllocateBlockContext* result = 2691 LAllocateBlockContext* result =
2679 new(zone()) LAllocateBlockContext(context, function); 2692 new(zone()) LAllocateBlockContext(context, function);
2680 return MarkAsCall(DefineFixed(result, esi), instr); 2693 return MarkAsCall(DefineFixed(result, esi), instr);
2681 } 2694 }
2682 2695
2683 2696
2684 } } // namespace v8::internal 2697 } } // namespace v8::internal
2685 2698
2686 #endif // V8_TARGET_ARCH_X87 2699 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/lithium-x87.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698