OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_BYTECODE_GRAPH_BUILDER_H_ | 5 #ifndef V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
7 | 7 |
8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
9 #include "src/compiler/bytecode-branch-analysis.h" | 9 #include "src/compiler/bytecode-branch-analysis.h" |
10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 // The main node creation chokepoint. Adds context, frame state, effect, | 97 // The main node creation chokepoint. Adds context, frame state, effect, |
98 // and control dependencies depending on the operator. | 98 // and control dependencies depending on the operator. |
99 Node* MakeNode(const Operator* op, int value_input_count, Node** value_inputs, | 99 Node* MakeNode(const Operator* op, int value_input_count, Node** value_inputs, |
100 bool incomplete); | 100 bool incomplete); |
101 | 101 |
102 Node** EnsureInputBufferSize(int size); | 102 Node** EnsureInputBufferSize(int size); |
103 | 103 |
104 Node* ProcessCallArguments(const Operator* call_op, Node* callee, | 104 Node* ProcessCallArguments(const Operator* call_op, Node* callee, |
105 interpreter::Register receiver, size_t arity); | 105 interpreter::Register receiver, size_t arity); |
106 Node* ProcessCallNewArguments(const Operator* call_new_op, | 106 Node* ProcessCallNewArguments(const Operator* call_new_op, Node* callee, |
107 interpreter::Register callee, | 107 Node* new_target, |
108 interpreter::Register first_arg, size_t arity); | 108 interpreter::Register first_arg, size_t arity); |
109 Node* ProcessCallRuntimeArguments(const Operator* call_runtime_op, | 109 Node* ProcessCallRuntimeArguments(const Operator* call_runtime_op, |
110 interpreter::Register first_arg, | 110 interpreter::Register first_arg, |
111 size_t arity); | 111 size_t arity); |
112 | 112 |
113 void BuildCreateLiteral(const Operator* op); | 113 void BuildCreateLiteral(const Operator* op); |
114 void BuildCreateRegExpLiteral(); | 114 void BuildCreateRegExpLiteral(); |
115 void BuildCreateArrayLiteral(); | 115 void BuildCreateArrayLiteral(); |
116 void BuildCreateObjectLiteral(); | 116 void BuildCreateObjectLiteral(); |
117 void BuildCreateArguments(CreateArgumentsType type); | 117 void BuildCreateArguments(CreateArgumentsType type); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 ZoneVector<Node*> exit_controls_; | 247 ZoneVector<Node*> exit_controls_; |
248 | 248 |
249 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); | 249 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); |
250 }; | 250 }; |
251 | 251 |
252 } // namespace compiler | 252 } // namespace compiler |
253 } // namespace internal | 253 } // namespace internal |
254 } // namespace v8 | 254 } // namespace v8 |
255 | 255 |
256 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 256 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
OLD | NEW |