Index: src/serialize.cc |
=================================================================== |
--- src/serialize.cc (revision 3271) |
+++ src/serialize.cc (working copy) |
@@ -1948,6 +1948,7 @@ |
break; |
case OBJECT_SERIALIZATION + CODE_SPACE: |
ReadObject(CODE_SPACE, Heap::code_space(), current++); |
+ Logger::LogCodeObject(current[-1]); |
break; |
case OBJECT_SERIALIZATION + CELL_SPACE: |
ReadObject(CELL_SPACE, Heap::cell_space(), current++); |
@@ -1957,6 +1958,7 @@ |
break; |
case OBJECT_SERIALIZATION + kLargeCode: |
ReadObject(kLargeCode, Heap::lo_space(), current++); |
+ Logger::LogCodeObject(current[-1]); |
break; |
case OBJECT_SERIALIZATION + kLargeFixedArray: |
ReadObject(kLargeFixedArray, Heap::lo_space(), current++); |
@@ -1965,6 +1967,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); |
// 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, |
@@ -1977,6 +1980,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); |
// 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, |