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

Unified Diff: runtime/vm/dart.h

Issue 1336763002: Last snapshot bits to get working precompiled hello_world on x64. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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/bin/main.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 c0203cc4040b0c0cfcb1541fb7fbbfeb7ae92c00..5ae05507c71ef9613cd8347455989ffcb590439d 100644
--- a/runtime/vm/dart.h
+++ b/runtime/vm/dart.h
@@ -54,6 +54,16 @@ class Dart : public AllStatic {
static uword AllocateReadOnlyHandle();
static bool IsReadOnlyHandle(uword address);
+ static const uint8_t* instructions_snapshot_buffer() {
+ return instructions_snapshot_buffer_;
+ }
+ static void set_instructions_snapshot_buffer(const uint8_t* buffer) {
+ instructions_snapshot_buffer_ = buffer;
+ }
+ static bool IsRunningPrecompiledCode() {
+ return instructions_snapshot_buffer_ != NULL;
+ }
+
private:
static void WaitForIsolateShutdown();
@@ -61,6 +71,7 @@ class Dart : public AllStatic {
static ThreadPool* thread_pool_;
static DebugInfo* pprof_symbol_generator_;
static ReadOnlyHandles* predefined_handles_;
+ static const uint8_t* instructions_snapshot_buffer_;
};
} // namespace dart
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698