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

Unified Diff: runtime/vm/snapshot.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/vm/service_isolate.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.h
diff --git a/runtime/vm/snapshot.h b/runtime/vm/snapshot.h
index 3dc6aaeb1ac90b7da43fe23b70dba1c88943ad43..8b540f38bebfdd3727e1dd76c2b2c0535d2143f1 100644
--- a/runtime/vm/snapshot.h
+++ b/runtime/vm/snapshot.h
@@ -161,6 +161,8 @@ class Snapshot {
// not compile in the future.
kScript, // A partial snapshot of only the application script.
kMessage, // A partial snapshot used only for isolate messaging.
+ kNone, // dart_bootstrap/gen_snapshot
+ kInvalid
};
static const int kHeaderSize = 2 * sizeof(int64_t);
@@ -919,7 +921,8 @@ class AssemblyInstructionsWriter : public InstructionsWriter {
ReAlloc alloc,
intptr_t initial_size)
: InstructionsWriter(),
- assembly_stream_(assembly_buffer, alloc, initial_size) {
+ assembly_stream_(assembly_buffer, alloc, initial_size),
+ binary_size_(0) {
}
virtual void Write();
@@ -1179,16 +1182,6 @@ class FullSnapshotWriter {
};
-class PrecompiledSnapshotWriter : public FullSnapshotWriter {
- public:
- PrecompiledSnapshotWriter(uint8_t** vm_isolate_snapshot_buffer,
- uint8_t** isolate_snapshot_buffer,
- ReAlloc alloc,
- InstructionsWriter* instructions_writer);
- ~PrecompiledSnapshotWriter();
-};
-
-
class ScriptSnapshotWriter : public SnapshotWriter {
public:
static const intptr_t kInitialSize = 64 * KB;
« no previous file with comments | « runtime/vm/service_isolate.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698