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

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

Issue 1913953002: Fix Mac build (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | 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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698