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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 | 401 |
402 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 402 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
403 object()->PrintTo(stream); | 403 object()->PrintTo(stream); |
404 stream->Add("."); | 404 stream->Add("."); |
405 stream->Add(*String::cast(*name())->ToCString()); | 405 stream->Add(*String::cast(*name())->ToCString()); |
406 stream->Add(" <- "); | 406 stream->Add(" <- "); |
407 value()->PrintTo(stream); | 407 value()->PrintTo(stream); |
408 } | 408 } |
409 | 409 |
410 | 410 |
| 411 void LLoadKeyed::PrintDataTo(StringStream* stream) { |
| 412 elements()->PrintTo(stream); |
| 413 stream->Add("["); |
| 414 key()->PrintTo(stream); |
| 415 if (hydrogen()->IsDehoisted()) { |
| 416 stream->Add(" + %d]", additional_index()); |
| 417 } else { |
| 418 stream->Add("]"); |
| 419 } |
| 420 } |
| 421 |
| 422 |
411 void LStoreKeyed::PrintDataTo(StringStream* stream) { | 423 void LStoreKeyed::PrintDataTo(StringStream* stream) { |
412 elements()->PrintTo(stream); | 424 elements()->PrintTo(stream); |
413 stream->Add("["); | 425 stream->Add("["); |
414 key()->PrintTo(stream); | 426 key()->PrintTo(stream); |
415 stream->Add("] <- "); | 427 if (hydrogen()->IsDehoisted()) { |
| 428 stream->Add(" + %d] <-", additional_index()); |
| 429 } else { |
| 430 stream->Add("] <- "); |
| 431 } |
416 value()->PrintTo(stream); | 432 value()->PrintTo(stream); |
417 } | 433 } |
418 | 434 |
419 | 435 |
420 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { | 436 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { |
421 object()->PrintTo(stream); | 437 object()->PrintTo(stream); |
422 stream->Add("["); | 438 stream->Add("["); |
423 key()->PrintTo(stream); | 439 key()->PrintTo(stream); |
424 stream->Add("] <- "); | 440 stream->Add("] <- "); |
425 value()->PrintTo(stream); | 441 value()->PrintTo(stream); |
(...skipping 1975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2401 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2417 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2402 LOperand* object = UseRegister(instr->object()); | 2418 LOperand* object = UseRegister(instr->object()); |
2403 LOperand* index = UseTempRegister(instr->index()); | 2419 LOperand* index = UseTempRegister(instr->index()); |
2404 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2420 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2405 } | 2421 } |
2406 | 2422 |
2407 | 2423 |
2408 } } // namespace v8::internal | 2424 } } // namespace v8::internal |
2409 | 2425 |
2410 #endif // V8_TARGET_ARCH_IA32 | 2426 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |