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

Unified Diff: src/value-serializer.cc

Issue 2772723005: Export the current data format version used by ValueSerializer. (Closed)
Patch Set: . Created 3 years, 9 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 | « src/value-serializer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/value-serializer.cc
diff --git a/src/value-serializer.cc b/src/value-serializer.cc
index acedb4be329fcdf570785051993adbe95b7bef46..b26eed933cb955a2e98e0edaaba17b968ac09d49 100644
--- a/src/value-serializer.cc
+++ b/src/value-serializer.cc
@@ -154,6 +154,11 @@ enum class WasmEncodingTag : uint8_t {
} // namespace
+// static
+uint32_t ValueSerializer::GetCurrentDataFormatVersion() {
+ return kLatestVersion;
+}
+
ValueSerializer::ValueSerializer(Isolate* isolate,
v8::ValueSerializer::Delegate* delegate)
: isolate_(isolate),
« no previous file with comments | « src/value-serializer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698