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 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2239 Handle<SharedFunctionInfo> current_shared_info() const { | 2239 Handle<SharedFunctionInfo> current_shared_info() const { |
2240 return current_info()->shared_info(); | 2240 return current_info()->shared_info(); |
2241 } | 2241 } |
2242 TypeFeedbackVector* current_feedback_vector() const { | 2242 TypeFeedbackVector* current_feedback_vector() const { |
2243 return current_shared_info()->feedback_vector(); | 2243 return current_shared_info()->feedback_vector(); |
2244 } | 2244 } |
2245 void ClearInlinedTestContext() { | 2245 void ClearInlinedTestContext() { |
2246 function_state()->ClearInlinedTestContext(); | 2246 function_state()->ClearInlinedTestContext(); |
2247 } | 2247 } |
2248 LanguageMode function_language_mode() { | 2248 LanguageMode function_language_mode() { |
2249 return function_state()->compilation_info()->language_mode(); | 2249 return function_state()->compilation_info()->parse_info()->language_mode(); |
2250 } | 2250 } |
2251 | 2251 |
2252 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ | 2252 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ |
2253 F(IsSmi) \ | 2253 F(IsSmi) \ |
2254 F(IsArray) \ | 2254 F(IsArray) \ |
2255 F(IsTypedArray) \ | 2255 F(IsTypedArray) \ |
2256 F(IsRegExp) \ | 2256 F(IsRegExp) \ |
2257 F(IsJSProxy) \ | 2257 F(IsJSProxy) \ |
2258 F(Call) \ | 2258 F(Call) \ |
2259 F(NewObject) \ | 2259 F(NewObject) \ |
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3111 } | 3111 } |
3112 | 3112 |
3113 private: | 3113 private: |
3114 HOptimizedGraphBuilder* builder_; | 3114 HOptimizedGraphBuilder* builder_; |
3115 }; | 3115 }; |
3116 | 3116 |
3117 } // namespace internal | 3117 } // namespace internal |
3118 } // namespace v8 | 3118 } // namespace v8 |
3119 | 3119 |
3120 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3120 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
OLD | NEW |