Commit c8763dd1 authored by Maya Lekova's avatar Maya Lekova Committed by Commit Bot

[test] Fix a regressed DCHECK in JSInliner

Bug: chromium:951400
Change-Id: Ib5454541e7c661649ccdb9771298ff90b3e9db5d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1571614
Commit-Queue: Maya Lekova <mslekova@chromium.org>
Auto-Submit: Maya Lekova <mslekova@chromium.org>
Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60923}
parent 241294fe
......@@ -382,6 +382,8 @@ Reduction JSInliner::ReduceJSCall(Node* node) {
// TODO(mslekova): Remove those when inlining is brokerized.
AllowHandleDereference allow_handle_deref;
AllowHandleAllocation allow_handle_alloc;
AllowHeapAllocation allow_heap_alloc;
AllowCodeDependencyChange allow_code_dep_change;
// Determine the call target.
if (!DetermineCallTarget(node, shared_info)) return NoChange();
......
// 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 --expose-gc
function foo(arr) {
gc();
eval(arr);
}
try {
foo("tag`Hello${tag}`");
} catch (e) {}
%OptimizeFunctionOnNextCall(foo);
try {
foo("tag.prop`${tag}`");
} catch (e) {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment