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

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

Issue 1074923003: rename dart_runtime.js helpers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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/runtime/dart/_foreign_helper.js ('k') | lib/runtime/dart/_internal.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 39422a50b7d696df5c3d3c0702015a2d1943434b..b94550664bcbd9e0027147eb7993baeee68c7d4e 100644
--- a/lib/runtime/dart/_interceptors.js
+++ b/lib/runtime/dart/_interceptors.js
@@ -143,7 +143,7 @@ var _interceptors;
throw new core.ArgumentError(lowerLimit);
if (!dart.is(upperLimit, core.num))
throw new core.ArgumentError(upperLimit);
- if (dart.dbinary(dart.dinvoke(lowerLimit, 'compareTo', upperLimit), '>', 0)) {
+ if (dart.dsend(dart.dsend(lowerLimit, 'compareTo', upperLimit), '>', 0)) {
throw new core.ArgumentError(lowerLimit);
}
if (dart.notNull(this.compareTo(dart.as(lowerLimit, core.num))) < 0)
@@ -386,8 +386,8 @@ var _interceptors;
return JSInt[_bitCount](JSInt[_spread](nonneg));
}
static [_bitCount](i) {
- i = dart.as(dart.dbinary(JSInt[_shru](i, 0), '-', dart.dbinary(JSInt[_shru](i, 1), '&', 1431655765)), core.int);
- i = (dart.notNull(i) & 858993459)['+'](dart.dbinary(JSInt[_shru](i, 2), '&', 858993459));
+ i = dart.as(dart.dsend(JSInt[_shru](i, 0), '-', dart.dsend(JSInt[_shru](i, 1), '&', 1431655765)), core.int);
+ i = (dart.notNull(i) & 858993459)['+'](dart.dsend(JSInt[_shru](i, 2), '&', 858993459));
i = 252645135 & i['+'](JSInt[_shru](i, 4));
i = dart.notNull(i) + dart.notNull(dart.as(JSInt[_shru](i, 8), core.int));
i = dart.notNull(i) + dart.notNull(dart.as(JSInt[_shru](i, 16), core.int));
« no previous file with comments | « lib/runtime/dart/_foreign_helper.js ('k') | lib/runtime/dart/_internal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698