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-type-bounds.h" | 10 #include "src/ast/ast-type-bounds.h" |
(...skipping 2455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2466 | 2466 |
2467 bool TryInlineCall(Call* expr); | 2467 bool TryInlineCall(Call* expr); |
2468 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); | 2468 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); |
2469 bool TryInlineGetter(Handle<Object> getter, Handle<Map> receiver_map, | 2469 bool TryInlineGetter(Handle<Object> getter, Handle<Map> receiver_map, |
2470 BailoutId ast_id, BailoutId return_id); | 2470 BailoutId ast_id, BailoutId return_id); |
2471 bool TryInlineSetter(Handle<Object> setter, Handle<Map> receiver_map, | 2471 bool TryInlineSetter(Handle<Object> setter, Handle<Map> receiver_map, |
2472 BailoutId id, BailoutId assignment_id, | 2472 BailoutId id, BailoutId assignment_id, |
2473 HValue* implicit_return_value); | 2473 HValue* implicit_return_value); |
2474 bool TryInlineIndirectCall(Handle<JSFunction> function, Call* expr, | 2474 bool TryInlineIndirectCall(Handle<JSFunction> function, Call* expr, |
2475 int arguments_count); | 2475 int arguments_count); |
2476 bool TryInlineBuiltinMethodCall(Call* expr, Handle<JSFunction> function, | 2476 bool TryInlineBuiltinGetterCall(Handle<JSFunction> function, |
2477 Handle<Map> receiver_map, | 2477 Handle<Map> receiver_map, BailoutId ast_id); |
| 2478 bool TryInlineBuiltinMethodCall(Handle<JSFunction> function, |
| 2479 Handle<Map> receiver_map, BailoutId ast_id, |
2478 int args_count_no_receiver); | 2480 int args_count_no_receiver); |
2479 bool TryInlineBuiltinFunctionCall(Call* expr); | 2481 bool TryInlineBuiltinFunctionCall(Call* expr); |
2480 enum ApiCallType { | 2482 enum ApiCallType { |
2481 kCallApiFunction, | 2483 kCallApiFunction, |
2482 kCallApiMethod, | 2484 kCallApiMethod, |
2483 kCallApiGetter, | 2485 kCallApiGetter, |
2484 kCallApiSetter | 2486 kCallApiSetter |
2485 }; | 2487 }; |
2486 bool TryInlineApiMethodCall(Call* expr, | 2488 bool TryInlineApiMethodCall(Call* expr, |
2487 HValue* receiver, | 2489 HValue* receiver, |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3099 } | 3101 } |
3100 | 3102 |
3101 private: | 3103 private: |
3102 HOptimizedGraphBuilder* builder_; | 3104 HOptimizedGraphBuilder* builder_; |
3103 }; | 3105 }; |
3104 | 3106 |
3105 } // namespace internal | 3107 } // namespace internal |
3106 } // namespace v8 | 3108 } // namespace v8 |
3107 | 3109 |
3108 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3110 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
OLD | NEW |