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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 231 |
232 // Call a stub to set up the exception object in kExceptionObjectReg, | 232 // Call a stub to set up the exception object in kExceptionObjectReg, |
233 // to set up the stacktrace object in kStackTraceObjectReg, and to | 233 // to set up the stacktrace object in kStackTraceObjectReg, and to |
234 // continue execution at the given pc in the given frame. | 234 // continue execution at the given pc in the given frame. |
235 typedef void (*ExcpHandler)(uword, uword, uword, RawObject*, RawObject*, | 235 typedef void (*ExcpHandler)(uword, uword, uword, RawObject*, RawObject*, |
236 Thread*); | 236 Thread*); |
237 ExcpHandler func = reinterpret_cast<ExcpHandler>( | 237 ExcpHandler func = reinterpret_cast<ExcpHandler>( |
238 StubCode::JumpToExceptionHandler_entry()->EntryPoint()); | 238 StubCode::JumpToExceptionHandler_entry()->EntryPoint()); |
239 | 239 |
240 // Unpoison the stack before we tear it down in the generated stub code. | 240 // Unpoison the stack before we tear it down in the generated stub code. |
241 uword current_sp = Isolate::GetCurrentStackPointer() - 1024; | 241 uword current_sp = Thread::GetCurrentStackPointer() - 1024; |
242 ASAN_UNPOISON(reinterpret_cast<void*>(current_sp), | 242 ASAN_UNPOISON(reinterpret_cast<void*>(current_sp), |
243 stack_pointer - current_sp); | 243 stack_pointer - current_sp); |
244 | 244 |
245 func(program_counter, stack_pointer, frame_pointer, | 245 func(program_counter, stack_pointer, frame_pointer, |
246 raw_exception, raw_stacktrace, thread); | 246 raw_exception, raw_stacktrace, thread); |
247 #endif | 247 #endif |
248 UNREACHABLE(); | 248 UNREACHABLE(); |
249 } | 249 } |
250 | 250 |
251 | 251 |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 } | 699 } |
700 | 700 |
701 return DartLibraryCalls::InstanceCreate(library, | 701 return DartLibraryCalls::InstanceCreate(library, |
702 *class_name, | 702 *class_name, |
703 *constructor_name, | 703 *constructor_name, |
704 arguments); | 704 arguments); |
705 } | 705 } |
706 | 706 |
707 | 707 |
708 } // namespace dart | 708 } // namespace dart |
OLD | NEW |