| Index: src/codegen.cc
|
| diff --git a/src/codegen.cc b/src/codegen.cc
|
| index 4bbe6ae26b40262a3d5610942c90d95720cd4732..6abd0e39a0783215c796d3bb993efce940fc7c62 100644
|
| --- a/src/codegen.cc
|
| +++ b/src/codegen.cc
|
| @@ -176,7 +176,10 @@ static Vector<const char> kRegexp = CStrVector("regexp");
|
|
|
| bool CodeGenerator::ShouldGenerateLog(Expression* type) {
|
| ASSERT(type != NULL);
|
| - if (!LOGGER->is_logging() && !CpuProfiler::is_profiling()) return false;
|
| + Isolate* isolate = Isolate::Current();
|
| + if (!isolate->logger()->is_logging() && !CpuProfiler::is_profiling(isolate)) {
|
| + return false;
|
| + }
|
| Handle<String> name = Handle<String>::cast(type->AsLiteral()->handle());
|
| if (FLAG_log_regexp) {
|
| if (name->IsEqualTo(kRegexp))
|
|
|