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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 1560663002: Drop precompiler-related code from dart_precompiled binary. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comment Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/dart-runtime.gyp ('k') | runtime/vm/stub_code.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index fdb1d5374be4f0d56fe36e3849a9271c5524a75e..8a9e31ecf3ecb99fbf2fba69486d8b3804c142d9 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -5901,6 +5901,29 @@ DART_EXPORT Dart_Handle Dart_TimelineAsyncEnd(const char* label,
}
+#if defined(DART_PRECOMPILED)
+
+DART_EXPORT Dart_Handle Dart_Precompile(
+ Dart_QualifiedFunctionName entry_points[],
+ bool reset_fields) {
+ UNREACHABLE();
+ return 0;
+}
+
+
+DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot(
+ uint8_t** vm_isolate_snapshot_buffer,
+ intptr_t* vm_isolate_snapshot_size,
+ uint8_t** isolate_snapshot_buffer,
+ intptr_t* isolate_snapshot_size,
+ uint8_t** instructions_snapshot_buffer,
+ intptr_t* instructions_snapshot_size) {
+ UNREACHABLE();
+ return 0;
+}
+
+#else // DART_PRECOMPILED
+
DART_EXPORT Dart_Handle Dart_Precompile(
Dart_QualifiedFunctionName entry_points[],
bool reset_fields) {
@@ -5973,6 +5996,7 @@ DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot(
return Api::Success();
}
+#endif // DART_PRECOMPILED
DART_EXPORT bool Dart_IsRunningPrecompiledCode() {
« no previous file with comments | « runtime/dart-runtime.gyp ('k') | runtime/vm/stub_code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698