| Index: src/codegen.cc
|
| diff --git a/src/codegen.cc b/src/codegen.cc
|
| index 265f6badb2e5bd0675ff6a3a5a735050162c491d..81c2af81f7bfb92bd69722dcc14fddd92825abe7 100644
|
| --- a/src/codegen.cc
|
| +++ b/src/codegen.cc
|
| @@ -163,6 +163,8 @@ Handle<Code> CodeGenerator::MakeCode(FunctionLiteral* flit,
|
| }
|
|
|
|
|
| +#ifdef ENABLE_LOGGING_AND_PROFILING
|
| +
|
| bool CodeGenerator::ShouldGenerateLog(Expression* type) {
|
| ASSERT(type != NULL);
|
| if (!Logger::is_enabled()) return false;
|
| @@ -175,6 +177,8 @@ bool CodeGenerator::ShouldGenerateLog(Expression* type) {
|
| return false;
|
| }
|
|
|
| +#endif
|
| +
|
|
|
| // Sets the function info on a function.
|
| // The start_position points to the first '(' character after the function name
|
|
|