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

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

Issue 1759913002: Make precompiler work with product mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 4 years, 9 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
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 Dart_IsolateCreateCallback create, 1138 Dart_IsolateCreateCallback create,
1139 Dart_IsolateInterruptCallback interrupt, 1139 Dart_IsolateInterruptCallback interrupt,
1140 Dart_IsolateUnhandledExceptionCallback unhandled, 1140 Dart_IsolateUnhandledExceptionCallback unhandled,
1141 Dart_IsolateShutdownCallback shutdown, 1141 Dart_IsolateShutdownCallback shutdown,
1142 Dart_FileOpenCallback file_open, 1142 Dart_FileOpenCallback file_open,
1143 Dart_FileReadCallback file_read, 1143 Dart_FileReadCallback file_read,
1144 Dart_FileWriteCallback file_write, 1144 Dart_FileWriteCallback file_write,
1145 Dart_FileCloseCallback file_close, 1145 Dart_FileCloseCallback file_close,
1146 Dart_EntropySource entropy_source, 1146 Dart_EntropySource entropy_source,
1147 Dart_GetVMServiceAssetsArchive get_service_assets) { 1147 Dart_GetVMServiceAssetsArchive get_service_assets) {
1148 if ((instructions_snapshot != NULL) && !FLAG_precompiled_mode) { 1148 if ((instructions_snapshot != NULL) && !FLAG_precompiled_runtime) {
1149 return strdup("Flag --precompilation was not specified."); 1149 return strdup("Flag --precompilation was not specified.");
1150 } 1150 }
1151 if (interrupt != NULL) { 1151 if (interrupt != NULL) {
1152 return strdup("Dart_Initialize: " 1152 return strdup("Dart_Initialize: "
1153 "Setting of interrupt callback is not supported."); 1153 "Setting of interrupt callback is not supported.");
1154 } 1154 }
1155 if (unhandled != NULL) { 1155 if (unhandled != NULL) {
1156 return strdup("Dart_Initialize: " 1156 return strdup("Dart_Initialize: "
1157 "Setting of unhandled exception callback is not supported."); 1157 "Setting of unhandled exception callback is not supported.");
1158 } 1158 }
(...skipping 5035 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698