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

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: compute string hash if necessary 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
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.h
diff --git a/runtime/vm/dart.h b/runtime/vm/dart.h
index 45922965be6479ce947c6cb9b0246b3089ce100c..aa43e122b622bc0812cdc51d80f8e8e84381ed5e 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,
@@ -68,6 +69,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();
@@ -77,6 +85,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
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698