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

Unified Diff: test/codegen/expect/dart/_native_typed_data.js

Issue 1023543002: Enable inference in the core libs (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | « test/codegen/expect/dart/_js_names.js ('k') | test/codegen/expect/dart/async.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/dart/_native_typed_data.js
diff --git a/test/codegen/expect/dart/_native_typed_data.js b/test/codegen/expect/dart/_native_typed_data.js
index ecbeb68d01d46e41ef255dbb3ae0fa9a9038872c..e5df8f8515418a757435c1800a24bd9f57e3892e 100644
--- a/test/codegen/expect/dart/_native_typed_data.js
+++ b/test/codegen/expect/dart/_native_typed_data.js
@@ -1232,8 +1232,8 @@ var _native_typed_data;
let _uint32view = Symbol('_uint32view');
class NativeInt32x4 extends core.Object {
static [_truncate](x) {
- dart.dsetindex(_list, 0, x);
- return dart.dindex(_list, 0);
+ _list.set(0, dart.as(x, core.int));
+ return _list.get(0);
}
NativeInt32x4(x, y, z, w) {
this.x = dart.as(_truncate(x), core.int);
@@ -1302,32 +1302,32 @@ var _native_typed_data;
if (dart.notNull(mask) < 0 || dart.notNull(mask) > 255) {
throw new core.RangeError(`mask ${mask} must be in the range [0..256)`);
}
- dart.dsetindex(_list, 0, this.x);
- dart.dsetindex(_list, 1, this.y);
- dart.dsetindex(_list, 2, this.z);
- dart.dsetindex(_list, 3, this.w);
- let _x = dart.as(dart.dindex(_list, dart.notNull(mask) & 3), core.int);
- let _y = dart.as(dart.dindex(_list, dart.notNull(mask) >> 2 & 3), core.int);
- let _z = dart.as(dart.dindex(_list, dart.notNull(mask) >> 4 & 3), core.int);
- let _w = dart.as(dart.dindex(_list, dart.notNull(mask) >> 6 & 3), core.int);
+ _list.set(0, this.x);
+ _list.set(1, this.y);
+ _list.set(2, this.z);
+ _list.set(3, this.w);
+ let _x = _list.get(dart.notNull(mask) & 3);
+ let _y = _list.get(dart.notNull(mask) >> 2 & 3);
+ let _z = _list.get(dart.notNull(mask) >> 4 & 3);
+ let _w = _list.get(dart.notNull(mask) >> 6 & 3);
return new NativeInt32x4._truncated(_x, _y, _z, _w);
}
shuffleMix(other, mask) {
if (dart.notNull(mask) < 0 || dart.notNull(mask) > 255) {
throw new core.RangeError(`mask ${mask} must be in the range [0..256)`);
}
- dart.dsetindex(_list, 0, this.x);
- dart.dsetindex(_list, 1, this.y);
- dart.dsetindex(_list, 2, this.z);
- dart.dsetindex(_list, 3, this.w);
- let _x = dart.as(dart.dindex(_list, dart.notNull(mask) & 3), core.int);
- let _y = dart.as(dart.dindex(_list, dart.notNull(mask) >> 2 & 3), core.int);
- dart.dsetindex(_list, 0, other.x);
- dart.dsetindex(_list, 1, other.y);
- dart.dsetindex(_list, 2, other.z);
- dart.dsetindex(_list, 3, other.w);
- let _z = dart.as(dart.dindex(_list, dart.notNull(mask) >> 4 & 3), core.int);
- let _w = dart.as(dart.dindex(_list, dart.notNull(mask) >> 6 & 3), core.int);
+ _list.set(0, this.x);
+ _list.set(1, this.y);
+ _list.set(2, this.z);
+ _list.set(3, this.w);
+ let _x = _list.get(dart.notNull(mask) & 3);
+ let _y = _list.get(dart.notNull(mask) >> 2 & 3);
+ _list.set(0, other.x);
+ _list.set(1, other.y);
+ _list.set(2, other.z);
+ _list.set(3, other.w);
+ let _z = _list.get(dart.notNull(mask) >> 4 & 3);
+ let _w = _list.get(dart.notNull(mask) >> 6 & 3);
return new NativeInt32x4._truncated(_x, _y, _z, _w);
}
withX(x) {
« no previous file with comments | « test/codegen/expect/dart/_js_names.js ('k') | test/codegen/expect/dart/async.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698