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

Unified Diff: runtime/vm/dart.h

Issue 1938653002: JIT precompilated snapshots. (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/lib/isolate.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 afa2499b7ac1abbc6136d60c7b52168a8c5eccad..a21dab22176180fd6fcd3b650033c86115a7692c 100644
--- a/runtime/vm/dart.h
+++ b/runtime/vm/dart.h
@@ -7,6 +7,7 @@
#include "include/dart_api.h"
#include "vm/allocation.h"
+#include "vm/snapshot.h"
namespace dart {
@@ -60,16 +61,15 @@ class Dart : public AllStatic {
static uword AllocateReadOnlyHandle();
static bool IsReadOnlyHandle(uword address);
+ static Snapshot::Kind snapshot_kind() {
+ return snapshot_kind_;
+ }
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;
- }
-
static const uint8_t* data_snapshot_buffer() {
return data_snapshot_buffer_;
}
@@ -121,6 +121,7 @@ class Dart : public AllStatic {
static ThreadPool* thread_pool_;
static DebugInfo* pprof_symbol_generator_;
static ReadOnlyHandles* predefined_handles_;
+ static Snapshot::Kind snapshot_kind_;
static const uint8_t* instructions_snapshot_buffer_;
static const uint8_t* data_snapshot_buffer_;
static Dart_ThreadExitCallback thread_exit_callback_;
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698