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

Side by Side Diff: test/cctest/compiler/simplified-graph-builder.cc

Issue 735583003: Remove ambiguous getter for operator value counts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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/operator.h ('k') | test/cctest/compiler/test-control-reducer.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 "test/cctest/compiler/simplified-graph-builder.h" 5 #include "test/cctest/compiler/simplified-graph-builder.h"
6 6
7 #include "src/compiler/operator-properties.h" 7 #include "src/compiler/operator-properties.h"
8 #include "src/compiler/operator-properties-inl.h" 8 #include "src/compiler/operator-properties-inl.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 28 matching lines...) Expand all
39 39
40 void SimplifiedGraphBuilder::End() { 40 void SimplifiedGraphBuilder::End() {
41 Node* end = graph()->NewNode(common()->End(), return_); 41 Node* end = graph()->NewNode(common()->End(), return_);
42 graph()->SetEnd(end); 42 graph()->SetEnd(end);
43 } 43 }
44 44
45 45
46 Node* SimplifiedGraphBuilder::MakeNode(const Operator* op, 46 Node* SimplifiedGraphBuilder::MakeNode(const Operator* op,
47 int value_input_count, 47 int value_input_count,
48 Node** value_inputs, bool incomplete) { 48 Node** value_inputs, bool incomplete) {
49 DCHECK(op->InputCount() == value_input_count); 49 DCHECK(op->ValueInputCount() == value_input_count);
50 50
51 DCHECK(!OperatorProperties::HasContextInput(op)); 51 DCHECK(!OperatorProperties::HasContextInput(op));
52 DCHECK(!OperatorProperties::HasFrameStateInput(op)); 52 DCHECK(!OperatorProperties::HasFrameStateInput(op));
53 bool has_control = op->ControlInputCount() == 1; 53 bool has_control = op->ControlInputCount() == 1;
54 bool has_effect = op->EffectInputCount() == 1; 54 bool has_effect = op->EffectInputCount() == 1;
55 55
56 DCHECK(op->ControlInputCount() < 2); 56 DCHECK(op->ControlInputCount() < 2);
57 DCHECK(op->EffectInputCount() < 2); 57 DCHECK(op->EffectInputCount() < 2);
58 58
59 Node* result = NULL; 59 Node* result = NULL;
(...skipping 19 matching lines...) Expand all
79 // This graph builder does not support control flow. 79 // This graph builder does not support control flow.
80 CHECK_EQ(0, op->ControlOutputCount()); 80 CHECK_EQ(0, op->ControlOutputCount());
81 } 81 }
82 82
83 return result; 83 return result;
84 } 84 }
85 85
86 } // namespace compiler 86 } // namespace compiler
87 } // namespace internal 87 } // namespace internal
88 } // namespace v8 88 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/operator.h ('k') | test/cctest/compiler/test-control-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698