| 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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 stream->Add(" <- "); | 387 stream->Add(" <- "); |
| 388 value()->PrintTo(stream); | 388 value()->PrintTo(stream); |
| 389 } | 389 } |
| 390 | 390 |
| 391 | 391 |
| 392 void LLoadKeyed::PrintDataTo(StringStream* stream) { | 392 void LLoadKeyed::PrintDataTo(StringStream* stream) { |
| 393 elements()->PrintTo(stream); | 393 elements()->PrintTo(stream); |
| 394 stream->Add("["); | 394 stream->Add("["); |
| 395 key()->PrintTo(stream); | 395 key()->PrintTo(stream); |
| 396 if (hydrogen()->IsDehoisted()) { | 396 if (hydrogen()->IsDehoisted()) { |
| 397 stream->Add(" + %d]", additional_index()); | 397 stream->Add(" + %d]", base_offset()); |
| 398 } else { | 398 } else { |
| 399 stream->Add("]"); | 399 stream->Add("]"); |
| 400 } | 400 } |
| 401 } | 401 } |
| 402 | 402 |
| 403 | 403 |
| 404 void LStoreKeyed::PrintDataTo(StringStream* stream) { | 404 void LStoreKeyed::PrintDataTo(StringStream* stream) { |
| 405 elements()->PrintTo(stream); | 405 elements()->PrintTo(stream); |
| 406 stream->Add("["); | 406 stream->Add("["); |
| 407 key()->PrintTo(stream); | 407 key()->PrintTo(stream); |
| 408 if (hydrogen()->IsDehoisted()) { | 408 if (hydrogen()->IsDehoisted()) { |
| 409 stream->Add(" + %d] <-", additional_index()); | 409 stream->Add(" + %d] <-", base_offset()); |
| 410 } else { | 410 } else { |
| 411 stream->Add("] <- "); | 411 stream->Add("] <- "); |
| 412 } | 412 } |
| 413 | 413 |
| 414 if (value() == NULL) { | 414 if (value() == NULL) { |
| 415 ASSERT(hydrogen()->IsConstantHoleStore() && | 415 ASSERT(hydrogen()->IsConstantHoleStore() && |
| 416 hydrogen()->value()->representation().IsDouble()); | 416 hydrogen()->value()->representation().IsDouble()); |
| 417 stream->Add("<the hole(nan)>"); | 417 stream->Add("<the hole(nan)>"); |
| 418 } else { | 418 } else { |
| 419 value()->PrintTo(stream); | 419 value()->PrintTo(stream); |
| (...skipping 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2623 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2623 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2624 LOperand* object = UseRegister(instr->object()); | 2624 LOperand* object = UseRegister(instr->object()); |
| 2625 LOperand* index = UseTempRegister(instr->index()); | 2625 LOperand* index = UseTempRegister(instr->index()); |
| 2626 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2626 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2627 } | 2627 } |
| 2628 | 2628 |
| 2629 | 2629 |
| 2630 } } // namespace v8::internal | 2630 } } // namespace v8::internal |
| 2631 | 2631 |
| 2632 #endif // V8_TARGET_ARCH_X64 | 2632 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |