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

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

Issue 15793006: Fix LStoreKeyed error when tracing instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added an assert Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-ia32.cc ('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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 420
421 void LStoreKeyed::PrintDataTo(StringStream* stream) { 421 void LStoreKeyed::PrintDataTo(StringStream* stream) {
422 elements()->PrintTo(stream); 422 elements()->PrintTo(stream);
423 stream->Add("["); 423 stream->Add("[");
424 key()->PrintTo(stream); 424 key()->PrintTo(stream);
425 if (hydrogen()->IsDehoisted()) { 425 if (hydrogen()->IsDehoisted()) {
426 stream->Add(" + %d] <-", additional_index()); 426 stream->Add(" + %d] <-", additional_index());
427 } else { 427 } else {
428 stream->Add("] <- "); 428 stream->Add("] <- ");
429 } 429 }
430 value()->PrintTo(stream); 430
431 if (value() == NULL) {
432 ASSERT(hydrogen()->IsConstantHoleStore() &&
433 hydrogen()->value()->representation().IsDouble());
434 stream->Add("<the hole(nan)>");
435 } else {
436 value()->PrintTo(stream);
437 }
431 } 438 }
432 439
433 440
434 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { 441 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) {
435 object()->PrintTo(stream); 442 object()->PrintTo(stream);
436 stream->Add("["); 443 stream->Add("[");
437 key()->PrintTo(stream); 444 key()->PrintTo(stream);
438 stream->Add("] <- "); 445 stream->Add("] <- ");
439 value()->PrintTo(stream); 446 value()->PrintTo(stream);
440 } 447 }
(...skipping 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after
2567 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2574 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2568 LOperand* object = UseRegister(instr->object()); 2575 LOperand* object = UseRegister(instr->object());
2569 LOperand* index = UseTempRegister(instr->index()); 2576 LOperand* index = UseTempRegister(instr->index());
2570 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2577 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2571 } 2578 }
2572 2579
2573 2580
2574 } } // namespace v8::internal 2581 } } // namespace v8::internal
2575 2582
2576 #endif // V8_TARGET_ARCH_X64 2583 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698