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

Unified Diff: src/value-serializer.h

Issue 2264403004: Blink-compatible serialization of ArrayBuffer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: review comments Created 4 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/value-serializer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/value-serializer.h
diff --git a/src/value-serializer.h b/src/value-serializer.h
index aa6874b9671ddc4b2114df37d1b3f23cecd8e661..648ecb1e24031eb2d2247e4be8aaa1481acfad92 100644
--- a/src/value-serializer.h
+++ b/src/value-serializer.h
@@ -20,6 +20,7 @@ namespace internal {
class HeapNumber;
class Isolate;
+class JSArrayBuffer;
class JSDate;
class JSMap;
class JSRegExp;
@@ -68,6 +69,7 @@ class ValueSerializer {
void WriteDouble(double value);
void WriteOneByteString(Vector<const uint8_t> chars);
void WriteTwoByteString(Vector<const uc16> chars);
+ void WriteRawBytes(const void* source, size_t length);
uint8_t* ReserveRawBytes(size_t bytes);
// Writing V8 objects of various kinds.
@@ -83,6 +85,7 @@ class ValueSerializer {
void WriteJSRegExp(JSRegExp* regexp);
Maybe<bool> WriteJSMap(Handle<JSMap> map) WARN_UNUSED_RESULT;
Maybe<bool> WriteJSSet(Handle<JSSet> map) WARN_UNUSED_RESULT;
+ Maybe<bool> WriteJSArrayBuffer(JSArrayBuffer* array_buffer);
/*
* Reads the specified keys from the object and writes key-value pairs to the
@@ -158,6 +161,7 @@ class ValueDeserializer {
MaybeHandle<JSRegExp> ReadJSRegExp() WARN_UNUSED_RESULT;
MaybeHandle<JSMap> ReadJSMap() WARN_UNUSED_RESULT;
MaybeHandle<JSSet> ReadJSSet() WARN_UNUSED_RESULT;
+ MaybeHandle<JSArrayBuffer> ReadJSArrayBuffer() WARN_UNUSED_RESULT;
/*
* Reads key-value pairs into the object until the specified end tag is
« no previous file with comments | « no previous file | src/value-serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698