| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "platform/address_sanitizer.h" | 5 #include "platform/address_sanitizer.h" |
| 6 #include "platform/memory_sanitizer.h" | 6 #include "platform/memory_sanitizer.h" |
| 7 #include "platform/utils.h" | 7 #include "platform/utils.h" |
| 8 | 8 |
| 9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
| 10 #include "vm/atomic.h" | 10 #include "vm/atomic.h" |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 ASSERT(os_thread != NULL); | 946 ASSERT(os_thread != NULL); |
| 947 Isolate* isolate = thread->isolate(); | 947 Isolate* isolate = thread->isolate(); |
| 948 if (!CheckIsolate(isolate)) { | 948 if (!CheckIsolate(isolate)) { |
| 949 return; | 949 return; |
| 950 } | 950 } |
| 951 | 951 |
| 952 const bool exited_dart_code = thread->HasExitedDartCode(); | 952 const bool exited_dart_code = thread->HasExitedDartCode(); |
| 953 | 953 |
| 954 OS::Print("Dumping %s stack trace for thread %" Px "\n", | 954 OS::Print("Dumping %s stack trace for thread %" Px "\n", |
| 955 native_stack_trace ? "native" : "dart-only", | 955 native_stack_trace ? "native" : "dart-only", |
| 956 static_cast<uintptr_t>(os_thread->trace_id())); | 956 OSThread::ThreadIdToIntPtr(os_thread->trace_id())); |
| 957 | 957 |
| 958 uintptr_t sp = Thread::GetCurrentStackPointer(); | 958 uintptr_t sp = Thread::GetCurrentStackPointer(); |
| 959 uintptr_t fp = 0; | 959 uintptr_t fp = 0; |
| 960 uintptr_t pc = GetProgramCounter(); | 960 uintptr_t pc = GetProgramCounter(); |
| 961 | 961 |
| 962 COPY_FP_REGISTER(fp); | 962 COPY_FP_REGISTER(fp); |
| 963 | 963 |
| 964 uword stack_lower = 0; | 964 uword stack_lower = 0; |
| 965 uword stack_upper = 0; | 965 uword stack_upper = 0; |
| 966 | 966 |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1563 | 1563 |
| 1564 | 1564 |
| 1565 ProcessedSampleBuffer::ProcessedSampleBuffer() | 1565 ProcessedSampleBuffer::ProcessedSampleBuffer() |
| 1566 : code_lookup_table_(new CodeLookupTable(Thread::Current())) { | 1566 : code_lookup_table_(new CodeLookupTable(Thread::Current())) { |
| 1567 ASSERT(code_lookup_table_ != NULL); | 1567 ASSERT(code_lookup_table_ != NULL); |
| 1568 } | 1568 } |
| 1569 | 1569 |
| 1570 #endif // !PRODUCT | 1570 #endif // !PRODUCT |
| 1571 | 1571 |
| 1572 } // namespace dart | 1572 } // namespace dart |
| OLD | NEW |