Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 546ac887421ab2e10f251ec038d98f049dc37755..6a8ca7cb3f550a32a46b5bac265d08c78a31dab4 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1261,19 +1261,20 @@ Handle<SharedFunctionInfo> Compiler::CompileScript( |
int column_offset, bool is_shared_cross_origin, Handle<Context> context, |
v8::Extension* extension, ScriptData** cached_data, |
ScriptCompiler::CompileOptions compile_options, NativesFlag natives) { |
+ Isolate* isolate = source->GetIsolate(); |
if (compile_options == ScriptCompiler::kNoCompileOptions) { |
cached_data = NULL; |
} else if (compile_options == ScriptCompiler::kProduceParserCache || |
compile_options == ScriptCompiler::kProduceCodeCache) { |
DCHECK(cached_data && !*cached_data); |
DCHECK(extension == NULL); |
+ DCHECK(!isolate->debug()->is_loaded()); |
} else { |
DCHECK(compile_options == ScriptCompiler::kConsumeParserCache || |
compile_options == ScriptCompiler::kConsumeCodeCache); |
DCHECK(cached_data && *cached_data); |
DCHECK(extension == NULL); |
} |
- Isolate* isolate = source->GetIsolate(); |
int source_length = source->length(); |
isolate->counters()->total_load_size()->Increment(source_length); |
isolate->counters()->total_compile_size()->Increment(source_length); |