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_CRANKSHAFT_HYDROGEN_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_ |
6 #define V8_CRANKSHAFT_HYDROGEN_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_H_ |
7 | 7 |
8 #include "src/accessors.h" | 8 #include "src/accessors.h" |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2183 } | 2183 } |
2184 HBasicBlock* function_return() const { | 2184 HBasicBlock* function_return() const { |
2185 return function_state()->function_return(); | 2185 return function_state()->function_return(); |
2186 } | 2186 } |
2187 TestContext* inlined_test_context() const { | 2187 TestContext* inlined_test_context() const { |
2188 return function_state()->test_context(); | 2188 return function_state()->test_context(); |
2189 } | 2189 } |
2190 Handle<SharedFunctionInfo> current_shared_info() const { | 2190 Handle<SharedFunctionInfo> current_shared_info() const { |
2191 return current_info()->shared_info(); | 2191 return current_info()->shared_info(); |
2192 } | 2192 } |
2193 Handle<JSFunction> current_closure() const { | |
2194 return current_info()->closure(); | |
2195 } | |
2196 TypeFeedbackVector* current_feedback_vector() const { | 2193 TypeFeedbackVector* current_feedback_vector() const { |
2197 return current_closure()->feedback_vector(); | 2194 return current_shared_info()->feedback_vector(); |
2198 } | 2195 } |
2199 void ClearInlinedTestContext() { | 2196 void ClearInlinedTestContext() { |
2200 function_state()->ClearInlinedTestContext(); | 2197 function_state()->ClearInlinedTestContext(); |
2201 } | 2198 } |
2202 LanguageMode function_language_mode() { | 2199 LanguageMode function_language_mode() { |
2203 return function_state()->compilation_info()->language_mode(); | 2200 return function_state()->compilation_info()->language_mode(); |
2204 } | 2201 } |
2205 | 2202 |
2206 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ | 2203 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ |
2207 F(IsSmi) \ | 2204 F(IsSmi) \ |
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3067 | 3064 |
3068 private: | 3065 private: |
3069 HGraphBuilder* builder_; | 3066 HGraphBuilder* builder_; |
3070 }; | 3067 }; |
3071 | 3068 |
3072 | 3069 |
3073 } // namespace internal | 3070 } // namespace internal |
3074 } // namespace v8 | 3071 } // namespace v8 |
3075 | 3072 |
3076 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3073 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
OLD | NEW |