ec4d45a866
... more precisely, do not mess up the exceptional edges. Bug: chromium:924151 Change-Id: I3541a1c339c07f509519d4ece6d677dd499f181e Reviewed-on: https://chromium-review.googlesource.com/c/1429860 Reviewed-by: Tobias Tebbi <tebbi@chromium.org> Commit-Queue: Jaroslav Sevcik <jarin@chromium.org> Cr-Commit-Position: refs/heads/master@{#59063}
29 lines
459 B
JavaScript
29 lines
459 B
JavaScript
// Copyright 2019 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 g(code) {
|
|
try {
|
|
if (typeof code === 'function') {
|
|
+Symbol();
|
|
} else {
|
|
eval();
|
|
}
|
|
} catch (e) {
|
|
return;
|
|
}
|
|
dummy();
|
|
}
|
|
|
|
function f() {
|
|
g(g);
|
|
}
|
|
|
|
try { g(); } catch(e) {; }
|
|
|
|
f();
|
|
%OptimizeFunctionOnNextCall(f);
|
|
f();
|