@@ -3059,34 +3059,6 @@ bool Compiler::Compile(Isolate* isolate, DirectHandle<JSFunction> function,
30593059
30603060 function->UpdateCode (isolate, *code);
30613061
3062- // Optimize now if --always-turbofan is enabled.
3063- #if V8_ENABLE_WEBASSEMBLY
3064- if (v8_flags.always_turbofan && !function->shared ()->HasAsmWasmData ()) {
3065- #else
3066- if (v8_flags.always_turbofan ) {
3067- #endif // V8_ENABLE_WEBASSEMBLY
3068- DCHECK (!function->tiering_in_progress ());
3069- CompilerTracer::TraceOptimizeForAlwaysOpt (isolate, function,
3070- CodeKindForTopTier ());
3071-
3072- const CodeKind code_kind = CodeKindForTopTier ();
3073- const ConcurrencyMode concurrency_mode = ConcurrencyMode::kSynchronous ;
3074-
3075- if (v8_flags.stress_concurrent_inlining &&
3076- isolate->concurrent_recompilation_enabled () &&
3077- isolate->node_observer () == nullptr ) {
3078- SpawnDuplicateConcurrentJobForStressTesting (isolate, function,
3079- concurrency_mode, code_kind);
3080- }
3081-
3082- DirectHandle<Code> maybe_code;
3083- if (GetOrCompileOptimized (isolate, function, concurrency_mode, code_kind)
3084- .ToHandle (&maybe_code)) {
3085- code = maybe_code;
3086- function->UpdateOptimizedCode (isolate, *code);
3087- }
3088- }
3089-
30903062 // Install a feedback vector if necessary.
30913063 if (code->kind () == CodeKind::BASELINE) {
30923064 JSFunction::EnsureFeedbackVector (isolate, function, is_compiled_scope);
@@ -3247,13 +3219,8 @@ void Compiler::CompileOptimized(Isolate* isolate,
32473219 DCHECK_IMPLIES (function->IsTieringRequestedOrInProgress () &&
32483220 !function->IsLoggingRequested (isolate),
32493221 function->tiering_in_progress ());
3250- if (!v8_flags.always_turbofan ) {
3251- // Before a maglev optimization job is started we might have to compile
3252- // bytecode. This can trigger a turbofan compilation if always_turbofan is
3253- // set. Therefore we need to skip this dcheck in that case.
3254- DCHECK_IMPLIES (!tiering_was_in_progress && function->tiering_in_progress (),
3255- function->ChecksTieringState (isolate));
3256- }
3222+ DCHECK_IMPLIES (!tiering_was_in_progress && function->tiering_in_progress (),
3223+ function->ChecksTieringState (isolate));
32573224 DCHECK_IMPLIES (!tiering_was_in_progress && function->tiering_in_progress (),
32583225 IsConcurrent (mode));
32593226#endif // DEBUG
@@ -4603,15 +4570,6 @@ void Compiler::PostInstantiation(Isolate* isolate,
46034570 }
46044571 }
46054572#endif // !V8_ENABLE_LEAPTIERING
4606-
4607- if (v8_flags.always_turbofan && shared->allows_lazy_compilation () &&
4608- !shared->optimization_disabled (CodeKind::TURBOFAN_JS) &&
4609- !function->HasAvailableOptimizedCode (isolate)) {
4610- CompilerTracer::TraceMarkForAlwaysOpt (isolate, function);
4611- JSFunction::EnsureFeedbackVector (isolate, function, is_compiled_scope);
4612- function->RequestOptimization (isolate, CodeKind::TURBOFAN_JS,
4613- ConcurrencyMode::kSynchronous );
4614- }
46154573 }
46164574
46174575 if (shared->is_toplevel () || shared->is_wrapped ()) {
0 commit comments