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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Simple accessors. | 60 // Simple accessors. |
61 int block_id() const { return block_id_; } | 61 int block_id() const { return block_id_; } |
62 void set_block_id(int id) { block_id_ = id; } | 62 void set_block_id(int id) { block_id_ = id; } |
63 HGraph* graph() const { return graph_; } | 63 HGraph* graph() const { return graph_; } |
64 Isolate* isolate() const; | 64 Isolate* isolate() const; |
65 const ZoneList<HPhi*>* phis() const { return &phis_; } | 65 const ZoneList<HPhi*>* phis() const { return &phis_; } |
66 HInstruction* first() const { return first_; } | 66 HInstruction* first() const { return first_; } |
67 HInstruction* last() const { return last_; } | 67 HInstruction* last() const { return last_; } |
68 void set_last(HInstruction* instr) { last_ = instr; } | 68 void set_last(HInstruction* instr) { last_ = instr; } |
| 69 HInstruction* GetLastInstruction(); |
69 HControlInstruction* end() const { return end_; } | 70 HControlInstruction* end() const { return end_; } |
70 HLoopInformation* loop_information() const { return loop_information_; } | 71 HLoopInformation* loop_information() const { return loop_information_; } |
71 const ZoneList<HBasicBlock*>* predecessors() const { return &predecessors_; } | 72 const ZoneList<HBasicBlock*>* predecessors() const { return &predecessors_; } |
72 bool HasPredecessor() const { return predecessors_.length() > 0; } | 73 bool HasPredecessor() const { return predecessors_.length() > 0; } |
73 const ZoneList<HBasicBlock*>* dominated_blocks() const { | 74 const ZoneList<HBasicBlock*>* dominated_blocks() const { |
74 return &dominated_blocks_; | 75 return &dominated_blocks_; |
75 } | 76 } |
76 const ZoneList<int>* deleted_phis() const { | 77 const ZoneList<int>* deleted_phis() const { |
77 return &deleted_phis_; | 78 return &deleted_phis_; |
78 } | 79 } |
(...skipping 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2038 EmbeddedVector<char, 64> filename_; | 2039 EmbeddedVector<char, 64> filename_; |
2039 HeapStringAllocator string_allocator_; | 2040 HeapStringAllocator string_allocator_; |
2040 StringStream trace_; | 2041 StringStream trace_; |
2041 int indent_; | 2042 int indent_; |
2042 }; | 2043 }; |
2043 | 2044 |
2044 | 2045 |
2045 } } // namespace v8::internal | 2046 } } // namespace v8::internal |
2046 | 2047 |
2047 #endif // V8_HYDROGEN_H_ | 2048 #endif // V8_HYDROGEN_H_ |
OLD | NEW |