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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 return LDoubleStackSlot::Create(index, zone()); | 448 return LDoubleStackSlot::Create(index, zone()); |
449 } else { | 449 } else { |
450 return LStackSlot::Create(index, zone()); | 450 return LStackSlot::Create(index, zone()); |
451 } | 451 } |
452 } | 452 } |
453 | 453 |
454 | 454 |
455 LPlatformChunk* LChunkBuilder::Build() { | 455 LPlatformChunk* LChunkBuilder::Build() { |
456 ASSERT(is_unused()); | 456 ASSERT(is_unused()); |
457 chunk_ = new(zone()) LPlatformChunk(info(), graph()); | 457 chunk_ = new(zone()) LPlatformChunk(info(), graph()); |
458 HPhase phase("L_Building chunk", chunk_); | 458 LPhase phase("L_Building chunk", chunk_); |
459 status_ = BUILDING; | 459 status_ = BUILDING; |
460 const ZoneList<HBasicBlock*>* blocks = graph()->blocks(); | 460 const ZoneList<HBasicBlock*>* blocks = graph()->blocks(); |
461 for (int i = 0; i < blocks->length(); i++) { | 461 for (int i = 0; i < blocks->length(); i++) { |
462 HBasicBlock* next = NULL; | 462 HBasicBlock* next = NULL; |
463 if (i < blocks->length() - 1) next = blocks->at(i + 1); | 463 if (i < blocks->length() - 1) next = blocks->at(i + 1); |
464 DoBasicBlock(blocks->at(i), next); | 464 DoBasicBlock(blocks->at(i), next); |
465 if (is_aborted()) return NULL; | 465 if (is_aborted()) return NULL; |
466 } | 466 } |
467 status_ = DONE; | 467 status_ = DONE; |
468 return chunk_; | 468 return chunk_; |
(...skipping 2115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2584 | 2584 |
2585 | 2585 |
2586 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2586 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2587 LOperand* object = UseRegister(instr->object()); | 2587 LOperand* object = UseRegister(instr->object()); |
2588 LOperand* index = UseRegister(instr->index()); | 2588 LOperand* index = UseRegister(instr->index()); |
2589 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2589 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2590 } | 2590 } |
2591 | 2591 |
2592 | 2592 |
2593 } } // namespace v8::internal | 2593 } } // namespace v8::internal |
OLD | NEW |