Index: runtime/bin/gen_snapshot.cc |
diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc |
index 669e8e2cb347c00bd43971f1e7fc2445a23c649b..3ebc8fb986e70c8367b667b34bb975285007db68 100644 |
--- a/runtime/bin/gen_snapshot.cc |
+++ b/runtime/bin/gen_snapshot.cc |
@@ -1063,8 +1063,8 @@ static void CreateAndWritePrecompiledSnapshot( |
if (as_assembly) { |
uint8_t* assembly_buffer = NULL; |
intptr_t assembly_size = 0; |
- result = Dart_CreatePrecompiledSnapshotAssembly(&assembly_buffer, |
- &assembly_size); |
+ result = |
+ Dart_CreateAppAOTSnapshotAsAssembly(&assembly_buffer, &assembly_size); |
CHECK_RESULT(result); |
WriteSnapshotFile(assembly_filename, assembly_buffer, assembly_size); |
} else { |
@@ -1076,7 +1076,7 @@ static void CreateAndWritePrecompiledSnapshot( |
intptr_t instructions_blob_size = 0; |
uint8_t* rodata_blob_buffer = NULL; |
intptr_t rodata_blob_size = 0; |
- result = Dart_CreatePrecompiledSnapshotBlob( |
+ result = Dart_CreateAppAOTSnapshotAsBlobs( |
&vm_isolate_buffer, &vm_isolate_size, &isolate_buffer, &isolate_size, |
&instructions_blob_buffer, &instructions_blob_size, &rodata_blob_buffer, |
&rodata_blob_size); |