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

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

Issue 983153002: [turbofan] Add an extra frame state for deoptimization before binary op. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweak Created 5 years, 9 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/verifier.cc ('k') | test/cctest/compiler/test-js-typed-lowering.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 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 30 matching lines...) Expand all
41 graph()->SetEnd(end); 41 graph()->SetEnd(end);
42 } 42 }
43 43
44 44
45 Node* SimplifiedGraphBuilder::MakeNode(const Operator* op, 45 Node* SimplifiedGraphBuilder::MakeNode(const Operator* op,
46 int value_input_count, 46 int value_input_count,
47 Node** value_inputs, bool incomplete) { 47 Node** value_inputs, bool incomplete) {
48 DCHECK(op->ValueInputCount() == value_input_count); 48 DCHECK(op->ValueInputCount() == value_input_count);
49 49
50 DCHECK(!OperatorProperties::HasContextInput(op)); 50 DCHECK(!OperatorProperties::HasContextInput(op));
51 DCHECK(!OperatorProperties::HasFrameStateInput(op)); 51 DCHECK_EQ(0, OperatorProperties::GetFrameStateInputCount(op));
52 bool has_control = op->ControlInputCount() == 1; 52 bool has_control = op->ControlInputCount() == 1;
53 bool has_effect = op->EffectInputCount() == 1; 53 bool has_effect = op->EffectInputCount() == 1;
54 54
55 DCHECK(op->ControlInputCount() < 2); 55 DCHECK(op->ControlInputCount() < 2);
56 DCHECK(op->EffectInputCount() < 2); 56 DCHECK(op->EffectInputCount() < 2);
57 57
58 Node* result = NULL; 58 Node* result = NULL;
59 if (!has_control && !has_effect) { 59 if (!has_control && !has_effect) {
60 result = graph()->NewNode(op, value_input_count, value_inputs, incomplete); 60 result = graph()->NewNode(op, value_input_count, value_inputs, incomplete);
61 } else { 61 } else {
(...skipping 16 matching lines...) Expand all
78 // This graph builder does not support control flow. 78 // This graph builder does not support control flow.
79 CHECK_EQ(0, op->ControlOutputCount()); 79 CHECK_EQ(0, op->ControlOutputCount());
80 } 80 }
81 81
82 return result; 82 return result;
83 } 83 }
84 84
85 } // namespace compiler 85 } // namespace compiler
86 } // namespace internal 86 } // namespace internal
87 } // namespace v8 87 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | test/cctest/compiler/test-js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698