| 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 | 449 |
| 450 void LTransitionElementsKind::PrintDataTo(StringStream* stream) { | 450 void LTransitionElementsKind::PrintDataTo(StringStream* stream) { |
| 451 object()->PrintTo(stream); | 451 object()->PrintTo(stream); |
| 452 stream->Add(" %p -> %p", *original_map(), *transitioned_map()); | 452 stream->Add(" %p -> %p", *original_map(), *transitioned_map()); |
| 453 } | 453 } |
| 454 | 454 |
| 455 | 455 |
| 456 LPlatformChunk* LChunkBuilder::Build() { | 456 LPlatformChunk* LChunkBuilder::Build() { |
| 457 ASSERT(is_unused()); | 457 ASSERT(is_unused()); |
| 458 chunk_ = new(zone()) LPlatformChunk(info(), graph()); | 458 chunk_ = new(zone()) LPlatformChunk(info(), graph()); |
| 459 HPhase phase("L_Building chunk", chunk_); | 459 LPhase phase("L_Building chunk", chunk_); |
| 460 status_ = BUILDING; | 460 status_ = BUILDING; |
| 461 const ZoneList<HBasicBlock*>* blocks = graph()->blocks(); | 461 const ZoneList<HBasicBlock*>* blocks = graph()->blocks(); |
| 462 for (int i = 0; i < blocks->length(); i++) { | 462 for (int i = 0; i < blocks->length(); i++) { |
| 463 HBasicBlock* next = NULL; | 463 HBasicBlock* next = NULL; |
| 464 if (i < blocks->length() - 1) next = blocks->at(i + 1); | 464 if (i < blocks->length() - 1) next = blocks->at(i + 1); |
| 465 DoBasicBlock(blocks->at(i), next); | 465 DoBasicBlock(blocks->at(i), next); |
| 466 if (is_aborted()) return NULL; | 466 if (is_aborted()) return NULL; |
| 467 } | 467 } |
| 468 status_ = DONE; | 468 status_ = DONE; |
| 469 return chunk_; | 469 return chunk_; |
| (...skipping 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2601 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2601 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2602 LOperand* object = UseRegister(instr->object()); | 2602 LOperand* object = UseRegister(instr->object()); |
| 2603 LOperand* index = UseTempRegister(instr->index()); | 2603 LOperand* index = UseTempRegister(instr->index()); |
| 2604 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2604 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2605 } | 2605 } |
| 2606 | 2606 |
| 2607 | 2607 |
| 2608 } } // namespace v8::internal | 2608 } } // namespace v8::internal |
| 2609 | 2609 |
| 2610 #endif // V8_TARGET_ARCH_X64 | 2610 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |