| 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 18 matching lines...) Expand all Loading... |
| 29 jsgraph_(jsgraph) {} | 29 jsgraph_(jsgraph) {} |
| 30 | 30 |
| 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; |
| 40 JSOperatorBuilder* javascript() const; |
| 39 Graph* graph() const; | 41 Graph* graph() const; |
| 40 JSGraph* jsgraph() const { return jsgraph_; } | 42 JSGraph* jsgraph() const { return jsgraph_; } |
| 41 | 43 |
| 42 Zone* const local_zone_; | 44 Zone* const local_zone_; |
| 43 CompilationInfo* info_; | 45 CompilationInfo* info_; |
| 44 JSGraph* const jsgraph_; | 46 JSGraph* const jsgraph_; |
| 45 | 47 |
| 46 Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state, | 48 Node* CreateArtificialFrameState(Node* node, Node* outer_frame_state, |
| 47 int parameter_count, | 49 int parameter_count, |
| 48 FrameStateType frame_state_type, | 50 FrameStateType frame_state_type, |
| 49 Handle<SharedFunctionInfo> shared); | 51 Handle<SharedFunctionInfo> shared); |
| 50 | 52 |
| 51 Node* CreateTailCallerFrameState(Node* node, Node* outer_frame_state); | 53 Node* CreateTailCallerFrameState(Node* node, Node* outer_frame_state); |
| 52 | 54 |
| 53 Reduction InlineCall(Node* call, Node* new_target, Node* context, | 55 Reduction InlineCall(Node* call, Node* new_target, Node* context, |
| 54 Node* frame_state, Node* start, Node* end); | 56 Node* frame_state, Node* start, Node* end); |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 } // namespace compiler | 59 } // namespace compiler |
| 58 } // namespace internal | 60 } // namespace internal |
| 59 } // namespace v8 | 61 } // namespace v8 |
| 60 | 62 |
| 61 #endif // V8_COMPILER_JS_INLINING_H_ | 63 #endif // V8_COMPILER_JS_INLINING_H_ |
| OLD | NEW |