| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Helper function for creating a pair containing type feedback vector and | 58 // Helper function for creating a pair containing type feedback vector and |
| 59 // a feedback slot. | 59 // a feedback slot. |
| 60 VectorSlotPair CreateVectorSlotPair(int slot_id); | 60 VectorSlotPair CreateVectorSlotPair(int slot_id); |
| 61 | 61 |
| 62 void set_environment(Environment* env) { environment_ = env; } | 62 void set_environment(Environment* env) { environment_ = env; } |
| 63 const Environment* environment() const { return environment_; } | 63 const Environment* environment() const { return environment_; } |
| 64 Environment* environment() { return environment_; } | 64 Environment* environment() { return environment_; } |
| 65 | 65 |
| 66 // Node creation helpers | 66 // Node creation helpers |
| 67 Node* NewNode(const Operator* op, bool incomplete = false) { | 67 Node* NewNode(const Operator* op, bool incomplete = false) { |
| 68 return MakeNode(op, 0, static_cast<Node**>(NULL), incomplete); | 68 return MakeNode(op, 0, static_cast<Node**>(nullptr), incomplete); |
| 69 } | 69 } |
| 70 | 70 |
| 71 Node* NewNode(const Operator* op, Node* n1) { | 71 Node* NewNode(const Operator* op, Node* n1) { |
| 72 Node* buffer[] = {n1}; | 72 Node* buffer[] = {n1}; |
| 73 return MakeNode(op, arraysize(buffer), buffer, false); | 73 return MakeNode(op, arraysize(buffer), buffer, false); |
| 74 } | 74 } |
| 75 | 75 |
| 76 Node* NewNode(const Operator* op, Node* n1, Node* n2) { | 76 Node* NewNode(const Operator* op, Node* n1, Node* n2) { |
| 77 Node* buffer[] = {n1, n2}; | 77 Node* buffer[] = {n1, n2}; |
| 78 return MakeNode(op, arraysize(buffer), buffer, false); | 78 return MakeNode(op, arraysize(buffer), buffer, false); |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 Node* accumulator_state_values_; | 332 Node* accumulator_state_values_; |
| 333 int register_base_; | 333 int register_base_; |
| 334 int accumulator_base_; | 334 int accumulator_base_; |
| 335 }; | 335 }; |
| 336 | 336 |
| 337 } // namespace compiler | 337 } // namespace compiler |
| 338 } // namespace internal | 338 } // namespace internal |
| 339 } // namespace v8 | 339 } // namespace v8 |
| 340 | 340 |
| 341 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 341 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
| OLD | NEW |