summaryrefslogtreecommitdiff
path: root/deps/v8/src/snapshot-source-sink.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/snapshot-source-sink.cc')
-rw-r--r--deps/v8/src/snapshot-source-sink.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/deps/v8/src/snapshot-source-sink.cc b/deps/v8/src/snapshot-source-sink.cc
index 29bad33aac..9935ff7396 100644
--- a/deps/v8/src/snapshot-source-sink.cc
+++ b/deps/v8/src/snapshot-source-sink.cc
@@ -54,9 +54,7 @@ void SnapshotByteSink::PutInt(uintptr_t integer, const char* description) {
void SnapshotByteSink::PutRaw(byte* data, int number_of_bytes,
const char* description) {
- for (int i = 0; i < number_of_bytes; ++i) {
- Put(data[i], description);
- }
+ data_.AddAll(Vector<byte>(data, number_of_bytes));
}
void SnapshotByteSink::PutBlob(byte* data, int number_of_bytes,
@@ -89,11 +87,5 @@ bool SnapshotByteSource::GetBlob(const byte** data, int* number_of_bytes) {
}
}
-
-void DebugSnapshotSink::Put(byte b, const char* description) {
- PrintF("%24s: %x\n", description, b);
- sink_->Put(b, description);
-}
-
} // namespace v8::internal
} // namespace v8