Add missing FrameState to JSTypedLoweringTester::Binop.

R=titzer@chromium.org
TEST=cctest/test-js-typed-lowering

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

Cr-Commit-Position: refs/heads/master@{#26626}
This commit is contained in:
mstarzinger 2015-02-12 09:08:47 -08:00 committed by Commit bot
parent 515d260634
commit d202d79a6a

View File

@ -114,8 +114,13 @@ class JSTypedLoweringTester : public HandleAndZoneScope {
Node* Binop(const Operator* op, Node* left, Node* right) {
// JS binops also require context, effect, and 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) {
// JS unops also require context, effect, and control