| 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 return LDoubleStackSlot::Create(index, zone()); | 444 return LDoubleStackSlot::Create(index, zone()); |
| 445 } else { | 445 } else { |
| 446 return LStackSlot::Create(index, zone()); | 446 return LStackSlot::Create(index, zone()); |
| 447 } | 447 } |
| 448 } | 448 } |
| 449 | 449 |
| 450 | 450 |
| 451 LPlatformChunk* LChunkBuilder::Build() { | 451 LPlatformChunk* LChunkBuilder::Build() { |
| 452 ASSERT(is_unused()); | 452 ASSERT(is_unused()); |
| 453 chunk_ = new(zone()) LPlatformChunk(info(), graph()); | 453 chunk_ = new(zone()) LPlatformChunk(info(), graph()); |
| 454 HPhase phase("L_Building chunk", chunk_); | 454 LPhase phase("L_Building chunk", chunk_); |
| 455 status_ = BUILDING; | 455 status_ = BUILDING; |
| 456 const ZoneList<HBasicBlock*>* blocks = graph()->blocks(); | 456 const ZoneList<HBasicBlock*>* blocks = graph()->blocks(); |
| 457 for (int i = 0; i < blocks->length(); i++) { | 457 for (int i = 0; i < blocks->length(); i++) { |
| 458 HBasicBlock* next = NULL; | 458 HBasicBlock* next = NULL; |
| 459 if (i < blocks->length() - 1) next = blocks->at(i + 1); | 459 if (i < blocks->length() - 1) next = blocks->at(i + 1); |
| 460 DoBasicBlock(blocks->at(i), next); | 460 DoBasicBlock(blocks->at(i), next); |
| 461 if (is_aborted()) return NULL; | 461 if (is_aborted()) return NULL; |
| 462 } | 462 } |
| 463 status_ = DONE; | 463 status_ = DONE; |
| 464 return chunk_; | 464 return chunk_; |
| (...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2662 | 2662 |
| 2663 | 2663 |
| 2664 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2664 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2665 LOperand* object = UseRegister(instr->object()); | 2665 LOperand* object = UseRegister(instr->object()); |
| 2666 LOperand* index = UseRegister(instr->index()); | 2666 LOperand* index = UseRegister(instr->index()); |
| 2667 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2667 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2668 } | 2668 } |
| 2669 | 2669 |
| 2670 | 2670 |
| 2671 } } // namespace v8::internal | 2671 } } // namespace v8::internal |
| OLD | NEW |