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

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

Issue 680313003: Move input/output counts directly into Operators, simplying OperatorProperties. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: yes 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/verifier.cc ('k') | test/cctest/compiler/test-graph-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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 if (has_effect) { 69 if (has_effect) {
70 *current_input++ = effect_; 70 *current_input++ = effect_;
71 } 71 }
72 if (has_control) { 72 if (has_control) {
73 *current_input++ = graph()->start(); 73 *current_input++ = graph()->start();
74 } 74 }
75 result = graph()->NewNode(op, input_count_with_deps, buffer, incomplete); 75 result = graph()->NewNode(op, input_count_with_deps, buffer, incomplete);
76 if (has_effect) { 76 if (has_effect) {
77 effect_ = result; 77 effect_ = result;
78 } 78 }
79 if (OperatorProperties::HasControlOutput(result->op())) { 79 // This graph builder does not support control flow.
80 // This graph builder does not support control flow. 80 CHECK_EQ(0, op->ControlOutputCount());
81 UNREACHABLE();
82 }
83 } 81 }
84 82
85 return result; 83 return result;
86 } 84 }
87 85
88 } // namespace compiler 86 } // namespace compiler
89 } // namespace internal 87 } // namespace internal
90 } // namespace v8 88 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | test/cctest/compiler/test-graph-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698