Index: src/serialize.cc |
=================================================================== |
--- src/serialize.cc (revision 4713) |
+++ src/serialize.cc (working copy) |
@@ -1299,7 +1299,7 @@ |
} |
sink_->Put(kExternalReference + representation, "ExternalReference"); |
sink_->PutInt(encoding, "reference id"); |
- bytes_processed_so_far_ += Assembler::kExternalTargetSize; |
+ bytes_processed_so_far_ += rinfo->target_address_size(); |
} |
@@ -1309,7 +1309,7 @@ |
OutputRawData(target_start); |
Code* target = Code::GetCodeFromTargetAddress(rinfo->target_address()); |
serializer_->SerializeObject(target, kFromCode, kFirstInstruction); |
- bytes_processed_so_far_ += Assembler::kCallTargetSize; |
+ bytes_processed_so_far_ += rinfo->target_address_size(); |
} |