Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: src/compiler/bytecode-graph-builder.h

Issue 1578723002: [turbofan] Build s/NULL/nullptr/g and CHECK(x != nullptr) to CHECK_NOT_NULL(x). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/ast-loop-assignment-analyzer.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/compiler/ast-loop-assignment-analyzer.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698