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

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

Issue 535873002: Encapsulate megamorphic load/tail-call in hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | 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 #include "src/arm/lithium-codegen-arm.h" 7 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/hydrogen-osr.h" 8 #include "src/hydrogen-osr.h"
9 #include "src/lithium-inl.h" 9 #include "src/lithium-inl.h"
10 10
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); 1092 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1));
1093 ops.Add(op, zone()); 1093 ops.Add(op, zone());
1094 } 1094 }
1095 1095
1096 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor( 1096 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor(
1097 descriptor, ops, zone()); 1097 descriptor, ops, zone());
1098 return MarkAsCall(DefineFixed(result, r0), instr); 1098 return MarkAsCall(DefineFixed(result, r0), instr);
1099 } 1099 }
1100 1100
1101 1101
1102 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache(
1103 HTailCallThroughMegamorphicCache* instr) {
1104 LOperand* context = UseFixed(instr->context(), cp);
1105 LOperand* receiver_register =
1106 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister());
1107 LOperand* name_register =
1108 UseFixed(instr->name(), LoadDescriptor::NameRegister());
1109 // Not marked as call. It can't deoptimize, and it never returns.
1110 return new (zone()) LTailCallThroughMegamorphicCache(
1111 context, receiver_register, name_register);
1112 }
1113
1114
1102 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { 1115 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) {
1103 LOperand* context = UseFixed(instr->context(), cp); 1116 LOperand* context = UseFixed(instr->context(), cp);
1104 LOperand* function = UseFixed(instr->function(), r1); 1117 LOperand* function = UseFixed(instr->function(), r1);
1105 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); 1118 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function);
1106 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1119 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1107 } 1120 }
1108 1121
1109 1122
1110 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1123 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1111 switch (instr->op()) { 1124 switch (instr->op()) {
(...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after
2625 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2638 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2626 HAllocateBlockContext* instr) { 2639 HAllocateBlockContext* instr) {
2627 LOperand* context = UseFixed(instr->context(), cp); 2640 LOperand* context = UseFixed(instr->context(), cp);
2628 LOperand* function = UseRegisterAtStart(instr->function()); 2641 LOperand* function = UseRegisterAtStart(instr->function());
2629 LAllocateBlockContext* result = 2642 LAllocateBlockContext* result =
2630 new(zone()) LAllocateBlockContext(context, function); 2643 new(zone()) LAllocateBlockContext(context, function);
2631 return MarkAsCall(DefineFixed(result, cp), instr); 2644 return MarkAsCall(DefineFixed(result, cp), instr);
2632 } 2645 }
2633 2646
2634 } } // namespace v8::internal 2647 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698