diff --git a/src/runtime/runtime-compiler.cc b/src/runtime/runtime-compiler.cc index 898279cdb6..5eb07e1f24 100644 --- a/src/runtime/runtime-compiler.cc +++ b/src/runtime/runtime-compiler.cc @@ -311,7 +311,7 @@ RUNTIME_FUNCTION(Runtime_CompileForOnStackReplacement) { // Possibly compile for NCI caching. if (!MaybeSpawnNativeContextIndependentCompilationJob( - function, FLAG_concurrent_recompilation + function, isolate->concurrent_recompilation_enabled() ? ConcurrencyMode::kConcurrent : ConcurrencyMode::kNotConcurrent)) { return Object(); diff --git a/test/mjsunit/regress/regress-1145988.js b/test/mjsunit/regress/regress-1145988.js new file mode 100644 index 0000000000..4a7dac2c3b --- /dev/null +++ b/test/mjsunit/regress/regress-1145988.js @@ -0,0 +1,10 @@ +// Copyright 2020 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. + +__f_1(); +function __f_1() { + for (var __v_3 = 0; __v_3 < 100000; __v_3++) { + } +} +__f_1();