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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-ia32.h ('k') | src/mips/lithium-codegen-mips.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 #if V8_TARGET_ARCH_IA32 9 #if V8_TARGET_ARCH_IA32
10 10
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 } 1146 }
1147 1147
1148 1148
1149 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( 1149 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache(
1150 HTailCallThroughMegamorphicCache* instr) { 1150 HTailCallThroughMegamorphicCache* instr) {
1151 LOperand* context = UseFixed(instr->context(), esi); 1151 LOperand* context = UseFixed(instr->context(), esi);
1152 LOperand* receiver_register = 1152 LOperand* receiver_register =
1153 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); 1153 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister());
1154 LOperand* name_register = 1154 LOperand* name_register =
1155 UseFixed(instr->name(), LoadDescriptor::NameRegister()); 1155 UseFixed(instr->name(), LoadDescriptor::NameRegister());
1156 LOperand* slot = NULL;
1157 LOperand* vector = NULL;
1158 if (FLAG_vector_ics) {
1159 slot = UseFixed(instr->slot(), VectorLoadICDescriptor::SlotRegister());
1160 vector =
1161 UseFixed(instr->vector(), VectorLoadICDescriptor::VectorRegister());
1162 }
1163 1156
1164 // Not marked as call. It can't deoptimize, and it never returns. 1157 // Not marked as call. It can't deoptimize, and it never returns.
1165 return new (zone()) LTailCallThroughMegamorphicCache( 1158 return new (zone()) LTailCallThroughMegamorphicCache(
1166 context, receiver_register, name_register, slot, vector); 1159 context, receiver_register, name_register);
1167 } 1160 }
1168 1161
1169 1162
1170 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { 1163 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) {
1171 LOperand* context = UseFixed(instr->context(), esi); 1164 LOperand* context = UseFixed(instr->context(), esi);
1172 LOperand* function = UseFixed(instr->function(), edi); 1165 LOperand* function = UseFixed(instr->function(), edi);
1173 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); 1166 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function);
1174 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1167 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1175 } 1168 }
1176 1169
(...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after
2720 LOperand* function = UseRegisterAtStart(instr->function()); 2713 LOperand* function = UseRegisterAtStart(instr->function());
2721 LAllocateBlockContext* result = 2714 LAllocateBlockContext* result =
2722 new(zone()) LAllocateBlockContext(context, function); 2715 new(zone()) LAllocateBlockContext(context, function);
2723 return MarkAsCall(DefineFixed(result, esi), instr); 2716 return MarkAsCall(DefineFixed(result, esi), instr);
2724 } 2717 }
2725 2718
2726 2719
2727 } } // namespace v8::internal 2720 } } // namespace v8::internal
2728 2721
2729 #endif // V8_TARGET_ARCH_IA32 2722 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698