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

Side by Side Diff: src/crankshaft/x64/lithium-x64.cc

Issue 1728423002: [crankshaft] Remove useless HCallJSFunction instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@remove-dynamic-frame-alignment
Patch Set: Created 4 years, 9 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/crankshaft/x64/lithium-x64.h ('k') | src/crankshaft/x87/lithium-codegen-x87.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/crankshaft/x64/lithium-x64.h" 5 #include "src/crankshaft/x64/lithium-x64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 255
256 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { 256 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) {
257 stream->Add(" = "); 257 stream->Add(" = ");
258 base_object()->PrintTo(stream); 258 base_object()->PrintTo(stream);
259 stream->Add(" + "); 259 stream->Add(" + ");
260 offset()->PrintTo(stream); 260 offset()->PrintTo(stream);
261 } 261 }
262 262
263 263
264 void LCallJSFunction::PrintDataTo(StringStream* stream) {
265 stream->Add("= ");
266 function()->PrintTo(stream);
267 stream->Add("#%d / ", arity());
268 }
269
270
271 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { 264 void LCallWithDescriptor::PrintDataTo(StringStream* stream) {
272 for (int i = 0; i < InputCount(); i++) { 265 for (int i = 0; i < InputCount(); i++) {
273 InputAt(i)->PrintTo(stream); 266 InputAt(i)->PrintTo(stream);
274 stream->Add(" "); 267 stream->Add(" ");
275 } 268 }
276 stream->Add("#%d / ", arity()); 269 stream->Add("#%d / ", arity());
277 } 270 }
278 271
279 272
280 void LLoadContextSlot::PrintDataTo(StringStream* stream) { 273 void LLoadContextSlot::PrintDataTo(StringStream* stream) {
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 return DefineAsRegister(new(zone()) LContext); 1053 return DefineAsRegister(new(zone()) LContext);
1061 } 1054 }
1062 1055
1063 1056
1064 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { 1057 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) {
1065 LOperand* context = UseFixed(instr->context(), rsi); 1058 LOperand* context = UseFixed(instr->context(), rsi);
1066 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); 1059 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr);
1067 } 1060 }
1068 1061
1069 1062
1070 LInstruction* LChunkBuilder::DoCallJSFunction(
1071 HCallJSFunction* instr) {
1072 LOperand* function = UseFixed(instr->function(), rdi);
1073
1074 LCallJSFunction* result = new(zone()) LCallJSFunction(function);
1075
1076 return MarkAsCall(DefineFixed(result, rax), instr);
1077 }
1078
1079
1080 LInstruction* LChunkBuilder::DoCallWithDescriptor( 1063 LInstruction* LChunkBuilder::DoCallWithDescriptor(
1081 HCallWithDescriptor* instr) { 1064 HCallWithDescriptor* instr) {
1082 CallInterfaceDescriptor descriptor = instr->descriptor(); 1065 CallInterfaceDescriptor descriptor = instr->descriptor();
1083 1066
1084 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); 1067 LOperand* target = UseRegisterOrConstantAtStart(instr->target());
1085 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); 1068 ZoneList<LOperand*> ops(instr->OperandCount(), zone());
1086 // Target 1069 // Target
1087 ops.Add(target, zone()); 1070 ops.Add(target, zone());
1088 // Context 1071 // Context
1089 LOperand* op = UseFixed(instr->OperandAt(1), rsi); 1072 LOperand* op = UseFixed(instr->OperandAt(1), rsi);
(...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after
2625 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { 2608 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) {
2626 LOperand* context = UseRegisterAtStart(instr->context()); 2609 LOperand* context = UseRegisterAtStart(instr->context());
2627 return new(zone()) LStoreFrameContext(context); 2610 return new(zone()) LStoreFrameContext(context);
2628 } 2611 }
2629 2612
2630 2613
2631 } // namespace internal 2614 } // namespace internal
2632 } // namespace v8 2615 } // namespace v8
2633 2616
2634 #endif // V8_TARGET_ARCH_X64 2617 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-x64.h ('k') | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698