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

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

Issue 1100633006: Generate static calls for Object fields and methods (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments 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/_js_helper.js ('k') | lib/runtime/dart/async.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_native_typed_data.js
diff --git a/lib/runtime/dart/_native_typed_data.js b/lib/runtime/dart/_native_typed_data.js
index 8ea923657f7b29efa1822cc0ca5870f45bff8b8f..003529c19b1a6697c65154f73eb5a94a743ae72c 100644
--- a/lib/runtime/dart/_native_typed_data.js
+++ b/lib/runtime/dart/_native_typed_data.js
@@ -1248,10 +1248,10 @@ var _native_typed_data;
dart.defineNamedConstructor(NativeFloat32x4, _doubles);
dart.defineNamedConstructor(NativeFloat32x4, _truncated);
dart.defineLazyProperties(NativeFloat32x4, {
- get _list() {
+ get [_list]() {
return new NativeFloat32List(4);
},
- get _uint32view() {
+ get [_uint32view]() {
return NativeFloat32x4[_list].buffer.asUint32List();
}
});
@@ -1434,7 +1434,7 @@ var _native_typed_data;
dart.defineNamedConstructor(NativeInt32x4, 'fromFloat32x4Bits');
dart.defineNamedConstructor(NativeInt32x4, _truncated);
dart.defineLazyProperties(NativeInt32x4, {
- get _list() {
+ get [_list]() {
return new NativeInt32List(4);
}
});
@@ -1532,14 +1532,14 @@ var _native_typed_data;
dart.defineNamedConstructor(NativeFloat64x2, 'fromFloat32x4');
dart.defineNamedConstructor(NativeFloat64x2, _doubles);
dart.defineLazyProperties(NativeFloat64x2, {
- get _list() {
+ get [_list]() {
return new NativeFloat64List(2);
},
- set _list(_) {},
- get _uint32View() {
+ set [_list](_) {},
+ get [_uint32View]() {
return dart.as(NativeFloat64x2[_list].buffer.asUint32List(), NativeUint32List);
},
- set _uint32View(_) {}
+ set [_uint32View](_) {}
});
// Exports:
exports.NativeByteBuffer = NativeByteBuffer;
« no previous file with comments | « lib/runtime/dart/_js_helper.js ('k') | lib/runtime/dart/async.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698