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

Unified Diff: runtime/vm/kernel_binary_flowgraph.h

Issue 2956493003: [Kernel] Add check in the constant evaluator. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | runtime/vm/kernel_binary_flowgraph.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_binary_flowgraph.h
diff --git a/runtime/vm/kernel_binary_flowgraph.h b/runtime/vm/kernel_binary_flowgraph.h
index ade6b6aee06209223111d9833f5cd7ea31fc18e0..d52815abb5196cabdf5502f8592318b764e837b4 100644
--- a/runtime/vm/kernel_binary_flowgraph.h
+++ b/runtime/vm/kernel_binary_flowgraph.h
@@ -276,8 +276,8 @@ class StreamingConstantEvaluator {
const TypeArguments* TranslateTypeArguments(const Function& target,
dart::Class* target_klass);
- void AssertBoolInCheckedMode() {
- if (isolate_->type_checks() && !result_.IsBool()) {
+ void AssertBool() {
+ if (!result_.IsBool()) {
translation_helper_.ReportError("Expected boolean expression.");
}
}
« no previous file with comments | « no previous file | runtime/vm/kernel_binary_flowgraph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698