| 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 2221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2232 } | 2232 } |
| 2233 AstContext* call_context() const { | 2233 AstContext* call_context() const { |
| 2234 return function_state()->call_context(); | 2234 return function_state()->call_context(); |
| 2235 } | 2235 } |
| 2236 HBasicBlock* function_return() const { | 2236 HBasicBlock* function_return() const { |
| 2237 return function_state()->function_return(); | 2237 return function_state()->function_return(); |
| 2238 } | 2238 } |
| 2239 TestContext* inlined_test_context() const { | 2239 TestContext* inlined_test_context() const { |
| 2240 return function_state()->test_context(); | 2240 return function_state()->test_context(); |
| 2241 } | 2241 } |
| 2242 Handle<JSFunction> current_closure() const { |
| 2243 return current_info()->closure(); |
| 2244 } |
| 2242 Handle<SharedFunctionInfo> current_shared_info() const { | 2245 Handle<SharedFunctionInfo> current_shared_info() const { |
| 2243 return current_info()->shared_info(); | 2246 return current_info()->shared_info(); |
| 2244 } | 2247 } |
| 2245 TypeFeedbackVector* current_feedback_vector() const { | 2248 TypeFeedbackVector* current_feedback_vector() const { |
| 2246 return current_shared_info()->feedback_vector(); | 2249 return current_closure()->feedback_vector(); |
| 2247 } | 2250 } |
| 2248 void ClearInlinedTestContext() { | 2251 void ClearInlinedTestContext() { |
| 2249 function_state()->ClearInlinedTestContext(); | 2252 function_state()->ClearInlinedTestContext(); |
| 2250 } | 2253 } |
| 2251 LanguageMode function_language_mode() { | 2254 LanguageMode function_language_mode() { |
| 2252 return function_state()->compilation_info()->parse_info()->language_mode(); | 2255 return function_state()->compilation_info()->parse_info()->language_mode(); |
| 2253 } | 2256 } |
| 2254 | 2257 |
| 2255 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ | 2258 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ |
| 2256 F(IsSmi) \ | 2259 F(IsSmi) \ |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3114 } | 3117 } |
| 3115 | 3118 |
| 3116 private: | 3119 private: |
| 3117 HOptimizedGraphBuilder* builder_; | 3120 HOptimizedGraphBuilder* builder_; |
| 3118 }; | 3121 }; |
| 3119 | 3122 |
| 3120 } // namespace internal | 3123 } // namespace internal |
| 3121 } // namespace v8 | 3124 } // namespace v8 |
| 3122 | 3125 |
| 3123 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3126 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
| OLD | NEW |