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/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
10 #include "src/interpreter/bytecode-array-iterator.h" | 10 #include "src/interpreter/bytecode-array-iterator.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 Node** EnsureInputBufferSize(int size); | 85 Node** EnsureInputBufferSize(int size); |
86 | 86 |
87 void UpdateControlDependencyToLeaveFunction(Node* exit); | 87 void UpdateControlDependencyToLeaveFunction(Node* exit); |
88 | 88 |
89 void BuildBinaryOp(const Operator* op, | 89 void BuildBinaryOp(const Operator* op, |
90 const interpreter::BytecodeArrayIterator& iterator); | 90 const interpreter::BytecodeArrayIterator& iterator); |
91 | 91 |
92 void BuildNamedLoad(const interpreter::BytecodeArrayIterator& iterator); | 92 void BuildNamedLoad(const interpreter::BytecodeArrayIterator& iterator); |
93 | 93 |
| 94 Node* ProcessCallArguments(const Operator* call_op, |
| 95 interpreter::Register callee, |
| 96 interpreter::Register receiver, size_t arity); |
| 97 |
| 98 void BuildCall(const interpreter::BytecodeArrayIterator& iterator); |
| 99 |
94 // Growth increment for the temporary buffer used to construct input lists to | 100 // Growth increment for the temporary buffer used to construct input lists to |
95 // new nodes. | 101 // new nodes. |
96 static const int kInputBufferSizeIncrement = 64; | 102 static const int kInputBufferSizeIncrement = 64; |
97 | 103 |
98 // Field accessors | 104 // Field accessors |
99 CommonOperatorBuilder* common() const { return jsgraph_->common(); } | 105 CommonOperatorBuilder* common() const { return jsgraph_->common(); } |
100 Zone* graph_zone() const { return graph()->zone(); } | 106 Zone* graph_zone() const { return graph()->zone(); } |
101 CompilationInfo* info() const { return info_; } | 107 CompilationInfo* info() const { return info_; } |
102 JSGraph* jsgraph() const { return jsgraph_; } | 108 JSGraph* jsgraph() const { return jsgraph_; } |
103 JSOperatorBuilder* javascript() const { return jsgraph_->javascript(); } | 109 JSOperatorBuilder* javascript() const { return jsgraph_->javascript(); } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 NodeVector values_; | 199 NodeVector values_; |
194 int register_base_; | 200 int register_base_; |
195 }; | 201 }; |
196 | 202 |
197 | 203 |
198 } // namespace compiler | 204 } // namespace compiler |
199 } // namespace internal | 205 } // namespace internal |
200 } // namespace v8 | 206 } // namespace v8 |
201 | 207 |
202 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 208 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
OLD | NEW |