Add missing FrameState to JSTypedLoweringTester::Binop.
authormstarzinger <mstarzinger@chromium.org>
Thu, 12 Feb 2015 17:08:47 +0000 (09:08 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 12 Feb 2015 17:08:53 +0000 (17:08 +0000)
R=titzer@chromium.org
TEST=cctest/test-js-typed-lowering

Review URL: https://codereview.chromium.org/925583002

Cr-Commit-Position: refs/heads/master@{#26626}

test/cctest/compiler/test-js-typed-lowering.cc

index cf252c4c6c75843d87fe2883a05527e7bb3fb202..f4531d3e83f16ee36671d87b427b836bd1be397d 100644 (file)
@@ -114,7 +114,12 @@ class JSTypedLoweringTester : public HandleAndZoneScope {
 
   Node* Binop(const Operator* op, Node* left, Node* right) {
     // JS binops also require context, effect, and control
-    return graph.NewNode(op, left, right, context(), start(), control());
+    if (OperatorProperties::HasFrameStateInput(op)) {
+      return graph.NewNode(op, left, right, context(),
+                           EmptyFrameState(context()), start(), control());
+    } else {
+      return graph.NewNode(op, left, right, context(), start(), control());
+    }
   }
 
   Node* Unop(const Operator* op, Node* input) {