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

Side by Side Diff: src/x64/lithium-x64.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 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/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 // 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 388
389 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { 389 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) {
390 object()->PrintTo(stream); 390 object()->PrintTo(stream);
391 stream->Add("."); 391 stream->Add(".");
392 stream->Add(*String::cast(*name())->ToCString()); 392 stream->Add(*String::cast(*name())->ToCString());
393 stream->Add(" <- "); 393 stream->Add(" <- ");
394 value()->PrintTo(stream); 394 value()->PrintTo(stream);
395 } 395 }
396 396
397 397
398 void LLoadKeyed::PrintDataTo(StringStream* stream) {
399 elements()->PrintTo(stream);
400 stream->Add("[");
401 key()->PrintTo(stream);
402 if (hydrogen()->IsDehoisted()) {
403 stream->Add(" + %d]", additional_index());
404 } else {
405 stream->Add("]");
406 }
407 }
408
409
398 void LStoreKeyed::PrintDataTo(StringStream* stream) { 410 void LStoreKeyed::PrintDataTo(StringStream* stream) {
399 elements()->PrintTo(stream); 411 elements()->PrintTo(stream);
400 stream->Add("["); 412 stream->Add("[");
401 key()->PrintTo(stream); 413 key()->PrintTo(stream);
402 stream->Add("] <- "); 414 if (hydrogen()->IsDehoisted()) {
415 stream->Add(" + %d] <-", additional_index());
416 } else {
417 stream->Add("] <- ");
418 }
403 value()->PrintTo(stream); 419 value()->PrintTo(stream);
404 } 420 }
405 421
406 422
407 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { 423 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) {
408 object()->PrintTo(stream); 424 object()->PrintTo(stream);
409 stream->Add("["); 425 stream->Add("[");
410 key()->PrintTo(stream); 426 key()->PrintTo(stream);
411 stream->Add("] <- "); 427 stream->Add("] <- ");
412 value()->PrintTo(stream); 428 value()->PrintTo(stream);
(...skipping 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after
2259 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2275 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2260 LOperand* object = UseRegister(instr->object()); 2276 LOperand* object = UseRegister(instr->object());
2261 LOperand* index = UseTempRegister(instr->index()); 2277 LOperand* index = UseTempRegister(instr->index());
2262 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2278 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2263 } 2279 }
2264 2280
2265 2281
2266 } } // namespace v8::internal 2282 } } // namespace v8::internal
2267 2283
2268 #endif // V8_TARGET_ARCH_X64 2284 #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