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

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

Issue 10624003: Relax the type requirements for using the builtin bitops. (Closed) Base URL: https://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 | « no previous file | 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
diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
index 75d703ee962c63315932ed0bc752e9040a2c208c..4ef67cb128b86261867f62ff8f757fd717946b61 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -1524,7 +1524,7 @@ class HBinaryBitOp extends HBinaryArithmetic {
HBinaryBitOp(HStatic target, HInstruction left, HInstruction right)
: super(target, left, right);
- bool get builtin() => left.isInteger() && right.isInteger();
+ bool get builtin() => left.isNumber() && right.isNumber();
kasperl 2012/06/21 08:58:29 Can we just remove the method and use the one in H
Mads Ager (google) 2012/06/21 10:25:31 Of course. Thanks!
HType computeTypeFromInputTypes() {
// All bitwise operations on primitive types either produce an
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698