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

Unified Diff: src/value-serializer.h

Issue 2262013002: Blink-compatible serialization of RegExp objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@vs-value
Patch Set: Merge branch 'vs-value' into vs-regexp 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 85341537885f8d50547337fb0213aa0d121764ec..ab9c66489963569e8d53f5fcca31b013bdf59561 100644
--- a/src/value-serializer.h
+++ b/src/value-serializer.h
@@ -21,6 +21,7 @@ namespace internal {
class HeapNumber;
class Isolate;
class JSDate;
+class JSRegExp;
class JSValue;
class Object;
class Oddball;
@@ -77,6 +78,7 @@ class ValueSerializer {
Maybe<bool> WriteJSArray(Handle<JSArray> array) WARN_UNUSED_RESULT;
void WriteJSDate(JSDate* date);
Maybe<bool> WriteJSValue(Handle<JSValue> value) WARN_UNUSED_RESULT;
+ void WriteJSRegExp(JSRegExp* regexp);
/*
* Reads the specified keys from the object and writes key-value pairs to the
@@ -149,6 +151,7 @@ class ValueDeserializer {
MaybeHandle<JSArray> ReadDenseJSArray() WARN_UNUSED_RESULT;
MaybeHandle<JSDate> ReadJSDate() WARN_UNUSED_RESULT;
MaybeHandle<JSValue> ReadJSValue(SerializationTag tag) WARN_UNUSED_RESULT;
+ MaybeHandle<JSRegExp> ReadJSRegExp() 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