v8/test/mjsunit/ignition/regress-616064.js
rmcilroy 2fd3f9d69b [Interpreter] Don't try to eliminate dead-code in bytecode-array-builder
Eliminating dead code in the bytecode array builder doesn't play nice
with the register elimination optimizer. We should move it to it's own
stage in the optimization pipeline, however doing so would require
refactoring of how we deal with jumps, so for now just remove the dead
code elimination optimization.

BUG=chromium:616064

Review-Url: https://codereview.chromium.org/2030583002
Cr-Commit-Position: refs/heads/master@{#36660}
2016-06-01 22:55:10 +00:00

27 lines
540 B
JavaScript

// Copyright 2016 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.
// Flags: --ignition
function foo() {
if (this.Worker) {
function __f_0() { this.s = a; }
function __f_1() {
this.l = __f_0;
}
with ( 'source' , Object ) throw function __f_0(__f_0) {
return Worker.__f_0(-2147483648, __f_0);
};
var __v_9 = new Worker('');
__f_1 = {s: Math.s, __f_1: true};
}
}
try {
foo();
} catch(e) {
}