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

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

Issue 1731303002: [crankshaft] Remove useless HCallFunction instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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/ppc/lithium-ppc.h ('k') | src/crankshaft/x64/lithium-codegen-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ppc/lithium-ppc.h" 5 #include "src/crankshaft/ppc/lithium-ppc.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/lithium-inl.h" 10 #include "src/crankshaft/lithium-inl.h"
(...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 LCallFunction::PrintDataTo(StringStream* stream) {
265 context()->PrintTo(stream);
266 stream->Add(" ");
267 function()->PrintTo(stream);
268 if (hydrogen()->HasVectorAndSlot()) {
269 stream->Add(" (type-feedback-vector ");
270 temp_vector()->PrintTo(stream);
271 stream->Add(" ");
272 temp_slot()->PrintTo(stream);
273 stream->Add(")");
274 }
275 }
276
277
278 void LCallJSFunction::PrintDataTo(StringStream* stream) { 264 void LCallJSFunction::PrintDataTo(StringStream* stream) {
279 stream->Add("= "); 265 stream->Add("= ");
280 function()->PrintTo(stream); 266 function()->PrintTo(stream);
281 stream->Add("#%d / ", arity()); 267 stream->Add("#%d / ", arity());
282 } 268 }
283 269
284 270
285 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { 271 void LCallWithDescriptor::PrintDataTo(StringStream* stream) {
286 for (int i = 0; i < InputCount(); i++) { 272 for (int i = 0; i < InputCount(); i++) {
287 InputAt(i)->PrintTo(stream); 273 InputAt(i)->PrintTo(stream);
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 1204
1219 1205
1220 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) { 1206 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) {
1221 LOperand* context = UseFixed(instr->context(), cp); 1207 LOperand* context = UseFixed(instr->context(), cp);
1222 LOperand* constructor = UseFixed(instr->constructor(), r4); 1208 LOperand* constructor = UseFixed(instr->constructor(), r4);
1223 LCallNewArray* result = new (zone()) LCallNewArray(context, constructor); 1209 LCallNewArray* result = new (zone()) LCallNewArray(context, constructor);
1224 return MarkAsCall(DefineFixed(result, r3), instr); 1210 return MarkAsCall(DefineFixed(result, r3), instr);
1225 } 1211 }
1226 1212
1227 1213
1228 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1229 LOperand* context = UseFixed(instr->context(), cp);
1230 LOperand* function = UseFixed(instr->function(), r4);
1231 LOperand* slot = NULL;
1232 LOperand* vector = NULL;
1233 if (instr->HasVectorAndSlot()) {
1234 slot = FixedTemp(r6);
1235 vector = FixedTemp(r5);
1236 }
1237
1238 LCallFunction* call =
1239 new (zone()) LCallFunction(context, function, slot, vector);
1240 return MarkAsCall(DefineFixed(call, r3), instr);
1241 }
1242
1243
1244 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { 1214 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) {
1245 LOperand* context = UseFixed(instr->context(), cp); 1215 LOperand* context = UseFixed(instr->context(), cp);
1246 return MarkAsCall(DefineFixed(new (zone()) LCallRuntime(context), r3), instr); 1216 return MarkAsCall(DefineFixed(new (zone()) LCallRuntime(context), r3), instr);
1247 } 1217 }
1248 1218
1249 1219
1250 LInstruction* LChunkBuilder::DoRor(HRor* instr) { 1220 LInstruction* LChunkBuilder::DoRor(HRor* instr) {
1251 return DoShift(Token::ROR, instr); 1221 return DoShift(Token::ROR, instr);
1252 } 1222 }
1253 1223
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
2549 } 2519 }
2550 2520
2551 2521
2552 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { 2522 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) {
2553 LOperand* context = UseRegisterAtStart(instr->context()); 2523 LOperand* context = UseRegisterAtStart(instr->context());
2554 return new (zone()) LStoreFrameContext(context); 2524 return new (zone()) LStoreFrameContext(context);
2555 } 2525 }
2556 2526
2557 } // namespace internal 2527 } // namespace internal
2558 } // namespace v8 2528 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.h ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698