Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index 754fe080db522e86e1425313a9a4dafceec80e1c..78363deb6d8eeb9af1cd0c811663678161b8f56e 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -6686,7 +6686,6 @@ Dart_CreateAppAOTSnapshotAsAssembly(uint8_t** assembly_buffer, |
&image_writer, &image_writer); |
writer.WriteFullSnapshot(); |
- image_writer.Finalize(); |
*assembly_size = image_writer.AssemblySize(); |
return Api::Success(); |
@@ -6711,11 +6710,6 @@ Dart_CreateAppAOTSnapshotAsBlobs(uint8_t** vm_snapshot_data_buffer, |
return Api::NewError( |
"This VM was built without support for AOT compilation."); |
#else |
- if (FLAG_dwarf_stack_traces) { |
- return Api::NewError( |
- "--dwarf_stack_traces requires creating an AOT snapshot as assembly."); |
- } |
- |
API_TIMELINE_DURATION; |
DARTSCOPE(Thread::Current()); |
Isolate* I = T->isolate(); |