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:
parent
515d260634
commit
d202d79a6a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user