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

Side by Side Diff: src/compiler/node.cc

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/move-optimizer.cc ('k') | src/compiler/node-cache.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/compiler/node.h" 5 #include "src/compiler/node.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace compiler { 9 namespace compiler {
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 Node* const* inputs, bool has_extensible_inputs) { 53 Node* const* inputs, bool has_extensible_inputs) {
54 Node** input_ptr; 54 Node** input_ptr;
55 Use* use_ptr; 55 Use* use_ptr;
56 Node* node; 56 Node* node;
57 bool is_inline; 57 bool is_inline;
58 58
59 #if DEBUG 59 #if DEBUG
60 // Verify that none of the inputs are {nullptr}. 60 // Verify that none of the inputs are {nullptr}.
61 for (int i = 0; i < input_count; i++) { 61 for (int i = 0; i < input_count; i++) {
62 if (inputs[i] == nullptr) { 62 if (inputs[i] == nullptr) {
63 V8_Fatal(__FILE__, __LINE__, "Node::New() Error: #%d:%s[%d] is NULL", 63 V8_Fatal(__FILE__, __LINE__, "Node::New() Error: #%d:%s[%d] is nullptr",
64 static_cast<int>(id), op->mnemonic(), i); 64 static_cast<int>(id), op->mnemonic(), i);
65 } 65 }
66 } 66 }
67 #endif 67 #endif
68 68
69 if (input_count > kMaxInlineCapacity) { 69 if (input_count > kMaxInlineCapacity) {
70 // Allocate out-of-line inputs. 70 // Allocate out-of-line inputs.
71 int capacity = 71 int capacity =
72 has_extensible_inputs ? input_count + kMaxInlineCapacity : input_count; 72 has_extensible_inputs ? input_count + kMaxInlineCapacity : input_count;
73 OutOfLineInputs* outline = OutOfLineInputs::New(zone, capacity); 73 OutOfLineInputs* outline = OutOfLineInputs::New(zone, capacity);
74 74
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 ++(*this); 412 ++(*this);
413 return result; 413 return result;
414 } 414 }
415 415
416 416
417 bool Node::Uses::empty() const { return begin() == end(); } 417 bool Node::Uses::empty() const { return begin() == end(); }
418 418
419 } // namespace compiler 419 } // namespace compiler
420 } // namespace internal 420 } // namespace internal
421 } // namespace v8 421 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/move-optimizer.cc ('k') | src/compiler/node-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698