| 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 | 402 |
| 403 void LStoreKeyed::PrintDataTo(StringStream* stream) { | 403 void LStoreKeyed::PrintDataTo(StringStream* stream) { |
| 404 elements()->PrintTo(stream); | 404 elements()->PrintTo(stream); |
| 405 stream->Add("["); | 405 stream->Add("["); |
| 406 key()->PrintTo(stream); | 406 key()->PrintTo(stream); |
| 407 if (hydrogen()->IsDehoisted()) { | 407 if (hydrogen()->IsDehoisted()) { |
| 408 stream->Add(" + %d] <-", additional_index()); | 408 stream->Add(" + %d] <-", additional_index()); |
| 409 } else { | 409 } else { |
| 410 stream->Add("] <- "); | 410 stream->Add("] <- "); |
| 411 } | 411 } |
| 412 value()->PrintTo(stream); | 412 |
| 413 if (value() == NULL) { |
| 414 ASSERT(hydrogen()->IsConstantHoleStore() && |
| 415 hydrogen()->value()->representation().IsDouble()); |
| 416 stream->Add("<the hole(nan)>"); |
| 417 } else { |
| 418 value()->PrintTo(stream); |
| 419 } |
| 413 } | 420 } |
| 414 | 421 |
| 415 | 422 |
| 416 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { | 423 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { |
| 417 object()->PrintTo(stream); | 424 object()->PrintTo(stream); |
| 418 stream->Add("["); | 425 stream->Add("["); |
| 419 key()->PrintTo(stream); | 426 key()->PrintTo(stream); |
| 420 stream->Add("] <- "); | 427 stream->Add("] <- "); |
| 421 value()->PrintTo(stream); | 428 value()->PrintTo(stream); |
| 422 } | 429 } |
| (...skipping 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2499 | 2506 |
| 2500 | 2507 |
| 2501 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2508 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2502 LOperand* object = UseRegister(instr->object()); | 2509 LOperand* object = UseRegister(instr->object()); |
| 2503 LOperand* index = UseRegister(instr->index()); | 2510 LOperand* index = UseRegister(instr->index()); |
| 2504 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2511 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2505 } | 2512 } |
| 2506 | 2513 |
| 2507 | 2514 |
| 2508 } } // namespace v8::internal | 2515 } } // namespace v8::internal |
| OLD | NEW |