Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index a6ba01d6b7dc6b322d8ba6741ec6b7822587dc51..3d352610589f430bc216663758dcf76cd630092c 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -34,7 +34,8 @@ bool FullCodeGenerator::MakeCode(CompilationInfo* info) { |
TRACE_EVENT0("v8", "V8.CompileFullCode"); |
Handle<Script> script = info->script(); |
- if (!script->IsUndefined() && !script->source()->IsUndefined()) { |
+ if (!script->IsUndefined(isolate) && |
+ !script->source()->IsUndefined(isolate)) { |
int len = String::cast(script->source())->length(); |
isolate->counters()->total_full_codegen_source_size()->Increment(len); |
} |