Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 075f07cc353e991fd7969a49725599cb5fcfd45b..a18ff0d274c75e14eac2701a06f5d93e1cf5e8af 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -37,6 +37,7 @@ |
#include "serialize.h" |
#include "debug.h" |
#include "heap.h" |
+#include "isolate-inl.h" |
namespace v8 { |
namespace internal { |
@@ -3659,7 +3660,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); |