Chromium Code Reviews| Index: src/isolate-inl.h |
| diff --git a/src/isolate-inl.h b/src/isolate-inl.h |
| index 45076f565786c095f29cc4d2039b71ef80c12e42..764bcb8bf3858fac419a2163f47cdd5aa78ca77f 100644 |
| --- a/src/isolate-inl.h |
| +++ b/src/isolate-inl.h |
| @@ -48,6 +48,11 @@ SaveContext::SaveContext(Isolate* isolate) |
| } |
| +bool Isolate::IsCodePreAgingActive() { |
| + return FLAG_optimize_for_size && FLAG_age_code && !IsDebuggerActive(); |
| +} |
| + |
| + |
| bool Isolate::IsDebuggerActive() { |
| #ifdef ENABLE_DEBUGGER_SUPPORT |
| if (!NoBarrier_Load(&debugger_initialized_)) return false; |