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

Unified Diff: src/value-serializer.h

Issue 2287653002: Blink-compatible serialization of array buffer views. (Closed)
Patch Set: Merge branch 'master' into vs-array-buffer-view 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 a985aaffb8b533c6e87517824a13f09d9e7df5e8..761e38ac6aee1571c65706361bc1e956bf7115e0 100644
--- a/src/value-serializer.h
+++ b/src/value-serializer.h
@@ -21,6 +21,7 @@ namespace internal {
class HeapNumber;
class Isolate;
class JSArrayBuffer;
+class JSArrayBufferView;
class JSDate;
class JSMap;
class JSRegExp;
@@ -94,6 +95,7 @@ class ValueSerializer {
Maybe<bool> WriteJSMap(Handle<JSMap> map) WARN_UNUSED_RESULT;
Maybe<bool> WriteJSSet(Handle<JSSet> map) WARN_UNUSED_RESULT;
Maybe<bool> WriteJSArrayBuffer(JSArrayBuffer* array_buffer);
+ Maybe<bool> WriteJSArrayBufferView(JSArrayBufferView* array_buffer);
/*
* Reads the specified keys from the object and writes key-value pairs to the
@@ -174,6 +176,10 @@ class ValueDeserializer {
Maybe<double> ReadDouble() WARN_UNUSED_RESULT;
Maybe<Vector<const uint8_t>> ReadRawBytes(int size) WARN_UNUSED_RESULT;
+ // Like ReadObject, but skips logic for special cases in simulating the
+ // "stack machine".
+ MaybeHandle<Object> ReadObjectInternal() WARN_UNUSED_RESULT;
+
// Reading V8 objects of specific kinds.
// The tag is assumed to have already been read.
MaybeHandle<String> ReadUtf8String() WARN_UNUSED_RESULT;
@@ -188,6 +194,8 @@ class ValueDeserializer {
MaybeHandle<JSSet> ReadJSSet() WARN_UNUSED_RESULT;
MaybeHandle<JSArrayBuffer> ReadJSArrayBuffer() WARN_UNUSED_RESULT;
MaybeHandle<JSArrayBuffer> ReadTransferredJSArrayBuffer() WARN_UNUSED_RESULT;
+ MaybeHandle<JSArrayBufferView> ReadJSArrayBufferView(
+ Handle<JSArrayBuffer> buffer) 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