OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |