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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 883263004: Allows turning on checked mode on a per-isolate basis (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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
Index: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 43426)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -1940,7 +1940,9 @@
Definition* InstantiateTypeArgumentsInstr::Canonicalize(FlowGraph* flow_graph) {
- return (FLAG_enable_type_checks || HasUses()) ? this : NULL;
+ return (FLAG_enable_type_checks ||
+ Isolate::Current()->checked_mode() ||
+ HasUses()) ? this : NULL;
}

Powered by Google App Engine
This is Rietveld 408576698