Revision: 3341 Author: [email protected] Date: Fri Nov 20 04:38:59 2009 Log: Fix issue 520: wrap Logger calls into LOG macro
BUG=520 Review URL: http://codereview.chromium.org/422001 http://code.google.com/p/v8/source/detail?r=3341 Modified: /branches/bleeding_edge/src/serialize.cc /branches/bleeding_edge/src/v8.cc ======================================= --- /branches/bleeding_edge/src/serialize.cc Mon Nov 16 04:08:40 2009 +++ /branches/bleeding_edge/src/serialize.cc Fri Nov 20 04:38:59 2009 @@ -668,7 +668,7 @@ break; case OBJECT_SERIALIZATION + CODE_SPACE: ReadObject(CODE_SPACE, Heap::code_space(), current++); - Logger::LogCodeObject(current[-1]); + LOG(LogCodeObject(current[-1])); break; case OBJECT_SERIALIZATION + CELL_SPACE: ReadObject(CELL_SPACE, Heap::cell_space(), current++); @@ -678,7 +678,7 @@ break; case OBJECT_SERIALIZATION + kLargeCode: ReadObject(kLargeCode, Heap::lo_space(), current++); - Logger::LogCodeObject(current[-1]); + LOG(LogCodeObject(current[-1])); break; case OBJECT_SERIALIZATION + kLargeFixedArray: ReadObject(kLargeFixedArray, Heap::lo_space(), current++); @@ -687,7 +687,7 @@ Object* new_code_object = NULL; ReadObject(kLargeCode, Heap::lo_space(), &new_code_object); Code* code_object = reinterpret_cast<Code*>(new_code_object); - Logger::LogCodeObject(code_object); + LOG(LogCodeObject(code_object)); // Setting a branch/call to another code object from code. Address location_of_branch_data = reinterpret_cast<Address>(current); Assembler::set_target_at(location_of_branch_data, @@ -700,7 +700,7 @@ Object* new_code_object = NULL; ReadObject(CODE_SPACE, Heap::code_space(), &new_code_object); Code* code_object = reinterpret_cast<Code*>(new_code_object); - Logger::LogCodeObject(code_object); + LOG(LogCodeObject(code_object)); // Setting a branch/call to another code object from code. Address location_of_branch_data = reinterpret_cast<Address>(current); Assembler::set_target_at(location_of_branch_data, ======================================= --- /branches/bleeding_edge/src/v8.cc Mon Nov 16 04:08:40 2009 +++ /branches/bleeding_edge/src/v8.cc Fri Nov 20 04:38:59 2009 @@ -116,7 +116,7 @@ if (FLAG_log_code) { HandleScope scope; - Logger::LogCompiledFunctions(); + LOG(LogCompiledFunctions()); } return true; --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
