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

Unified Diff: runtime/vm/dart.h

Issue 1584443002: VM: Precompiled rodata snapshot. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: added read-only page type Created 4 years, 10 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
Index: runtime/vm/dart.h
diff --git a/runtime/vm/dart.h b/runtime/vm/dart.h
index 412eef2c8625d653c429efc589d7b476b115bf08..5fdfcada4a44974f7fa13398980429e71fe5123f 100644
--- a/runtime/vm/dart.h
+++ b/runtime/vm/dart.h
@@ -23,6 +23,7 @@ class Dart : public AllStatic {
static const char* InitOnce(
const uint8_t* vm_isolate_snapshot,
const uint8_t* instructions_snapshot,
+ const uint8_t* data_snapshot,
Dart_IsolateCreateCallback create,
Dart_IsolateShutdownCallback shutdown,
Dart_FileOpenCallback file_open,
@@ -64,6 +65,13 @@ class Dart : public AllStatic {
return instructions_snapshot_buffer_ != NULL;
}
+ static const uint8_t* data_snapshot_buffer() {
+ return data_snapshot_buffer_;
+ }
+ static void set_data_snapshot_buffer(const uint8_t* buffer) {
+ data_snapshot_buffer_ = buffer;
+ }
+
private:
static void WaitForIsolateShutdown();
@@ -72,6 +80,7 @@ class Dart : public AllStatic {
static DebugInfo* pprof_symbol_generator_;
static ReadOnlyHandles* predefined_handles_;
static const uint8_t* instructions_snapshot_buffer_;
+ static const uint8_t* data_snapshot_buffer_;
};
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698