Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index 90ab2b5a209713bd51eb7f26fc9c934dc06e4ae9..508e221eb32deeeb9398de6910ce546dc604971e 100644 |
--- a/src/codegen.cc |
+++ b/src/codegen.cc |
@@ -171,8 +171,7 @@ void CodeGenerator::PrintCode(Handle<Code> code, CompilationInfo* info) { |
bool CodeGenerator::ShouldGenerateLog(Expression* type) { |
ASSERT(type != NULL); |
Isolate* isolate = Isolate::Current(); |
- if (!isolate->logger()->is_logging() && |
- !isolate->cpu_profiler()->is_profiling()) { |
+ if (!isolate->logger()->is_logging() && !CpuProfiler::is_profiling(isolate)) { |
return false; |
} |
Handle<String> name = Handle<String>::cast(type->AsLiteral()->handle()); |