OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HYDROGEN_H_ | 5 #ifndef V8_HYDROGEN_H_ |
6 #define V8_HYDROGEN_H_ | 6 #define V8_HYDROGEN_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
11 #include "src/allocation.h" | 11 #include "src/allocation.h" |
12 #include "src/ast.h" | 12 #include "src/ast.h" |
| 13 #include "src/bailout-reason.h" |
13 #include "src/compiler.h" | 14 #include "src/compiler.h" |
14 #include "src/hydrogen-instructions.h" | 15 #include "src/hydrogen-instructions.h" |
15 #include "src/scopes.h" | 16 #include "src/scopes.h" |
16 #include "src/zone.h" | 17 #include "src/zone.h" |
17 | 18 |
18 namespace v8 { | 19 namespace v8 { |
19 namespace internal { | 20 namespace internal { |
20 | 21 |
21 // Forward declarations. | 22 // Forward declarations. |
22 class BitVector; | 23 class BitVector; |
(...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2102 }; | 2103 }; |
2103 | 2104 |
2104 explicit HOptimizedGraphBuilder(CompilationInfo* info); | 2105 explicit HOptimizedGraphBuilder(CompilationInfo* info); |
2105 | 2106 |
2106 virtual bool BuildGraph() OVERRIDE; | 2107 virtual bool BuildGraph() OVERRIDE; |
2107 | 2108 |
2108 // Simple accessors. | 2109 // Simple accessors. |
2109 BreakAndContinueScope* break_scope() const { return break_scope_; } | 2110 BreakAndContinueScope* break_scope() const { return break_scope_; } |
2110 void set_break_scope(BreakAndContinueScope* head) { break_scope_ = head; } | 2111 void set_break_scope(BreakAndContinueScope* head) { break_scope_ = head; } |
2111 | 2112 |
2112 bool inline_bailout() { return inline_bailout_; } | |
2113 | |
2114 HValue* context() { return environment()->context(); } | 2113 HValue* context() { return environment()->context(); } |
2115 | 2114 |
2116 HOsrBuilder* osr() const { return osr_; } | 2115 HOsrBuilder* osr() const { return osr_; } |
2117 | 2116 |
2118 void Bailout(BailoutReason reason); | 2117 void Bailout(BailoutReason reason); |
2119 | 2118 |
2120 HBasicBlock* CreateJoin(HBasicBlock* first, | 2119 HBasicBlock* CreateJoin(HBasicBlock* first, |
2121 HBasicBlock* second, | 2120 HBasicBlock* second, |
2122 BailoutId join_id); | 2121 BailoutId join_id); |
2123 | 2122 |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2906 } | 2905 } |
2907 | 2906 |
2908 private: | 2907 private: |
2909 HGraphBuilder* builder_; | 2908 HGraphBuilder* builder_; |
2910 }; | 2909 }; |
2911 | 2910 |
2912 | 2911 |
2913 } } // namespace v8::internal | 2912 } } // namespace v8::internal |
2914 | 2913 |
2915 #endif // V8_HYDROGEN_H_ | 2914 #endif // V8_HYDROGEN_H_ |
OLD | NEW |