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

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

Issue 1081883002: Remove unnecessary options from HTailCallThroughMegamorphicCache (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. Created 5 years, 8 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/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 <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 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 } 1105 }
1106 1106
1107 1107
1108 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( 1108 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache(
1109 HTailCallThroughMegamorphicCache* instr) { 1109 HTailCallThroughMegamorphicCache* instr) {
1110 LOperand* context = UseFixed(instr->context(), cp); 1110 LOperand* context = UseFixed(instr->context(), cp);
1111 LOperand* receiver_register = 1111 LOperand* receiver_register =
1112 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); 1112 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister());
1113 LOperand* name_register = 1113 LOperand* name_register =
1114 UseFixed(instr->name(), LoadDescriptor::NameRegister()); 1114 UseFixed(instr->name(), LoadDescriptor::NameRegister());
1115 LOperand* slot = NULL;
1116 LOperand* vector = NULL;
1117 if (FLAG_vector_ics) {
1118 slot = UseFixed(instr->slot(), VectorLoadICDescriptor::SlotRegister());
1119 vector =
1120 UseFixed(instr->vector(), VectorLoadICDescriptor::VectorRegister());
1121 }
1122 1115
1123 // Not marked as call. It can't deoptimize, and it never returns. 1116 // Not marked as call. It can't deoptimize, and it never returns.
1124 return new (zone()) LTailCallThroughMegamorphicCache( 1117 return new (zone()) LTailCallThroughMegamorphicCache(
1125 context, receiver_register, name_register, slot, vector); 1118 context, receiver_register, name_register);
1126 } 1119 }
1127 1120
1128 1121
1129 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { 1122 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) {
1130 LOperand* context = UseFixed(instr->context(), cp); 1123 LOperand* context = UseFixed(instr->context(), cp);
1131 LOperand* function = UseFixed(instr->function(), r1); 1124 LOperand* function = UseFixed(instr->function(), r1);
1132 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); 1125 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function);
1133 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1126 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1134 } 1127 }
1135 1128
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after
2655 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2648 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2656 HAllocateBlockContext* instr) { 2649 HAllocateBlockContext* instr) {
2657 LOperand* context = UseFixed(instr->context(), cp); 2650 LOperand* context = UseFixed(instr->context(), cp);
2658 LOperand* function = UseRegisterAtStart(instr->function()); 2651 LOperand* function = UseRegisterAtStart(instr->function());
2659 LAllocateBlockContext* result = 2652 LAllocateBlockContext* result =
2660 new(zone()) LAllocateBlockContext(context, function); 2653 new(zone()) LAllocateBlockContext(context, function);
2661 return MarkAsCall(DefineFixed(result, cp), instr); 2654 return MarkAsCall(DefineFixed(result, cp), instr);
2662 } 2655 }
2663 2656
2664 } } // namespace v8::internal 2657 } } // 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