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}
This commit is contained in:
mstarzinger 2015-01-21 06:33:44 -08:00 committed by Commit bot
parent 9baa7e07f8
commit 65eb16178d
2 changed files with 6 additions and 2 deletions

View File

@ -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],

View File

@ -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) {