| Index: src/compiler.h
|
| diff --git a/src/compiler.h b/src/compiler.h
|
| index 8aefe9205a90ca0bfe4059fdafbe2418900810c7..9b439397c3c18f25503787d7476edff9ca95ec56 100644
|
| --- a/src/compiler.h
|
| +++ b/src/compiler.h
|
| @@ -270,10 +270,10 @@ class CompilationInfo {
|
|
|
| bool GeneratePreagedPrologue() const {
|
| // Generate a pre-aged prologue if we are optimizing for size, which
|
| - // will make code flushing more aggressive. The code for WASM functions
|
| - // cannot be flushed, so it does not make sense to age them.
|
| + // will make code flushing more aggressive. Only apply to Code::FUNCTION,
|
| + // since StaticMarkingVisitor::IsFlushable only flushes proper functions.
|
| return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() &&
|
| - !is_debug() && output_code_kind_ != Code::WASM_FUNCTION;
|
| + !is_debug() && output_code_kind_ == Code::FUNCTION;
|
| }
|
|
|
| void EnsureFeedbackVector();
|
|
|