summaryrefslogtreecommitdiffstats
path: root/chromium/v8/src/runtime/runtime-internal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/runtime/runtime-internal.cc')
-rw-r--r--chromium/v8/src/runtime/runtime-internal.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/v8/src/runtime/runtime-internal.cc b/chromium/v8/src/runtime/runtime-internal.cc
index bdb2931e200..08086fadfe3 100644
--- a/chromium/v8/src/runtime/runtime-internal.cc
+++ b/chromium/v8/src/runtime/runtime-internal.cc
@@ -332,7 +332,8 @@ RUNTIME_FUNCTION(Runtime_BytecodeBudgetInterrupt) {
CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
function->raw_feedback_cell().set_interrupt_budget(FLAG_interrupt_budget);
if (!function->has_feedback_vector()) {
- JSFunction::EnsureFeedbackVector(function);
+ IsCompiledScope is_compiled_scope(function->shared().is_compiled_scope());
+ JSFunction::EnsureFeedbackVector(function, &is_compiled_scope);
// Also initialize the invocation count here. This is only really needed for
// OSR. When we OSR functions with lazy feedback allocation we want to have
// a non zero invocation count so we can inline functions.