Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: runtime/vm/profiler.cc

Issue 2858623002: Remove MIPS support (Closed)
Patch Set: Merge and cleanup Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698