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

Unified Diff: runtime/vm/snapshot.h

Issue 1975423002: Check snapshots for feature compatibility. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.h
diff --git a/runtime/vm/snapshot.h b/runtime/vm/snapshot.h
index c0c65e5d34bd14f3579ab2429fc89161831ea902..3bd438e3473b3bac27ebae5c8ec7073474450729 100644
--- a/runtime/vm/snapshot.h
+++ b/runtime/vm/snapshot.h
@@ -436,7 +436,7 @@ class SnapshotReader : public BaseReader {
RawObject* ReadScriptSnapshot();
// Read version number of snapshot and verify.
- RawApiError* VerifyVersion();
+ RawApiError* VerifyVersionAndFeatures();
// Helper functions for creating uninitialized versions
// of various object types. These are used when reading a
@@ -1014,7 +1014,7 @@ class SnapshotWriter : public BaseWriter {
void ThrowException(Exceptions::ExceptionType type, const char* msg);
// Write a version string for the snapshot.
- void WriteVersion();
+ void WriteVersionAndFeatures();
int32_t GetInstructionsId(RawInstructions* instructions, RawCode* code) {
return instructions_writer_->GetOffsetFor(instructions, code);
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698