df06f1c715
This makes sure that the exit control flow that merges the try-block with the catch-block after a try-catch-statement creates a new merge node in cases where it has to. Otherwise dangling phi nodes might have the wrong number of value inputs. R=bmeurer@chromium.org TEST=mjsunit/regress/regress-crbug-505354 BUG=chromium:505354 LOG=N Review URL: https://codereview.chromium.org/1213183003 Cr-Commit-Position: refs/heads/master@{#29362}
15 lines
349 B
JavaScript
15 lines
349 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.
|
|
|
|
// Flags: --allow-natives-syntax --turbo-filter=f
|
|
|
|
function f() {
|
|
"use strict";
|
|
try {
|
|
for (let i = 0; i < 10; i++) {}
|
|
} catch(e) {}
|
|
}
|
|
%OptimizeFunctionOnNextCall(f);
|
|
f();
|