paul99/v8m-rb — comment on commit 53b273043e8ae4bc809945aa41929709d897f119
File: src/serialize.cc line 1484
By paul99:

The above duplicates a lot of code to just change KPlain to kFromCode. Maybe model it after this code from Serializer::ObjectSerializer::VisitRuntimeEntry() (might test the ternary operator thing, that's what I would have used.....)

int representation;
// Can't use a ternary operator because of gcc.
if (rinfo->IsCodedSpecially()) {
representation = kFromCode;
} else {
representation = kPlain;
}
serializer_->SerializeObject(*current, representation, kStartOfObject);
bytes_processed_so_far_ += rinfo->target_address_size();