Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: src/codegen.cc

Issue 16573: Fixed build with no ENABLE_LOGGING_AND_PROFILING (Closed)
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/codegen-arm.h » ('j') | src/log.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | src/codegen-arm.h » ('j') | src/log.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698