Chromium Code Reviews| 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 "include/dart_api.h" | 5 #include "include/dart_api.h" |
| 6 #include "include/dart_mirrors_api.h" | 6 #include "include/dart_mirrors_api.h" |
| 7 #include "include/dart_native_api.h" | 7 #include "include/dart_native_api.h" |
| 8 | 8 |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "vm/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 | 70 |
| 71 | 71 |
| 72 const char* CanonicalFunction(const char* func) { | 72 const char* CanonicalFunction(const char* func) { |
| 73 if (strncmp(func, "dart::", 6) == 0) { | 73 if (strncmp(func, "dart::", 6) == 0) { |
| 74 return func + 6; | 74 return func + 6; |
| 75 } else { | 75 } else { |
| 76 return func; | 76 return func; |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 | 79 |
| 80 #if 0 | 80 #if 1 |
|
Florian Schneider
2016/01/15 15:48:26
Remove the #if statement?
Cutch
2016/01/15 17:35:49
Done.
| |
| 81 #define API_TIMELINE_DURATION \ | 81 #define API_TIMELINE_DURATION \ |
| 82 TimelineDurationScope tds(Thread::Current(), \ | 82 TimelineDurationScope tds(Thread::Current(), \ |
| 83 Timeline::GetVMApiStream(), \ | 83 Timeline::GetVMApiStream(), \ |
| 84 CURRENT_FUNC) | 84 CURRENT_FUNC) |
| 85 | 85 |
| 86 #define API_TIMELINE_BEGIN_END \ | 86 #define API_TIMELINE_BEGIN_END \ |
| 87 TimelineBeginEndScope tbes(Thread::Current(), \ | 87 TimelineBeginEndScope tbes(Thread::Current(), \ |
| 88 Timeline::GetVMApiStream(), \ | 88 Timeline::GetVMApiStream(), \ |
| 89 CURRENT_FUNC) | 89 CURRENT_FUNC) |
| 90 #else | 90 #else |
| (...skipping 5887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5978 return Api::Success(); | 5978 return Api::Success(); |
| 5979 } | 5979 } |
| 5980 #endif // DART_PRECOMPILED | 5980 #endif // DART_PRECOMPILED |
| 5981 | 5981 |
| 5982 | 5982 |
| 5983 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { | 5983 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { |
| 5984 return Dart::IsRunningPrecompiledCode(); | 5984 return Dart::IsRunningPrecompiledCode(); |
| 5985 } | 5985 } |
| 5986 | 5986 |
| 5987 } // namespace dart | 5987 } // namespace dart |
| OLD | NEW |