Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index ed69fd07686f8d1df9287782fc9f40459744a420..025bd891c2273305ea7da6d98d37692ad23bb876 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -33,6 +33,7 @@ |
#include "codegen.h" |
#include "cpu-profiler.h" |
#include "debug.h" |
+#include "isolate-inl.h" |
#include "runtime.h" |
#include "serialize.h" |
@@ -1022,7 +1023,7 @@ void MacroAssembler::Prologue(PrologueFrameMode frame_mode) { |
} else { |
PredictableCodeSizeScope predictible_code_size_scope(this, |
kNoCodeAgeSequenceLength); |
- if (FLAG_optimize_for_size && FLAG_age_code) { |
+ if (isolate()->IsCodePreAgingActive()) { |
// Pre-age the code. |
call(isolate()->builtins()->MarkCodeAsExecutedOnce(), |
RelocInfo::CODE_AGE_SEQUENCE); |