OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |