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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 arguments()->PrintTo(stream); | 371 arguments()->PrintTo(stream); |
372 stream->Add(" length "); | 372 stream->Add(" length "); |
373 length()->PrintTo(stream); | 373 length()->PrintTo(stream); |
374 stream->Add(" index "); | 374 stream->Add(" index "); |
375 index()->PrintTo(stream); | 375 index()->PrintTo(stream); |
376 } | 376 } |
377 | 377 |
378 | 378 |
379 void LStoreNamedField::PrintDataTo(StringStream* stream) { | 379 void LStoreNamedField::PrintDataTo(StringStream* stream) { |
380 object()->PrintTo(stream); | 380 object()->PrintTo(stream); |
381 stream->Add("."); | 381 stream->Add(".@%d", offset()); // TODO(titzer): use HObjectAccess |
382 stream->Add(*String::cast(*name())->ToCString()); | |
383 stream->Add(" <- "); | 382 stream->Add(" <- "); |
384 value()->PrintTo(stream); | 383 value()->PrintTo(stream); |
385 } | 384 } |
386 | 385 |
387 | 386 |
388 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 387 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
389 object()->PrintTo(stream); | 388 object()->PrintTo(stream); |
390 stream->Add("."); | 389 stream->Add("."); |
391 stream->Add(*String::cast(*name())->ToCString()); | 390 stream->Add(*String::cast(*name())->ToCString()); |
392 stream->Add(" <- "); | 391 stream->Add(" <- "); |
(...skipping 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2496 | 2495 |
2497 | 2496 |
2498 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2497 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2499 LOperand* object = UseRegister(instr->object()); | 2498 LOperand* object = UseRegister(instr->object()); |
2500 LOperand* index = UseRegister(instr->index()); | 2499 LOperand* index = UseRegister(instr->index()); |
2501 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2500 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2502 } | 2501 } |
2503 | 2502 |
2504 | 2503 |
2505 } } // namespace v8::internal | 2504 } } // namespace v8::internal |
OLD | NEW |