diff options
author | Michaël Zasso <targos@protonmail.com> | 2022-01-29 08:33:07 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2022-02-02 17:23:18 +0100 |
commit | 974ab4060fe3eff74dc0a62a5a27d516738f4c55 (patch) | |
tree | 30fbcca796ca5cc7b4abf917e716e2b02899cb7a /deps/v8/src/runtime/runtime-compiler.cc | |
parent | 4318b2348dbcd5003e0c4a14b5fe378cceec3c81 (diff) | |
download | node-new-974ab4060fe3eff74dc0a62a5a27d516738f4c55.tar.gz |
deps: update V8 to 9.8.177.9
PR-URL: https://github.com/nodejs/node/pull/41610
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/v8/src/runtime/runtime-compiler.cc')
-rw-r--r-- | deps/v8/src/runtime/runtime-compiler.cc | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/deps/v8/src/runtime/runtime-compiler.cc b/deps/v8/src/runtime/runtime-compiler.cc index 54924e0f7b..a3f7872bca 100644 --- a/deps/v8/src/runtime/runtime-compiler.cc +++ b/deps/v8/src/runtime/runtime-compiler.cc @@ -45,7 +45,8 @@ Object CompileOptimized(Isolate* isolate, Handle<JSFunction> function, // As a post-condition of CompileOptimized, the function *must* be compiled, // i.e. the installed Code object must not be the CompileLazy builtin. DCHECK(function->is_compiled()); - return function->code(); + // TODO(v8:11880): avoid roundtrips between cdc and code. + return ToCodeT(function->code()); } } // namespace @@ -75,7 +76,8 @@ RUNTIME_FUNCTION(Runtime_CompileLazy) { return ReadOnlyRoots(isolate).exception(); } DCHECK(function->is_compiled()); - return function->code(); + // TODO(v8:11880): avoid roundtrips between cdc and code. + return ToCodeT(function->code()); } RUNTIME_FUNCTION(Runtime_InstallBaselineCode) { @@ -89,7 +91,7 @@ RUNTIME_FUNCTION(Runtime_InstallBaselineCode) { DCHECK(!function->HasOptimizationMarker()); DCHECK(!function->has_feedback_vector()); JSFunction::EnsureFeedbackVector(function, &is_compiled_scope); - Code baseline_code = sfi->baseline_code(kAcquireLoad); + CodeT baseline_code = sfi->baseline_code(kAcquireLoad); function->set_code(baseline_code); return baseline_code; } @@ -125,7 +127,8 @@ RUNTIME_FUNCTION(Runtime_FunctionFirstExecution) { function->feedback_vector().ClearOptimizationMarker(); // Return the code to continue execution, we don't care at this point whether // this is for lazy compilation or has been eagerly complied. - return function->code(); + // TODO(v8:11880): avoid roundtrips between cdc and code. + return ToCodeT(function->code()); } RUNTIME_FUNCTION(Runtime_HealOptimizedCodeSlot) { @@ -138,7 +141,8 @@ RUNTIME_FUNCTION(Runtime_HealOptimizedCodeSlot) { function->feedback_vector().EvictOptimizedCodeMarkedForDeoptimization( function->raw_feedback_cell(), function->shared(), "Runtime_HealOptimizedCodeSlot"); - return function->code(); + // TODO(v8:11880): avoid roundtrips between cdc and code. + return ToCodeT(function->code()); } RUNTIME_FUNCTION(Runtime_InstantiateAsmJs) { @@ -294,7 +298,7 @@ BytecodeOffset DetermineEntryAndDisarmOSRForUnoptimized( } // namespace RUNTIME_FUNCTION(Runtime_CompileForOnStackReplacement) { - HandleScope scope(isolate); + HandleScope handle_scope(isolate); DCHECK_EQ(0, args.length()); // Only reachable when OST is enabled. |