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

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

Issue 1249043006: fix truncate call to use extension method (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 years, 5 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/_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 9e852c8eb2d3c975e06fc71cc3d84f174be900d1..bfd65840cca1ffb0df62a081b00f64b8a5d38977 100644
--- a/lib/runtime/dart/_interceptors.js
+++ b/lib/runtime/dart/_interceptors.js
@@ -918,7 +918,7 @@ dart_library.library('dart/_interceptors', null, /* Imports */[
get [dartx.bitLength]() {
let nonneg = dart.notNull(this[dartx['<']](0)) ? dart.notNull(this[dartx['unary-']]()) - 1 : this;
if (dart.notNull(nonneg) >= 4294967296) {
- nonneg = (dart.notNull(nonneg) / 4294967296).truncate();
+ nonneg = (dart.notNull(nonneg) / 4294967296)[dartx.truncate]();
return dart.notNull(JSInt._bitCount(JSInt._spread(nonneg))) + 32;
}
return JSInt._bitCount(JSInt._spread(nonneg));
« no previous file with comments | « no previous file | lib/runtime/dart/_internal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698