Author: [email protected]
Date: Fri Feb 20 05:21:41 2009
New Revision: 1329
Modified:
branches/bleeding_edge/src/log.cc
Log:
Minor fix to fix building without ENABLE_LOGGING_AND_PROFILING defined.
Review URL: http://codereview.chromium.org/21534
Modified: branches/bleeding_edge/src/log.cc
==============================================================================
--- branches/bleeding_edge/src/log.cc (original)
+++ branches/bleeding_edge/src/log.cc Fri Feb 20 05:21:41 2009
@@ -679,6 +679,7 @@
}
+#ifdef ENABLE_LOGGING_AND_PROFILING
int Logger::CodeObjectSize(Code* code) {
// Check that the assumptions about the layout of the code object holds.
ASSERT_EQ(reinterpret_cast<unsigned int>(code->instruction_start()) -
@@ -686,6 +687,7 @@
Code::kHeaderSize);
return code->instruction_size() + Code::kHeaderSize;
}
+#endif
void Logger::CodeCreateEvent(const char* tag, Code* code, const char*
comment) {
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---