OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_COMPILER_JS_INLINING_H_ | 5 #ifndef V8_COMPILER_JS_INLINING_H_ |
6 #define V8_COMPILER_JS_INLINING_H_ | 6 #define V8_COMPILER_JS_INLINING_H_ |
7 | 7 |
8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
9 #include "src/compiler/graph-reducer.h" | 9 #include "src/compiler/graph-reducer.h" |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
| 13 |
| 14 // Forward declarations. |
| 15 class CompilationInfo; |
| 16 |
13 namespace compiler { | 17 namespace compiler { |
14 | 18 |
| 19 // Forward declarations. |
15 class JSCallFunctionAccessor; | 20 class JSCallFunctionAccessor; |
16 | 21 |
17 class JSInliner final : public AdvancedReducer { | 22 class JSInliner final : public AdvancedReducer { |
18 public: | 23 public: |
19 enum Mode { kRestrictedInlining, kGeneralInlining }; | 24 enum Mode { kRestrictedInlining, kGeneralInlining }; |
20 | 25 |
21 JSInliner(Editor* editor, Mode mode, Zone* local_zone, CompilationInfo* info, | 26 JSInliner(Editor* editor, Mode mode, Zone* local_zone, CompilationInfo* info, |
22 JSGraph* jsgraph) | 27 JSGraph* jsgraph) |
23 : AdvancedReducer(editor), | 28 : AdvancedReducer(editor), |
24 mode_(mode), | 29 mode_(mode), |
(...skipping 15 matching lines...) Expand all Loading... |
40 | 45 |
41 Reduction InlineCall(Node* call, Node* context, Node* frame_state, | 46 Reduction InlineCall(Node* call, Node* context, Node* frame_state, |
42 Node* start, Node* end); | 47 Node* start, Node* end); |
43 }; | 48 }; |
44 | 49 |
45 } // namespace compiler | 50 } // namespace compiler |
46 } // namespace internal | 51 } // namespace internal |
47 } // namespace v8 | 52 } // namespace v8 |
48 | 53 |
49 #endif // V8_COMPILER_JS_INLINING_H_ | 54 #endif // V8_COMPILER_JS_INLINING_H_ |
OLD | NEW |