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 6078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6089 ASSERT(stream != NULL); | 6089 ASSERT(stream != NULL); |
6090 TimelineEvent* event = stream->StartEvent(); | 6090 TimelineEvent* event = stream->StartEvent(); |
6091 if (event != NULL) { | 6091 if (event != NULL) { |
6092 event->AsyncEnd(label, async_id); | 6092 event->AsyncEnd(label, async_id); |
6093 event->Complete(); | 6093 event->Complete(); |
6094 } | 6094 } |
6095 return Api::Success(); | 6095 return Api::Success(); |
6096 } | 6096 } |
6097 | 6097 |
6098 | 6098 |
6099 // The precompiler is included in dart_no_snapshot and dart_noopt, and | 6099 // The precompiler is included in dart_bootstrap and dart_noopt, and |
6100 // excluded from dart and dart_precompiled_runtime. | 6100 // excluded from dart and dart_precompiled_runtime. |
6101 #if !defined(DART_PRECOMPILER) | 6101 #if !defined(DART_PRECOMPILER) |
6102 | 6102 |
6103 DART_EXPORT Dart_Handle Dart_Precompile( | 6103 DART_EXPORT Dart_Handle Dart_Precompile( |
6104 Dart_QualifiedFunctionName entry_points[], | 6104 Dart_QualifiedFunctionName entry_points[], |
6105 bool reset_fields) { | 6105 bool reset_fields) { |
6106 UNREACHABLE(); | 6106 UNREACHABLE(); |
6107 return 0; | 6107 return 0; |
6108 } | 6108 } |
6109 | 6109 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6194 return Api::Success(); | 6194 return Api::Success(); |
6195 } | 6195 } |
6196 #endif // DART_PRECOMPILER | 6196 #endif // DART_PRECOMPILER |
6197 | 6197 |
6198 | 6198 |
6199 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { | 6199 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { |
6200 return Dart::IsRunningPrecompiledCode(); | 6200 return Dart::IsRunningPrecompiledCode(); |
6201 } | 6201 } |
6202 | 6202 |
6203 } // namespace dart | 6203 } // namespace dart |
OLD | NEW |