Commit 65eb1617 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

Add missing FrameState to JSTypedLoweringTester.

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

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

Cr-Commit-Position: refs/heads/master@{#26194}
parent 9baa7e07
......@@ -101,7 +101,6 @@
'test-api/Regress93759': [PASS, NO_VARIANTS],
'test-debug/DebugBreakOnExceptionInObserveCallback': [PASS, NO_VARIANTS],
'test-object-observe/DeliveryCallbackThrows': [PASS, NO_VARIANTS],
'test-js-typed-lowering/JSToNumberOfNumberOrOtherPrimitive': [PASS, NO_VARIANTS],
# TODO(titzer): Triggers bug in late control reduction.
'test-run-inlining/InlineLoopGuardedEmpty': [SKIP],
......
......@@ -118,7 +118,12 @@ class JSTypedLoweringTester : public HandleAndZoneScope {
Node* Unop(const Operator* op, Node* input) {
// JS unops also require context, effect, and control
return graph.NewNode(op, input, context(), start(), control());
if (OperatorProperties::HasFrameStateInput(op)) {
return graph.NewNode(op, input, context(), EmptyFrameState(context()),
start(), control());
} else {
return graph.NewNode(op, input, context(), start(), control());
}
}
Node* UseForEffect(Node* node) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment