v8/test/mjsunit/regress/regress-458876.js
titzer c5f7d2bb82 [turbofan] Fix control reducer with re-reducing branches.
R=jarin@chromium.org
LOG=Y
BUG=chromium:458876

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

Cr-Commit-Position: refs/heads/master@{#26666}
2015-02-16 14:56:49 +00:00

17 lines
380 B
JavaScript

// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
function module() {
"use asm";
function foo() {
do ; while (foo ? 0 : 1) ;
return -1 > 0 ? -1 : 0;
}
return foo;
}
var foo = module();
assertEquals(0, foo());
assertEquals(0, foo());