Index: test/unittests/compiler/js-type-feedback-unittest.cc |
diff --git a/test/unittests/compiler/js-type-feedback-unittest.cc b/test/unittests/compiler/js-type-feedback-unittest.cc |
index 08fe68a8baa037141046ab748394342c131c1540..46eb437b8c488fca2dc4671d16f8dd3e02df0682 100644 |
--- a/test/unittests/compiler/js-type-feedback-unittest.cc |
+++ b/test/unittests/compiler/js-type-feedback-unittest.cc |
@@ -80,10 +80,13 @@ class JSTypeFeedbackTest : public TypedGraphTest { |
Unique<Name> name = Unique<Name>::CreateUninitialized( |
isolate()->factory()->NewStringFromAsciiChecked(string)); |
- Node* load = graph()->NewNode(javascript()->LoadNamed(name, feedback), |
- global, context); |
+ const Operator* op = javascript()->LoadNamed(name, feedback); |
+ Node* load = graph()->NewNode(op, global, context); |
if (FLAG_turbo_deoptimization) { |
- load->AppendInput(zone(), EmptyFrameState()); |
+ for (int i = 0; i < OperatorProperties::GetFrameStateInputCount(op); |
+ i++) { |
+ load->AppendInput(zone(), EmptyFrameState()); |
+ } |
} |
load->AppendInput(zone(), effect); |
load->AppendInput(zone(), control); |