OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/exceptions.h" | 5 #include "vm/exceptions.h" |
6 | 6 |
7 #include "platform/address_sanitizer.h" | 7 #include "platform/address_sanitizer.h" |
8 | 8 |
9 #include "vm/dart_api_impl.h" | 9 #include "vm/dart_api_impl.h" |
10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 if (use_preallocated_stacktrace) { | 323 if (use_preallocated_stacktrace) { |
324 stacktrace ^= isolate->object_store()->preallocated_stack_trace(); | 324 stacktrace ^= isolate->object_store()->preallocated_stack_trace(); |
325 PreallocatedStacktraceBuilder frame_builder(stacktrace); | 325 PreallocatedStacktraceBuilder frame_builder(stacktrace); |
326 handler_exists = FindExceptionHandler(thread, | 326 handler_exists = FindExceptionHandler(thread, |
327 &handler_pc, | 327 &handler_pc, |
328 &handler_sp, | 328 &handler_sp, |
329 &handler_fp, | 329 &handler_fp, |
330 &handler_needs_stacktrace); | 330 &handler_needs_stacktrace); |
331 if (handler_pc == 0) { | 331 if (handler_pc == 0) { |
332 // No Dart frame. | 332 // No Dart frame. |
333 ASSERT(!thread->IsMutatorThread()); | |
334 ASSERT(incoming_exception.raw() == | 333 ASSERT(incoming_exception.raw() == |
335 isolate->object_store()->out_of_memory()); | 334 isolate->object_store()->out_of_memory()); |
336 const UnhandledException& error = UnhandledException::Handle( | 335 const UnhandledException& error = UnhandledException::Handle( |
337 zone, isolate->object_store()->preallocated_unhandled_exception()); | 336 zone, isolate->object_store()->preallocated_unhandled_exception()); |
338 thread->long_jump_base()->Jump(1, error); | 337 thread->long_jump_base()->Jump(1, error); |
339 UNREACHABLE(); | 338 UNREACHABLE(); |
340 } | 339 } |
341 if (handler_needs_stacktrace) { | 340 if (handler_needs_stacktrace) { |
342 BuildStackTrace(&frame_builder); | 341 BuildStackTrace(&frame_builder); |
343 } | 342 } |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 } | 738 } |
740 | 739 |
741 return DartLibraryCalls::InstanceCreate(library, | 740 return DartLibraryCalls::InstanceCreate(library, |
742 *class_name, | 741 *class_name, |
743 *constructor_name, | 742 *constructor_name, |
744 arguments); | 743 arguments); |
745 } | 744 } |
746 | 745 |
747 | 746 |
748 } // namespace dart | 747 } // namespace dart |
OLD | NEW |