Minor fix to fix building without ENABLE_LOGGING_AND_PROFILING defined.
Review URL: http://codereview.chromium.org/21534 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1329 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
f8051275e0
commit
aeafc3bba4
@ -679,6 +679,7 @@ void Logger::DeleteEvent(const char* name, void* object) {
|
||||
}
|
||||
|
||||
|
||||
#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 @@ int Logger::CodeObjectSize(Code* code) {
|
||||
Code::kHeaderSize);
|
||||
return code->instruction_size() + Code::kHeaderSize;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
void Logger::CodeCreateEvent(const char* tag, Code* code, const char* comment) {
|
||||
|
Loading…
Reference in New Issue
Block a user