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

Unified Diff: runtime/vm/dart.h

Issue 2909403002: When deduplicating program metadata, try to use objects from the VM isolate. (Closed)
Patch Set: sync Created 3 years, 3 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/clustered_snapshot.cc ('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 f99605b983344ba1dda9f21cebe750e88df95387..03f05cb8d214ea5e494bf5734cba32a38350a988 100644
--- a/runtime/vm/dart.h
+++ b/runtime/vm/dart.h
@@ -76,6 +76,12 @@ class Dart : public AllStatic {
static const char* FeaturesString(Isolate* isolate, Snapshot::Kind kind);
static Snapshot::Kind vm_snapshot_kind() { return vm_snapshot_kind_; }
+ static const uint8_t* vm_snapshot_instructions() {
+ return vm_snapshot_instructions_;
+ }
+ static void set_vm_snapshot_instructions(const uint8_t* buffer) {
+ vm_snapshot_instructions_ = buffer;
+ }
static Dart_ThreadExitCallback thread_exit_callback() {
return thread_exit_callback_;
@@ -123,6 +129,7 @@ class Dart : public AllStatic {
static DebugInfo* pprof_symbol_generator_;
static ReadOnlyHandles* predefined_handles_;
static Snapshot::Kind vm_snapshot_kind_;
+ static const uint8_t* vm_snapshot_instructions_;
static Dart_ThreadExitCallback thread_exit_callback_;
static Dart_FileOpenCallback file_open_callback_;
static Dart_FileReadCallback file_read_callback_;
« no previous file with comments | « runtime/vm/clustered_snapshot.cc ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698