| 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 14 matching lines...) Expand all Loading... |
| 25 #include "vm/stack_frame.h" | 25 #include "vm/stack_frame.h" |
| 26 | 26 |
| 27 namespace dart { | 27 namespace dart { |
| 28 | 28 |
| 29 static const intptr_t kSampleSize = 8; | 29 static const intptr_t kSampleSize = 8; |
| 30 static const intptr_t kMaxSamplesPerTick = 4; | 30 static const intptr_t kMaxSamplesPerTick = 4; |
| 31 | 31 |
| 32 DEFINE_FLAG(bool, trace_profiled_isolates, false, "Trace profiled isolates."); | 32 DEFINE_FLAG(bool, trace_profiled_isolates, false, "Trace profiled isolates."); |
| 33 | 33 |
| 34 #if defined(HOST_OS_ANDROID) || defined(TARGET_ARCH_ARM64) || \ | 34 #if defined(HOST_OS_ANDROID) || defined(TARGET_ARCH_ARM64) || \ |
| 35 defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS) | 35 defined(TARGET_ARCH_ARM) |
| 36 DEFINE_FLAG(int, | 36 DEFINE_FLAG(int, |
| 37 profile_period, | 37 profile_period, |
| 38 10000, | 38 10000, |
| 39 "Time between profiler samples in microseconds. Minimum 50."); | 39 "Time between profiler samples in microseconds. Minimum 50."); |
| 40 #else | 40 #else |
| 41 DEFINE_FLAG(int, | 41 DEFINE_FLAG(int, |
| 42 profile_period, | 42 profile_period, |
| 43 1000, | 43 1000, |
| 44 "Time between profiler samples in microseconds. Minimum 50."); | 44 "Time between profiler samples in microseconds. Minimum 50."); |
| 45 #endif | 45 #endif |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 #elif defined(TARGET_ARCH_ARM) | 281 #elif defined(TARGET_ARCH_ARM) |
| 282 bool ReturnAddressLocator::LocateReturnAddress(uword* return_address) { | 282 bool ReturnAddressLocator::LocateReturnAddress(uword* return_address) { |
| 283 ASSERT(return_address != NULL); | 283 ASSERT(return_address != NULL); |
| 284 return false; | 284 return false; |
| 285 } | 285 } |
| 286 #elif defined(TARGET_ARCH_ARM64) | 286 #elif defined(TARGET_ARCH_ARM64) |
| 287 bool ReturnAddressLocator::LocateReturnAddress(uword* return_address) { | 287 bool ReturnAddressLocator::LocateReturnAddress(uword* return_address) { |
| 288 ASSERT(return_address != NULL); | 288 ASSERT(return_address != NULL); |
| 289 return false; | 289 return false; |
| 290 } | 290 } |
| 291 #elif defined(TARGET_ARCH_MIPS) | |
| 292 bool ReturnAddressLocator::LocateReturnAddress(uword* return_address) { | |
| 293 ASSERT(return_address != NULL); | |
| 294 return false; | |
| 295 } | |
| 296 #elif defined(TARGET_ARCH_DBC) | 291 #elif defined(TARGET_ARCH_DBC) |
| 297 bool ReturnAddressLocator::LocateReturnAddress(uword* return_address) { | 292 bool ReturnAddressLocator::LocateReturnAddress(uword* return_address) { |
| 298 ASSERT(return_address != NULL); | 293 ASSERT(return_address != NULL); |
| 299 return false; | 294 return false; |
| 300 } | 295 } |
| 301 #else | 296 #else |
| 302 #error ReturnAddressLocator implementation missing for this architecture. | 297 #error ReturnAddressLocator implementation missing for this architecture. |
| 303 #endif | 298 #endif |
| 304 | 299 |
| 305 | 300 |
| (...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 | 1608 |
| 1614 | 1609 |
| 1615 ProcessedSampleBuffer::ProcessedSampleBuffer() | 1610 ProcessedSampleBuffer::ProcessedSampleBuffer() |
| 1616 : code_lookup_table_(new CodeLookupTable(Thread::Current())) { | 1611 : code_lookup_table_(new CodeLookupTable(Thread::Current())) { |
| 1617 ASSERT(code_lookup_table_ != NULL); | 1612 ASSERT(code_lookup_table_ != NULL); |
| 1618 } | 1613 } |
| 1619 | 1614 |
| 1620 #endif // !PRODUCT | 1615 #endif // !PRODUCT |
| 1621 | 1616 |
| 1622 } // namespace dart | 1617 } // namespace dart |
| OLD | NEW |