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

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

Issue 57123002: Reland 21774: Generate KeyedLoadGeneric with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Turn off by default Created 7 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
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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 stream->Add(" <- "); 423 stream->Add(" <- ");
424 value()->PrintTo(stream); 424 value()->PrintTo(stream);
425 } 425 }
426 426
427 427
428 void LLoadKeyed::PrintDataTo(StringStream* stream) { 428 void LLoadKeyed::PrintDataTo(StringStream* stream) {
429 elements()->PrintTo(stream); 429 elements()->PrintTo(stream);
430 stream->Add("["); 430 stream->Add("[");
431 key()->PrintTo(stream); 431 key()->PrintTo(stream);
432 if (hydrogen()->IsDehoisted()) { 432 if (hydrogen()->IsDehoisted()) {
433 stream->Add(" + %d]", additional_index()); 433 stream->Add(" + %d]", base_offset());
434 } else { 434 } else {
435 stream->Add("]"); 435 stream->Add("]");
436 } 436 }
437 } 437 }
438 438
439 439
440 void LStoreKeyed::PrintDataTo(StringStream* stream) { 440 void LStoreKeyed::PrintDataTo(StringStream* stream) {
441 elements()->PrintTo(stream); 441 elements()->PrintTo(stream);
442 stream->Add("["); 442 stream->Add("[");
443 key()->PrintTo(stream); 443 key()->PrintTo(stream);
444 if (hydrogen()->IsDehoisted()) { 444 if (hydrogen()->IsDehoisted()) {
445 stream->Add(" + %d] <-", additional_index()); 445 stream->Add(" + %d] <-", base_offset());
446 } else { 446 } else {
447 stream->Add("] <- "); 447 stream->Add("] <- ");
448 } 448 }
449 449
450 if (value() == NULL) { 450 if (value() == NULL) {
451 ASSERT(hydrogen()->IsConstantHoleStore() && 451 ASSERT(hydrogen()->IsConstantHoleStore() &&
452 hydrogen()->value()->representation().IsDouble()); 452 hydrogen()->value()->representation().IsDouble());
453 stream->Add("<the hole(nan)>"); 453 stream->Add("<the hole(nan)>");
454 } else { 454 } else {
455 value()->PrintTo(stream); 455 value()->PrintTo(stream);
(...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after
2788 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2788 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2789 LOperand* object = UseRegister(instr->object()); 2789 LOperand* object = UseRegister(instr->object());
2790 LOperand* index = UseTempRegister(instr->index()); 2790 LOperand* index = UseTempRegister(instr->index());
2791 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2791 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2792 } 2792 }
2793 2793
2794 2794
2795 } } // namespace v8::internal 2795 } } // namespace v8::internal
2796 2796
2797 #endif // V8_TARGET_ARCH_IA32 2797 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/hydrogen-instructions.cc ('K') | « src/ia32/lithium-ia32.h ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698