| 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 "lib/stacktrace.h" | 10 #include "lib/stacktrace.h" |
| (...skipping 6016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6027 ASSERT(stream != NULL); | 6027 ASSERT(stream != NULL); |
| 6028 TimelineEvent* event = stream->StartEvent(); | 6028 TimelineEvent* event = stream->StartEvent(); |
| 6029 if (event != NULL) { | 6029 if (event != NULL) { |
| 6030 event->AsyncEnd(label, async_id); | 6030 event->AsyncEnd(label, async_id); |
| 6031 event->Complete(); | 6031 event->Complete(); |
| 6032 } | 6032 } |
| 6033 return Api::Success(); | 6033 return Api::Success(); |
| 6034 } | 6034 } |
| 6035 | 6035 |
| 6036 | 6036 |
| 6037 // The precompiler is included in dart_no_snapshot and dart_noopt, and |
| 6038 // excluded from dart and dart_precompiled_runtime. |
| 6037 #if !defined(DART_PRECOMPILER) | 6039 #if !defined(DART_PRECOMPILER) |
| 6038 | 6040 |
| 6039 DART_EXPORT Dart_Handle Dart_Precompile( | 6041 DART_EXPORT Dart_Handle Dart_Precompile( |
| 6040 Dart_QualifiedFunctionName entry_points[], | 6042 Dart_QualifiedFunctionName entry_points[], |
| 6041 bool reset_fields) { | 6043 bool reset_fields) { |
| 6042 UNREACHABLE(); | 6044 UNREACHABLE(); |
| 6043 return 0; | 6045 return 0; |
| 6044 } | 6046 } |
| 6045 | 6047 |
| 6046 | 6048 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6130 return Api::Success(); | 6132 return Api::Success(); |
| 6131 } | 6133 } |
| 6132 #endif // DART_PRECOMPILER | 6134 #endif // DART_PRECOMPILER |
| 6133 | 6135 |
| 6134 | 6136 |
| 6135 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { | 6137 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { |
| 6136 return Dart::IsRunningPrecompiledCode(); | 6138 return Dart::IsRunningPrecompiledCode(); |
| 6137 } | 6139 } |
| 6138 | 6140 |
| 6139 } // namespace dart | 6141 } // namespace dart |
| OLD | NEW |