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 |
(...skipping 20 matching lines...) Expand all Loading... |
31 // Reducer interface, eagerly inlines everything. | 31 // Reducer interface, eagerly inlines everything. |
32 Reduction Reduce(Node* node) final; | 32 Reduction Reduce(Node* node) final; |
33 | 33 |
34 // Can be used by inlining heuristics or by testing code directly, without | 34 // Can be used by inlining heuristics or by testing code directly, without |
35 // using the above generic reducer interface of the inlining machinery. | 35 // using the above generic reducer interface of the inlining machinery. |
36 Reduction ReduceJSCall(Node* node, Handle<JSFunction> function); | 36 Reduction ReduceJSCall(Node* node, Handle<JSFunction> function); |
37 | 37 |
38 private: | 38 private: |
39 CommonOperatorBuilder* common() const; | 39 CommonOperatorBuilder* common() const; |
40 JSOperatorBuilder* javascript() const; | 40 JSOperatorBuilder* javascript() const; |
| 41 SimplifiedOperatorBuilder* simplified() const; |
41 Graph* graph() const; | 42 Graph* graph() const; |
42 JSGraph* jsgraph() const { return jsgraph_; } | 43 JSGraph* jsgraph() const { return jsgraph_; } |
43 | 44 |
44 Zone* const local_zone_; | 45 Zone* const local_zone_; |
45 CompilationInfo* info_; | 46 CompilationInfo* info_; |
46 JSGraph* const jsgraph_; | 47 JSGraph* const jsgraph_; |
47 | 48 |
48 Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state, | 49 Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state, |
49 int parameter_count, | 50 int parameter_count, |
50 FrameStateType frame_state_type, | 51 FrameStateType frame_state_type, |
51 Handle<SharedFunctionInfo> shared); | 52 Handle<SharedFunctionInfo> shared); |
52 | 53 |
53 Node* CreateTailCallerFrameState(Node* node, Node* outer_frame_state); | 54 Node* CreateTailCallerFrameState(Node* node, Node* outer_frame_state); |
54 | 55 |
55 Reduction InlineCall(Node* call, Node* new_target, Node* context, | 56 Reduction InlineCall(Node* call, Node* new_target, Node* context, |
56 Node* frame_state, Node* start, Node* end); | 57 Node* frame_state, Node* start, Node* end); |
57 }; | 58 }; |
58 | 59 |
59 } // namespace compiler | 60 } // namespace compiler |
60 } // namespace internal | 61 } // namespace internal |
61 } // namespace v8 | 62 } // namespace v8 |
62 | 63 |
63 #endif // V8_COMPILER_JS_INLINING_H_ | 64 #endif // V8_COMPILER_JS_INLINING_H_ |
OLD | NEW |