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

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

Issue 1663163003: Initial split of precompilation code from compiler.cc (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
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 "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 5901 matching lines...) Expand 10 before | Expand all | Expand 10 after
5912 ASSERT(stream != NULL); 5912 ASSERT(stream != NULL);
5913 TimelineEvent* event = stream->StartEvent(); 5913 TimelineEvent* event = stream->StartEvent();
5914 if (event != NULL) { 5914 if (event != NULL) {
5915 event->AsyncEnd(label, async_id); 5915 event->AsyncEnd(label, async_id);
5916 event->Complete(); 5916 event->Complete();
5917 } 5917 }
5918 return Api::Success(); 5918 return Api::Success();
5919 } 5919 }
5920 5920
5921 5921
5922 // The precompiler is included in dart_no_snapshot and dart_noopt, and
5923 // excluded from dart and dart_precompiled_runtime.
5922 #if !defined(DART_PRECOMPILER) 5924 #if !defined(DART_PRECOMPILER)
5923 5925
5924 DART_EXPORT Dart_Handle Dart_Precompile( 5926 DART_EXPORT Dart_Handle Dart_Precompile(
5925 Dart_QualifiedFunctionName entry_points[], 5927 Dart_QualifiedFunctionName entry_points[],
5926 bool reset_fields) { 5928 bool reset_fields) {
5927 UNREACHABLE(); 5929 UNREACHABLE();
5928 return 0; 5930 return 0;
5929 } 5931 }
5930 5932
5931 5933
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
6015 return Api::Success(); 6017 return Api::Success();
6016 } 6018 }
6017 #endif // DART_PRECOMPILER 6019 #endif // DART_PRECOMPILER
6018 6020
6019 6021
6020 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { 6022 DART_EXPORT bool Dart_IsRunningPrecompiledCode() {
6021 return Dart::IsRunningPrecompiledCode(); 6023 return Dart::IsRunningPrecompiledCode();
6022 } 6024 }
6023 6025
6024 } // namespace dart 6026 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698