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

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, 8 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
Index: runtime/vm/snapshot.h
diff --git a/runtime/vm/snapshot.h b/runtime/vm/snapshot.h
index 3dc6aaeb1ac90b7da43fe23b70dba1c88943ad43..f0c1fc67fb097a93ccb0f9807c5d084482023292 100644
--- a/runtime/vm/snapshot.h
+++ b/runtime/vm/snapshot.h
@@ -161,6 +161,7 @@ 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
};
static const int kHeaderSize = 2 * sizeof(int64_t);
@@ -919,7 +920,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 +1181,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;

Powered by Google App Engine
This is Rietveld 408576698