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

Unified Diff: runtime/vm/snapshot_test.cc

Issue 1918313003: Split Snapshot::kFull into kCore, kAppWithJIT, and kAppNoJIT. Remove snapshot_code flag. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync 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
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot_test.cc
diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc
index bf15a61574aa59ddf1d4be3ddba3f00c562b9810..ef7a10cfcc4ba283caffac486b9d9600604f0408 100644
--- a/runtime/vm/snapshot_test.cc
+++ b/runtime/vm/snapshot_test.cc
@@ -828,15 +828,14 @@ class TestSnapshotWriter : public SnapshotWriter {
public:
static const intptr_t kInitialSize = 64 * KB;
TestSnapshotWriter(uint8_t** buffer, ReAlloc alloc)
- : SnapshotWriter(Snapshot::kScript,
- Thread::Current(),
+ : SnapshotWriter(Thread::Current(),
+ Snapshot::kScript,
buffer,
alloc,
kInitialSize,
&forward_list_,
NULL, /* test_writer */
true, /* can_send_any_object */
- false, /* snapshot_code */
true /* vm_isolate_is_symbolic */),
forward_list_(thread(), kMaxPredefinedObjectIds) {
ASSERT(buffer != NULL);
@@ -1184,11 +1183,11 @@ UNIT_TEST_CASE(FullSnapshot) {
// Write snapshot with object content.
{
- FullSnapshotWriter writer(NULL,
+ FullSnapshotWriter writer(Snapshot::kCore,
+ NULL,
&isolate_snapshot_buffer,
&malloc_allocator,
NULL, /* instructions_writer */
- false, /* snapshot_code */
true);
writer.WriteFullSnapshot();
}
@@ -1245,11 +1244,11 @@ UNIT_TEST_CASE(FullSnapshot1) {
// Write snapshot with object content.
{
- FullSnapshotWriter writer(NULL,
+ FullSnapshotWriter writer(Snapshot::kCore,
+ NULL,
&isolate_snapshot_buffer,
&malloc_allocator,
NULL, /* instructions_writer */
- false, /* snapshot_code */
true /* vm_isolate_is_symbolic */);
writer.WriteFullSnapshot();
}
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698