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" |
(...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2150 } | 2150 } |
2151 AstContext* call_context() const { | 2151 AstContext* call_context() const { |
2152 return function_state()->call_context(); | 2152 return function_state()->call_context(); |
2153 } | 2153 } |
2154 HBasicBlock* function_return() const { | 2154 HBasicBlock* function_return() const { |
2155 return function_state()->function_return(); | 2155 return function_state()->function_return(); |
2156 } | 2156 } |
2157 TestContext* inlined_test_context() const { | 2157 TestContext* inlined_test_context() const { |
2158 return function_state()->test_context(); | 2158 return function_state()->test_context(); |
2159 } | 2159 } |
| 2160 Handle<SharedFunctionInfo> current_shared_info() const { |
| 2161 return current_info()->shared_info(); |
| 2162 } |
| 2163 TypeFeedbackVector* current_feedback_vector() const { |
| 2164 return current_shared_info()->feedback_vector(); |
| 2165 } |
2160 void ClearInlinedTestContext() { | 2166 void ClearInlinedTestContext() { |
2161 function_state()->ClearInlinedTestContext(); | 2167 function_state()->ClearInlinedTestContext(); |
2162 } | 2168 } |
2163 LanguageMode function_language_mode() { | 2169 LanguageMode function_language_mode() { |
2164 return function_state()->compilation_info()->language_mode(); | 2170 return function_state()->compilation_info()->language_mode(); |
2165 } | 2171 } |
2166 | 2172 |
2167 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ | 2173 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ |
2168 F(IsSmi) \ | 2174 F(IsSmi) \ |
2169 F(IsArray) \ | 2175 F(IsArray) \ |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3031 } | 3037 } |
3032 | 3038 |
3033 private: | 3039 private: |
3034 HGraphBuilder* builder_; | 3040 HGraphBuilder* builder_; |
3035 }; | 3041 }; |
3036 | 3042 |
3037 | 3043 |
3038 } } // namespace v8::internal | 3044 } } // namespace v8::internal |
3039 | 3045 |
3040 #endif // V8_HYDROGEN_H_ | 3046 #endif // V8_HYDROGEN_H_ |
OLD | NEW |