| 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 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 | 880 |
| 881 const bool exited_dart_code = thread->HasExitedDartCode(); | 881 const bool exited_dart_code = thread->HasExitedDartCode(); |
| 882 | 882 |
| 883 SampleBuffer* sample_buffer = Profiler::sample_buffer(); | 883 SampleBuffer* sample_buffer = Profiler::sample_buffer(); |
| 884 if (sample_buffer == NULL) { | 884 if (sample_buffer == NULL) { |
| 885 // Profiler not initialized. | 885 // Profiler not initialized. |
| 886 return; | 886 return; |
| 887 } | 887 } |
| 888 | 888 |
| 889 if (FLAG_profile_vm) { | 889 if (FLAG_profile_vm) { |
| 890 uintptr_t sp = Isolate::GetCurrentStackPointer(); | 890 uintptr_t sp = Thread::GetCurrentStackPointer(); |
| 891 uintptr_t fp = 0; | 891 uintptr_t fp = 0; |
| 892 uintptr_t pc = GetProgramCounter(); | 892 uintptr_t pc = GetProgramCounter(); |
| 893 | 893 |
| 894 COPY_FP_REGISTER(fp); | 894 COPY_FP_REGISTER(fp); |
| 895 | 895 |
| 896 uword stack_lower = 0; | 896 uword stack_lower = 0; |
| 897 uword stack_upper = 0; | 897 uword stack_upper = 0; |
| 898 | 898 |
| 899 if (!InitialRegisterCheck(pc, fp, sp)) { | 899 if (!InitialRegisterCheck(pc, fp, sp)) { |
| 900 return; | 900 return; |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1380 | 1380 |
| 1381 | 1381 |
| 1382 ProcessedSampleBuffer::ProcessedSampleBuffer() | 1382 ProcessedSampleBuffer::ProcessedSampleBuffer() |
| 1383 : code_lookup_table_(new CodeLookupTable(Thread::Current())) { | 1383 : code_lookup_table_(new CodeLookupTable(Thread::Current())) { |
| 1384 ASSERT(code_lookup_table_ != NULL); | 1384 ASSERT(code_lookup_table_ != NULL); |
| 1385 } | 1385 } |
| 1386 | 1386 |
| 1387 #endif // !PRODUCT | 1387 #endif // !PRODUCT |
| 1388 | 1388 |
| 1389 } // namespace dart | 1389 } // namespace dart |
| OLD | NEW |