| Index: src/codegen.cc
|
| diff --git a/src/codegen.cc b/src/codegen.cc
|
| index 508e221eb32deeeb9398de6910ce546dc604971e..90ab2b5a209713bd51eb7f26fc9c934dc06e4ae9 100644
|
| --- a/src/codegen.cc
|
| +++ b/src/codegen.cc
|
| @@ -171,7 +171,8 @@ 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() && !CpuProfiler::is_profiling(isolate)) {
|
| + if (!isolate->logger()->is_logging() &&
|
| + !isolate->cpu_profiler()->is_profiling()) {
|
| return false;
|
| }
|
| Handle<String> name = Handle<String>::cast(type->AsLiteral()->handle());
|
|
|