| Index: src/serialize.cc
|
| diff --git a/src/serialize.cc b/src/serialize.cc
|
| index bf00da03a57edc7560a2f8dd89d627143709c1d2..b5cb478cdfde65a3663bd9757d26fb291bb0c615 100644
|
| --- a/src/serialize.cc
|
| +++ b/src/serialize.cc
|
| @@ -16,6 +16,7 @@
|
| #include "src/runtime.h"
|
| #include "src/serialize.h"
|
| #include "src/snapshot.h"
|
| +#include "src/snapshot-source-sink.h"
|
| #include "src/stub-cache.h"
|
| #include "src/v8threads.h"
|
|
|
| @@ -1204,19 +1205,6 @@ void Deserializer::ReadChunk(Object** current,
|
| }
|
|
|
|
|
| -void SnapshotByteSink::PutInt(uintptr_t integer, const char* description) {
|
| - ASSERT(integer < 1 << 22);
|
| - integer <<= 2;
|
| - int bytes = 1;
|
| - if (integer > 0xff) bytes = 2;
|
| - if (integer > 0xffff) bytes = 3;
|
| - integer |= bytes;
|
| - Put(static_cast<int>(integer & 0xff), "IntPart1");
|
| - if (bytes > 1) Put(static_cast<int>((integer >> 8) & 0xff), "IntPart2");
|
| - if (bytes > 2) Put(static_cast<int>((integer >> 16) & 0xff), "IntPart3");
|
| -}
|
| -
|
| -
|
| Serializer::Serializer(Isolate* isolate, SnapshotByteSink* sink)
|
| : isolate_(isolate),
|
| sink_(sink),
|
| @@ -1832,12 +1820,4 @@ void Serializer::InitializeCodeAddressMap() {
|
| }
|
|
|
|
|
| -bool SnapshotByteSource::AtEOF() {
|
| - if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
|
| - for (int x = position_; x < length_; x++) {
|
| - if (data_[x] != SerializerDeserializer::nop()) return false;
|
| - }
|
| - return true;
|
| -}
|
| -
|
| } } // namespace v8::internal
|
|
|