| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index ced094c0f2290db3df029f79f9342aa2d666595c..03a34f77007efe1ca60d6cc76ab5d470f6e86ac7 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -127,7 +127,7 @@ static Handle<JSFunction> MakeFunction(bool is_global,
|
| #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::is_enabled() || OProfileAgent::is_enabled()) {
|
| + if (Logger::IsEnabled() || OProfileAgent::is_enabled()) {
|
| if (script->name()->IsString()) {
|
| SmartPointer<char> data =
|
| String::cast(script->name())->ToCString(DISALLOW_NULLS);
|
| @@ -315,7 +315,7 @@ bool Compiler::CompileLazy(Handle<SharedFunctionInfo> shared,
|
| // 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::is_enabled() || OProfileAgent::is_enabled()) {
|
| + if (Logger::IsEnabled() || OProfileAgent::is_enabled()) {
|
| if (script->name()->IsString()) {
|
| int line_num = GetScriptLineNumber(script, start_position);
|
| if (line_num > 0) {
|
|
|