Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index bd29493e904c304350af159c7b7fd81b387ba76c..2b4b954e9d9035e2ae50df79a23c0e00f7eb4301 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -1600,8 +1600,8 @@ Dart_CreateSnapshot(uint8_t** vm_snapshot_data_buffer, |
FullSnapshotWriter writer(Snapshot::kCore, vm_snapshot_data_buffer, |
isolate_snapshot_data_buffer, ApiReallocate, |
- NULL /* vm_instructions_writer */, |
- NULL /* isolate_instructions_writer */); |
+ NULL /* vm_image_writer */, |
+ NULL /* isolate_image_writer */); |
writer.WriteFullSnapshot(); |
if (vm_snapshot_data_buffer != NULL) { |
*vm_snapshot_data_size = writer.VmIsolateSnapshotSize(); |
@@ -6658,16 +6658,16 @@ Dart_CreateAppAOTSnapshotAsAssembly(uint8_t** assembly_buffer, |
NOT_IN_PRODUCT(TimelineDurationScope tds2(T, Timeline::GetIsolateStream(), |
"WriteAppAOTSnapshot")); |
- AssemblyInstructionsWriter instructions_writer(assembly_buffer, ApiReallocate, |
- 2 * MB /* initial_size */); |
+ AssemblyImageWriter image_writer(assembly_buffer, ApiReallocate, |
+ 2 * MB /* initial_size */); |
uint8_t* vm_snapshot_data_buffer = NULL; |
uint8_t* isolate_snapshot_data_buffer = NULL; |
FullSnapshotWriter writer(Snapshot::kAppAOT, &vm_snapshot_data_buffer, |
&isolate_snapshot_data_buffer, ApiReallocate, |
- &instructions_writer, &instructions_writer); |
+ &image_writer, &image_writer); |
writer.WriteFullSnapshot(); |
- *assembly_size = instructions_writer.AssemblySize(); |
+ *assembly_size = image_writer.AssemblySize(); |
return Api::Success(); |
#endif |
@@ -6727,23 +6727,21 @@ Dart_CreateAppAOTSnapshotAsBlobs(uint8_t** vm_snapshot_data_buffer, |
NOT_IN_PRODUCT(TimelineDurationScope tds2(T, Timeline::GetIsolateStream(), |
"WriteAppAOTSnapshot")); |
- BlobInstructionsWriter vm_instructions_writer(vm_snapshot_instructions_buffer, |
- ApiReallocate, |
- 2 * MB /* initial_size */); |
- BlobInstructionsWriter isolate_instructions_writer( |
- isolate_snapshot_instructions_buffer, ApiReallocate, |
- 2 * MB /* initial_size */); |
- FullSnapshotWriter writer( |
- Snapshot::kAppAOT, vm_snapshot_data_buffer, isolate_snapshot_data_buffer, |
- ApiReallocate, &vm_instructions_writer, &isolate_instructions_writer); |
+ BlobImageWriter vm_image_writer(vm_snapshot_instructions_buffer, |
+ ApiReallocate, 2 * MB /* initial_size */); |
+ BlobImageWriter isolate_image_writer(isolate_snapshot_instructions_buffer, |
+ ApiReallocate, |
+ 2 * MB /* initial_size */); |
+ FullSnapshotWriter writer(Snapshot::kAppAOT, vm_snapshot_data_buffer, |
+ isolate_snapshot_data_buffer, ApiReallocate, |
+ &vm_image_writer, &isolate_image_writer); |
writer.WriteFullSnapshot(); |
*vm_snapshot_data_size = writer.VmIsolateSnapshotSize(); |
- *vm_snapshot_instructions_size = |
- vm_instructions_writer.InstructionsBlobSize(); |
+ *vm_snapshot_instructions_size = vm_image_writer.InstructionsBlobSize(); |
*isolate_snapshot_data_size = writer.IsolateSnapshotSize(); |
*isolate_snapshot_instructions_size = |
- isolate_instructions_writer.InstructionsBlobSize(); |
+ isolate_image_writer.InstructionsBlobSize(); |
return Api::Success(); |
#endif |
@@ -6792,17 +6790,17 @@ Dart_CreateAppJITSnapshotAsBlobs(uint8_t** isolate_snapshot_data_buffer, |
NOT_IN_PRODUCT(TimelineDurationScope tds2(T, Timeline::GetIsolateStream(), |
"WriteAppJITSnapshot")); |
- BlobInstructionsWriter isolate_instructions_writer( |
- isolate_snapshot_instructions_buffer, ApiReallocate, |
- 2 * MB /* initial_size */); |
+ BlobImageWriter isolate_image_writer(isolate_snapshot_instructions_buffer, |
+ ApiReallocate, |
+ 2 * MB /* initial_size */); |
FullSnapshotWriter writer(Snapshot::kAppJIT, NULL, |
isolate_snapshot_data_buffer, ApiReallocate, NULL, |
- &isolate_instructions_writer); |
+ &isolate_image_writer); |
writer.WriteFullSnapshot(); |
*isolate_snapshot_data_size = writer.IsolateSnapshotSize(); |
*isolate_snapshot_instructions_size = |
- isolate_instructions_writer.InstructionsBlobSize(); |
+ isolate_image_writer.InstructionsBlobSize(); |
return Api::Success(); |
#endif |