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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-x64.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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 } 1126 }
1127 1127
1128 1128
1129 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( 1129 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache(
1130 HTailCallThroughMegamorphicCache* instr) { 1130 HTailCallThroughMegamorphicCache* instr) {
1131 LOperand* context = UseFixed(instr->context(), rsi); 1131 LOperand* context = UseFixed(instr->context(), rsi);
1132 LOperand* receiver_register = 1132 LOperand* receiver_register =
1133 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); 1133 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister());
1134 LOperand* name_register = 1134 LOperand* name_register =
1135 UseFixed(instr->name(), LoadDescriptor::NameRegister()); 1135 UseFixed(instr->name(), LoadDescriptor::NameRegister());
1136 LOperand* slot = NULL;
1137 LOperand* vector = NULL;
1138 if (FLAG_vector_ics) {
1139 slot = UseFixed(instr->slot(), VectorLoadICDescriptor::SlotRegister());
1140 vector =
1141 UseFixed(instr->vector(), VectorLoadICDescriptor::VectorRegister());
1142 }
1143 1136
1144 // Not marked as call. It can't deoptimize, and it never returns. 1137 // Not marked as call. It can't deoptimize, and it never returns.
1145 return new (zone()) LTailCallThroughMegamorphicCache( 1138 return new (zone()) LTailCallThroughMegamorphicCache(
1146 context, receiver_register, name_register, slot, vector); 1139 context, receiver_register, name_register);
1147 } 1140 }
1148 1141
1149 1142
1150 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { 1143 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) {
1151 LOperand* context = UseFixed(instr->context(), rsi); 1144 LOperand* context = UseFixed(instr->context(), rsi);
1152 LOperand* function = UseFixed(instr->function(), rdi); 1145 LOperand* function = UseFixed(instr->function(), rdi);
1153 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); 1146 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function);
1154 return MarkAsCall(DefineFixed(result, rax), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1147 return MarkAsCall(DefineFixed(result, rax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1155 } 1148 }
1156 1149
(...skipping 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 LOperand* function = UseRegisterAtStart(instr->function()); 2686 LOperand* function = UseRegisterAtStart(instr->function());
2694 LAllocateBlockContext* result = 2687 LAllocateBlockContext* result =
2695 new(zone()) LAllocateBlockContext(context, function); 2688 new(zone()) LAllocateBlockContext(context, function);
2696 return MarkAsCall(DefineFixed(result, rsi), instr); 2689 return MarkAsCall(DefineFixed(result, rsi), instr);
2697 } 2690 }
2698 2691
2699 2692
2700 } } // namespace v8::internal 2693 } } // namespace v8::internal
2701 2694
2702 #endif // V8_TARGET_ARCH_X64 2695 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698