mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
Fuchsia: Fixes for Debug build
R=johnmccutchan@google.com Review URL: https://codereview.chromium.org/2154713004 .
This commit is contained in:
parent
7af8d6e5a4
commit
cf5eca5416
3 changed files with 20 additions and 4 deletions
|
@ -12,6 +12,12 @@
|
|||
#define USING_DBC false
|
||||
#endif
|
||||
|
||||
#if defined(TARGET_OS_FUCHSIA)
|
||||
#define USING_FUCHSIA true
|
||||
#else
|
||||
#define USING_FUCHSIA false
|
||||
#endif
|
||||
|
||||
// Don't use USING_MULTICORE outside of this file.
|
||||
#if defined(ARCH_IS_MULTI_CORE)
|
||||
#define USING_MULTICORE true
|
||||
|
@ -136,7 +142,7 @@ C(print_stop_message, false, false, bool, false, \
|
|||
"Print stop message.") \
|
||||
D(print_variable_descriptors, bool, false, \
|
||||
"Print variable descriptors in disassembly.") \
|
||||
R(profiler, false, bool, !USING_DBC, \
|
||||
R(profiler, false, bool, !USING_DBC && !USING_FUCHSIA, \
|
||||
"Enable the profiler.") \
|
||||
P(reorder_basic_blocks, bool, true, \
|
||||
"Reorder basic blocks") \
|
||||
|
|
|
@ -15,6 +15,13 @@
|
|||
|
||||
namespace dart {
|
||||
|
||||
#ifndef PRODUCT
|
||||
|
||||
DEFINE_FLAG(bool, generate_perf_events_symbols, false,
|
||||
"Generate events symbols for profiling with perf");
|
||||
|
||||
#endif // !PRODUCT
|
||||
|
||||
const char* OS::Name() {
|
||||
return "fuchsia";
|
||||
}
|
||||
|
@ -239,7 +246,11 @@ bool OS::StringToInt64(const char* str, int64_t* value) {
|
|||
|
||||
|
||||
void OS::RegisterCodeObservers() {
|
||||
UNIMPLEMENTED();
|
||||
#ifndef PRODUCT
|
||||
if (FLAG_generate_perf_events_symbols) {
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
#endif // !PRODUCT
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -169,8 +169,7 @@ ThreadId OSThread::GetCurrentThreadId() {
|
|||
|
||||
#ifndef PRODUCT
|
||||
ThreadId OSThread::GetCurrentThreadTraceId() {
|
||||
UNIMPLEMENTED();
|
||||
return 0;
|
||||
return pthread_self();
|
||||
}
|
||||
#endif // PRODUCT
|
||||
|
||||
|
|
Loading…
Reference in a new issue