5e0cd389bf
We need to trim the graph before we execute the MemoryOptimizer, because that just walks the effect chain from Start to End and cannot deal with dead nodes in the use lists. R=jarin@chromium.org BUG=chromium:614292 Review-Url: https://codereview.chromium.org/2080703003 Cr-Commit-Position: refs/heads/master@{#37133}
15 lines
325 B
JavaScript
15 lines
325 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: --allow-natives-syntax
|
|
|
|
function foo() {
|
|
return [] | 0 && values[0] || false;
|
|
}
|
|
|
|
%OptimizeFunctionOnNextCall(foo);
|
|
try {
|
|
foo();
|
|
} catch (e) {}
|