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

Unified Diff: src/value-serializer.h

Issue 2269923004: Blink-compatible serialization of Map and Set objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: StackLimitCheck + HandleScope 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 ab9c66489963569e8d53f5fcca31b013bdf59561..aa6874b9671ddc4b2114df37d1b3f23cecd8e661 100644
--- a/src/value-serializer.h
+++ b/src/value-serializer.h
@@ -21,7 +21,9 @@ namespace internal {
class HeapNumber;
class Isolate;
class JSDate;
+class JSMap;
class JSRegExp;
+class JSSet;
class JSValue;
class Object;
class Oddball;
@@ -79,6 +81,8 @@ class ValueSerializer {
void WriteJSDate(JSDate* date);
Maybe<bool> WriteJSValue(Handle<JSValue> value) WARN_UNUSED_RESULT;
void WriteJSRegExp(JSRegExp* regexp);
+ Maybe<bool> WriteJSMap(Handle<JSMap> map) WARN_UNUSED_RESULT;
+ Maybe<bool> WriteJSSet(Handle<JSSet> map) WARN_UNUSED_RESULT;
/*
* Reads the specified keys from the object and writes key-value pairs to the
@@ -152,6 +156,8 @@ class ValueDeserializer {
MaybeHandle<JSDate> ReadJSDate() WARN_UNUSED_RESULT;
MaybeHandle<JSValue> ReadJSValue(SerializationTag tag) WARN_UNUSED_RESULT;
MaybeHandle<JSRegExp> ReadJSRegExp() WARN_UNUSED_RESULT;
+ MaybeHandle<JSMap> ReadJSMap() WARN_UNUSED_RESULT;
+ MaybeHandle<JSSet> ReadJSSet() 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