Index: src/compiler.cc |
=================================================================== |
--- src/compiler.cc (revision 2260) |
+++ src/compiler.cc (working copy) |
@@ -175,7 +175,7 @@ |
#if defined ENABLE_LOGGING_AND_PROFILING || defined ENABLE_OPROFILE_AGENT |
// Log the code generation for the script. Check explicit whether logging is |
// to avoid allocating when not required. |
- if (Logger::IsEnabled() || OProfileAgent::is_enabled()) { |
+ if (Logger::is_logging() || OProfileAgent::is_enabled()) { |
if (script->name()->IsString()) { |
SmartPointer<char> data = |
String::cast(script->name())->ToCString(DISALLOW_NULLS); |
@@ -373,7 +373,7 @@ |
// Log the code generation. If source information is available include script |
// name and line number. Check explicit whether logging is enabled as finding |
// the line number is not for free. |
- if (Logger::IsEnabled() || OProfileAgent::is_enabled()) { |
+ if (Logger::is_logging() || OProfileAgent::is_enabled()) { |
Handle<String> func_name(name->length() > 0 ? |
*name : shared->inferred_name()); |
if (script->name()->IsString()) { |