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

Side by Side Diff: src/arm/lithium-arm.cc

Issue 11348176: Add dehoisting to the string printout of hydrogen and lithium instructions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Whitespace issues found by presubmit. Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/hydrogen-instructions.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 366
367 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { 367 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) {
368 object()->PrintTo(stream); 368 object()->PrintTo(stream);
369 stream->Add("."); 369 stream->Add(".");
370 stream->Add(*String::cast(*name())->ToCString()); 370 stream->Add(*String::cast(*name())->ToCString());
371 stream->Add(" <- "); 371 stream->Add(" <- ");
372 value()->PrintTo(stream); 372 value()->PrintTo(stream);
373 } 373 }
374 374
375 375
376 void LLoadKeyed::PrintDataTo(StringStream* stream) {
377 elements()->PrintTo(stream);
378 stream->Add("[");
379 key()->PrintTo(stream);
380 if (hydrogen()->IsDehoisted()) {
381 stream->Add(" + %d]", additional_index());
382 } else {
383 stream->Add("]");
384 }
385 }
386
387
376 void LStoreKeyed::PrintDataTo(StringStream* stream) { 388 void LStoreKeyed::PrintDataTo(StringStream* stream) {
377 elements()->PrintTo(stream); 389 elements()->PrintTo(stream);
378 stream->Add("["); 390 stream->Add("[");
379 key()->PrintTo(stream); 391 key()->PrintTo(stream);
380 stream->Add("] <- "); 392 if (hydrogen()->IsDehoisted()) {
393 stream->Add(" + %d] <-", additional_index());
394 } else {
395 stream->Add("] <- ");
396 }
381 value()->PrintTo(stream); 397 value()->PrintTo(stream);
382 } 398 }
383 399
384 400
385 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { 401 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) {
386 object()->PrintTo(stream); 402 object()->PrintTo(stream);
387 stream->Add("["); 403 stream->Add("[");
388 key()->PrintTo(stream); 404 key()->PrintTo(stream);
389 stream->Add("] <- "); 405 stream->Add("] <- ");
390 value()->PrintTo(stream); 406 value()->PrintTo(stream);
(...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 2316
2301 2317
2302 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2318 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2303 LOperand* object = UseRegister(instr->object()); 2319 LOperand* object = UseRegister(instr->object());
2304 LOperand* index = UseRegister(instr->index()); 2320 LOperand* index = UseRegister(instr->index());
2305 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2321 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2306 } 2322 }
2307 2323
2308 2324
2309 } } // namespace v8::internal 2325 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698