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

Side by Side Diff: src/crankshaft/arm64/lithium-arm64.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, 10 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/arm64/lithium-arm64.h ('k') | src/crankshaft/arm64/lithium-codegen-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/arm64/lithium-arm64.h" 5 #include "src/crankshaft/arm64/lithium-arm64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 index()->PrintTo(stream); 59 index()->PrintTo(stream);
60 } 60 }
61 61
62 62
63 void LBranch::PrintDataTo(StringStream* stream) { 63 void LBranch::PrintDataTo(StringStream* stream) {
64 stream->Add("B%d | B%d on ", true_block_id(), false_block_id()); 64 stream->Add("B%d | B%d on ", true_block_id(), false_block_id());
65 value()->PrintTo(stream); 65 value()->PrintTo(stream);
66 } 66 }
67 67
68 68
69 void LCallJSFunction::PrintDataTo(StringStream* stream) {
70 stream->Add("= ");
71 function()->PrintTo(stream);
72 stream->Add("#%d / ", arity());
73 }
74
75
76 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { 69 void LCallWithDescriptor::PrintDataTo(StringStream* stream) {
77 for (int i = 0; i < InputCount(); i++) { 70 for (int i = 0; i < InputCount(); i++) {
78 InputAt(i)->PrintTo(stream); 71 InputAt(i)->PrintTo(stream);
79 stream->Add(" "); 72 stream->Add(" ");
80 } 73 }
81 stream->Add("#%d / ", arity()); 74 stream->Add("#%d / ", arity());
82 } 75 }
83 76
84 77
85 void LCallNewArray::PrintDataTo(StringStream* stream) { 78 void LCallNewArray::PrintDataTo(StringStream* stream) {
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 DCHECK(needs_temps); 983 DCHECK(needs_temps);
991 return new(zone()) LBranch(UseRegister(value), temp1, temp2); 984 return new(zone()) LBranch(UseRegister(value), temp1, temp2);
992 } else { 985 } else {
993 return AssignEnvironment( 986 return AssignEnvironment(
994 new(zone()) LBranch(UseRegister(value), temp1, temp2)); 987 new(zone()) LBranch(UseRegister(value), temp1, temp2));
995 } 988 }
996 } 989 }
997 } 990 }
998 991
999 992
1000 LInstruction* LChunkBuilder::DoCallJSFunction(
1001 HCallJSFunction* instr) {
1002 LOperand* function = UseFixed(instr->function(), x1);
1003
1004 LCallJSFunction* result = new(zone()) LCallJSFunction(function);
1005
1006 return MarkAsCall(DefineFixed(result, x0), instr);
1007 }
1008
1009
1010 LInstruction* LChunkBuilder::DoCallWithDescriptor( 993 LInstruction* LChunkBuilder::DoCallWithDescriptor(
1011 HCallWithDescriptor* instr) { 994 HCallWithDescriptor* instr) {
1012 CallInterfaceDescriptor descriptor = instr->descriptor(); 995 CallInterfaceDescriptor descriptor = instr->descriptor();
1013 996
1014 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); 997 LOperand* target = UseRegisterOrConstantAtStart(instr->target());
1015 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); 998 ZoneList<LOperand*> ops(instr->OperandCount(), zone());
1016 // Target 999 // Target
1017 ops.Add(target, zone()); 1000 ops.Add(target, zone());
1018 // Context 1001 // Context
1019 LOperand* op = UseFixed(instr->OperandAt(1), cp); 1002 LOperand* op = UseFixed(instr->OperandAt(1), cp);
(...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after
2660 2643
2661 2644
2662 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { 2645 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) {
2663 LOperand* context = UseRegisterAtStart(instr->context()); 2646 LOperand* context = UseRegisterAtStart(instr->context());
2664 return new(zone()) LStoreFrameContext(context); 2647 return new(zone()) LStoreFrameContext(context);
2665 } 2648 }
2666 2649
2667 2650
2668 } // namespace internal 2651 } // namespace internal
2669 } // namespace v8 2652 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-arm64.h ('k') | src/crankshaft/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698