Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/serialize.cc

Issue 50413004: Removed RelocInfo::target_object_address() and reconstructed_obj_ptr_. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('k') | src/x64/assembler-x64-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1661 current_contents, kPlain, kStartOfObject, 0); 1661 current_contents, kPlain, kStartOfObject, 0);
1662 bytes_processed_so_far_ += kPointerSize; 1662 bytes_processed_so_far_ += kPointerSize;
1663 current++; 1663 current++;
1664 } 1664 }
1665 } 1665 }
1666 } 1666 }
1667 } 1667 }
1668 1668
1669 1669
1670 void Serializer::ObjectSerializer::VisitEmbeddedPointer(RelocInfo* rinfo) { 1670 void Serializer::ObjectSerializer::VisitEmbeddedPointer(RelocInfo* rinfo) {
1671 Object** current = rinfo->target_object_address(); 1671 Object* current = rinfo->target_object();
1672 1672
1673 int skip = OutputRawData(rinfo->target_address_address(), 1673 int skip = OutputRawData(rinfo->target_address_address(),
1674 kCanReturnSkipInsteadOfSkipping); 1674 kCanReturnSkipInsteadOfSkipping);
1675 HowToCode representation = rinfo->IsCodedSpecially() ? kFromCode : kPlain; 1675 HowToCode representation = rinfo->IsCodedSpecially() ? kFromCode : kPlain;
1676 serializer_->SerializeObject(*current, representation, kStartOfObject, skip); 1676 serializer_->SerializeObject(current, representation, kStartOfObject, skip);
1677 bytes_processed_so_far_ += rinfo->target_address_size(); 1677 bytes_processed_so_far_ += rinfo->target_address_size();
1678 } 1678 }
1679 1679
1680 1680
1681 void Serializer::ObjectSerializer::VisitExternalReference(Address* p) { 1681 void Serializer::ObjectSerializer::VisitExternalReference(Address* p) {
1682 Address references_start = reinterpret_cast<Address>(p); 1682 Address references_start = reinterpret_cast<Address>(p);
1683 int skip = OutputRawData(references_start, kCanReturnSkipInsteadOfSkipping); 1683 int skip = OutputRawData(references_start, kCanReturnSkipInsteadOfSkipping);
1684 1684
1685 sink_->Put(kExternalReference + kPlain + kStartOfObject, "ExternalRef"); 1685 sink_->Put(kExternalReference + kPlain + kStartOfObject, "ExternalRef");
1686 sink_->PutInt(skip, "SkipB4ExternalRef"); 1686 sink_->PutInt(skip, "SkipB4ExternalRef");
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 1864
1865 bool SnapshotByteSource::AtEOF() { 1865 bool SnapshotByteSource::AtEOF() {
1866 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1866 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1867 for (int x = position_; x < length_; x++) { 1867 for (int x = position_; x < length_; x++) {
1868 if (data_[x] != SerializerDeserializer::nop()) return false; 1868 if (data_[x] != SerializerDeserializer::nop()) return false;
1869 } 1869 }
1870 return true; 1870 return true;
1871 } 1871 }
1872 1872
1873 } } // namespace v8::internal 1873 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/x64/assembler-x64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698