Index: src/v8.cc |
diff --git a/src/v8.cc b/src/v8.cc |
index 3bec827aa6ff280e6414ad0668046b7880a24cd8..39533611705c7ab2dceb0046ab23146aa9e7d4d1 100644 |
--- a/src/v8.cc |
+++ b/src/v8.cc |
@@ -114,8 +114,11 @@ bool V8::Initialize(Deserializer *des) { |
OProfileAgent::Initialize(); |
- if (FLAG_log_code) { |
+ // If we are deserializing, log non-function code objects and compiled |
+ // functions found in the snapshot. |
+ if (des != NULL && FLAG_log_code) { |
HandleScope scope; |
+ LOG(LogCodeObjects()); |
LOG(LogCompiledFunctions()); |
} |