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

Unified Diff: lib/runtime/dart/_interceptors.js

Issue 1121993004: Inference through conditional expressions (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 years, 7 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 | lib/runtime/dart/_isolate_helper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_interceptors.js
diff --git a/lib/runtime/dart/_interceptors.js b/lib/runtime/dart/_interceptors.js
index 02b193597a2ce6e8175c5dae7e5208b214afa7d9..c723f5a8d2a30979a6eccc649007a597c5d1c1c9 100644
--- a/lib/runtime/dart/_interceptors.js
+++ b/lib/runtime/dart/_interceptors.js
@@ -292,7 +292,7 @@ var _interceptors;
return this[_shlPositive](other);
}
[_shlPositive](other) {
- return dart.as(other > 31 ? 0 : this << other >>> 0, core.num);
+ return other > 31 ? 0 : dart.as(this << other >>> 0, core.num);
}
['>>'](other) {
if (false)
@@ -304,7 +304,7 @@ var _interceptors;
return this[_shrOtherPositive](other);
}
[_shrOtherPositive](other) {
- return dart.as(this > 0 ? this[_shrBothPositive](other) : this >> (dart.notNull(other) > 31 ? 31 : other) >>> 0, core.num);
+ return this > 0 ? this[_shrBothPositive](other) : dart.as(this >> (dart.notNull(other) > 31 ? 31 : other) >>> 0, core.num);
}
[_shrReceiverPositive](other) {
if (other < 0)
@@ -312,7 +312,7 @@ var _interceptors;
return this[_shrBothPositive](other);
}
[_shrBothPositive](other) {
- return dart.as(other > 31 ? 0 : this >>> other, core.num);
+ return other > 31 ? 0 : dart.as(this >>> other, core.num);
}
['&'](other) {
if (!dart.is(other, core.num))
« no previous file with comments | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698