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

Unified Diff: lib/compiler/implementation/ssa/nodes.dart

Issue 10495013: Recognize logical operations before code generation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « lib/compiler/implementation/ssa/codegen_helpers.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/nodes.dart
===================================================================
--- lib/compiler/implementation/ssa/nodes.dart (revision 8244)
+++ lib/compiler/implementation/ssa/nodes.dart (working copy)
@@ -926,6 +926,8 @@
bool isConstantString() => false;
bool isConstantList() => false;
bool isConstantMap() => false;
+ bool isConstantFalse() => false;
+ bool isConstantTrue() => false;
bool isValid() {
HValidator validator = new HValidator();
@@ -1741,6 +1743,8 @@
bool isConstantString() => constant.isString();
bool isConstantList() => constant.isList();
bool isConstantMap() => constant.isMap();
+ bool isConstantFalse() => constant.isFalse();
+ bool isConstantTrue() => constant.isTrue();
// Maybe avoid this if the literal is big?
bool isCodeMotionInvariant() => true;
« no previous file with comments | « lib/compiler/implementation/ssa/codegen_helpers.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698