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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 1569833003: Adds strict compilation flags to Dart_IsolateFlags (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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/include/dart_api.h ('k') | runtime/vm/dart_api_impl_test.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 8a9e31ecf3ecb99fbf2fba69486d8b3804c142d9..6f0d2f8e9bb3aac357c68aa2c3cec440245a6ecc 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -1341,23 +1341,6 @@ DART_EXPORT void Dart_ExitIsolate() {
}
-// TODO(iposva): Remove this API and instead expose the underlying flags.
-DART_EXPORT Dart_Handle Dart_IsolateSetStrictCompilation(bool value) {
- CHECK_ISOLATE(Isolate::Current());
- Isolate* isolate = Isolate::Current();
- if (isolate->has_compiled_code()) {
- return Api::NewError(
- "%s expects that the isolate has not yet compiled code.", CURRENT_FUNC);
- }
- if (!value) {
- return Api::NewError(
- "%s expects that the value is set to true only.", CURRENT_FUNC);
- }
- Isolate::Current()->set_strict_compilation();
- return Api::Null();
-}
-
-
static uint8_t* ApiReallocate(uint8_t* ptr,
intptr_t old_size,
intptr_t new_size) {
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698