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

Unified Diff: src/value-serializer.h

Issue 2255973005: Blink-compatible serialization of dates. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: forgot the decode tests 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 8de7d56920cd9e1607a4af196e2893cb45abfcf4..c3a57ee8cd2b148182bdf1448b5b6ad9a226d08b 100644
--- a/src/value-serializer.h
+++ b/src/value-serializer.h
@@ -20,6 +20,7 @@ namespace internal {
class HeapNumber;
class Isolate;
+class JSDate;
class Object;
class Oddball;
class Smi;
@@ -73,6 +74,7 @@ class ValueSerializer {
Maybe<bool> WriteJSReceiver(Handle<JSReceiver> receiver) WARN_UNUSED_RESULT;
Maybe<bool> WriteJSObject(Handle<JSObject> object) WARN_UNUSED_RESULT;
Maybe<bool> WriteJSArray(Handle<JSArray> array) WARN_UNUSED_RESULT;
+ void WriteJSDate(JSDate* date);
/*
* Reads the specified keys from the object and writes key-value pairs to the
@@ -143,6 +145,7 @@ class ValueDeserializer {
MaybeHandle<JSObject> ReadJSObject() WARN_UNUSED_RESULT;
MaybeHandle<JSArray> ReadSparseJSArray() WARN_UNUSED_RESULT;
MaybeHandle<JSArray> ReadDenseJSArray() WARN_UNUSED_RESULT;
+ MaybeHandle<JSDate> ReadJSDate() 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