OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 13 matching lines...) Expand all Loading... |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #include "x64/lithium-x64.h" | 28 #include "x64/lithium-x64.h" |
29 #include "x64/lithium-codegen-x64.h" | 29 #include "x64/lithium-codegen-x64.h" |
30 | 30 |
31 namespace v8 { | 31 namespace v8 { |
32 namespace internal { | 32 namespace internal { |
33 | 33 |
34 | |
35 LChunk* LChunkBuilder::Build() { | 34 LChunk* LChunkBuilder::Build() { |
36 ASSERT(is_unused()); | 35 ASSERT(is_unused()); |
37 chunk_ = new LChunk(graph()); | 36 chunk_ = new LChunk(graph()); |
38 HPhase phase("Building chunk", chunk_); | 37 HPhase phase("Building chunk", chunk_); |
39 status_ = BUILDING; | 38 status_ = BUILDING; |
40 const ZoneList<HBasicBlock*>* blocks = graph()->blocks(); | 39 const ZoneList<HBasicBlock*>* blocks = graph()->blocks(); |
41 for (int i = 0; i < blocks->length(); i++) { | 40 for (int i = 0; i < blocks->length(); i++) { |
42 HBasicBlock* next = NULL; | 41 HBasicBlock* next = NULL; |
43 if (i < blocks->length() - 1) next = blocks->at(i + 1); | 42 if (i < blocks->length() - 1) next = blocks->at(i + 1); |
44 DoBasicBlock(blocks->at(i), next); | 43 DoBasicBlock(blocks->at(i), next); |
(...skipping 18 matching lines...) Expand all Loading... |
63 } | 62 } |
64 | 63 |
65 | 64 |
66 void LChunkBuilder::DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block) { | 65 void LChunkBuilder::DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block) { |
67 ASSERT(is_building()); | 66 ASSERT(is_building()); |
68 Abort("Lithium not implemented on x64."); | 67 Abort("Lithium not implemented on x64."); |
69 } | 68 } |
70 | 69 |
71 | 70 |
72 } } // namespace v8::internal | 71 } } // namespace v8::internal |
OLD | NEW |