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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/patch/typed_data_patch.dart

Issue 2752163002: Format all dart dev compiler files (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5
6 import 'dart:_js_helper' show patch; 5 import 'dart:_js_helper' show patch;
7 import 'dart:_native_typed_data'; 6 import 'dart:_native_typed_data';
8 7
9 @patch class ByteData { 8 @patch
10 @patch factory ByteData(int length) = NativeByteData; 9 class ByteData {
10 @patch
11 factory ByteData(int length) = NativeByteData;
11 } 12 }
12 13
14 @patch
15 class Float32List {
16 @patch
17 factory Float32List(int length) = NativeFloat32List;
13 18
14 @patch class Float32List { 19 @patch
15 @patch factory Float32List(int length) = NativeFloat32List; 20 factory Float32List.fromList(List<double> elements) =
16
17 @patch factory Float32List.fromList(List<double> elements) =
18 NativeFloat32List.fromList; 21 NativeFloat32List.fromList;
19 } 22 }
20 23
24 @patch
25 class Float64List {
26 @patch
27 factory Float64List(int length) = NativeFloat64List;
21 28
22 @patch class Float64List { 29 @patch
23 @patch factory Float64List(int length) = NativeFloat64List; 30 factory Float64List.fromList(List<double> elements) =
24
25 @patch factory Float64List.fromList(List<double> elements) =
26 NativeFloat64List.fromList; 31 NativeFloat64List.fromList;
27 } 32 }
28 33
34 @patch
35 class Int16List {
36 @patch
37 factory Int16List(int length) = NativeInt16List;
29 38
30 @patch class Int16List { 39 @patch
31 @patch factory Int16List(int length) = NativeInt16List; 40 factory Int16List.fromList(List<int> elements) = NativeInt16List.fromList;
32
33 @patch factory Int16List.fromList(List<int> elements) =
34 NativeInt16List.fromList;
35 } 41 }
36 42
37 @patch class Int32List { 43 @patch
38 @patch factory Int32List(int length) = NativeInt32List; 44 class Int32List {
45 @patch
46 factory Int32List(int length) = NativeInt32List;
39 47
40 @patch factory Int32List.fromList(List<int> elements) = 48 @patch
41 NativeInt32List.fromList; 49 factory Int32List.fromList(List<int> elements) = NativeInt32List.fromList;
42 } 50 }
43 51
52 @patch
53 class Int8List {
54 @patch
55 factory Int8List(int length) = NativeInt8List;
44 56
45 @patch class Int8List { 57 @patch
46 @patch factory Int8List(int length) = NativeInt8List; 58 factory Int8List.fromList(List<int> elements) = NativeInt8List.fromList;
47
48 @patch factory Int8List.fromList(List<int> elements) =
49 NativeInt8List.fromList;
50 } 59 }
51 60
61 @patch
62 class Uint32List {
63 @patch
64 factory Uint32List(int length) = NativeUint32List;
52 65
53 @patch class Uint32List { 66 @patch
54 @patch factory Uint32List(int length) = NativeUint32List; 67 factory Uint32List.fromList(List<int> elements) = NativeUint32List.fromList;
55
56 @patch factory Uint32List.fromList(List<int> elements) =
57 NativeUint32List.fromList;
58 } 68 }
59 69
70 @patch
71 class Uint16List {
72 @patch
73 factory Uint16List(int length) = NativeUint16List;
60 74
61 @patch class Uint16List { 75 @patch
62 @patch factory Uint16List(int length) = NativeUint16List; 76 factory Uint16List.fromList(List<int> elements) = NativeUint16List.fromList;
63
64 @patch factory Uint16List.fromList(List<int> elements) =
65 NativeUint16List.fromList;
66 } 77 }
67 78
79 @patch
80 class Uint8ClampedList {
81 @patch
82 factory Uint8ClampedList(int length) = NativeUint8ClampedList;
68 83
69 @patch class Uint8ClampedList { 84 @patch
70 @patch factory Uint8ClampedList(int length) = NativeUint8ClampedList; 85 factory Uint8ClampedList.fromList(List<int> elements) =
71
72 @patch factory Uint8ClampedList.fromList(List<int> elements) =
73 NativeUint8ClampedList.fromList; 86 NativeUint8ClampedList.fromList;
74 } 87 }
75 88
89 @patch
90 class Uint8List {
91 @patch
92 factory Uint8List(int length) = NativeUint8List;
76 93
77 @patch class Uint8List { 94 @patch
78 @patch factory Uint8List(int length) = NativeUint8List; 95 factory Uint8List.fromList(List<int> elements) = NativeUint8List.fromList;
79
80 @patch factory Uint8List.fromList(List<int> elements) =
81 NativeUint8List.fromList;
82 } 96 }
83 97
84 98 @patch
85 @patch class Int64List { 99 class Int64List {
86 @patch factory Int64List(int length) { 100 @patch
101 factory Int64List(int length) {
87 throw new UnsupportedError("Int64List not supported by dart2js."); 102 throw new UnsupportedError("Int64List not supported by dart2js.");
88 } 103 }
89 104
90 @patch factory Int64List.fromList(List<int> elements) { 105 @patch
106 factory Int64List.fromList(List<int> elements) {
91 throw new UnsupportedError("Int64List not supported by dart2js."); 107 throw new UnsupportedError("Int64List not supported by dart2js.");
92 } 108 }
93 } 109 }
94 110
95 111 @patch
96 @patch class Uint64List { 112 class Uint64List {
97 @patch factory Uint64List(int length) { 113 @patch
114 factory Uint64List(int length) {
98 throw new UnsupportedError("Uint64List not supported by dart2js."); 115 throw new UnsupportedError("Uint64List not supported by dart2js.");
99 } 116 }
100 117
101 @patch factory Uint64List.fromList(List<int> elements) { 118 @patch
119 factory Uint64List.fromList(List<int> elements) {
102 throw new UnsupportedError("Uint64List not supported by dart2js."); 120 throw new UnsupportedError("Uint64List not supported by dart2js.");
103 } 121 }
104 } 122 }
105 123
106 @patch class Int32x4List { 124 @patch
107 @patch factory Int32x4List(int length) = NativeInt32x4List; 125 class Int32x4List {
126 @patch
127 factory Int32x4List(int length) = NativeInt32x4List;
108 128
109 @patch factory Int32x4List.fromList(List<Int32x4> elements) = 129 @patch
130 factory Int32x4List.fromList(List<Int32x4> elements) =
110 NativeInt32x4List.fromList; 131 NativeInt32x4List.fromList;
111 } 132 }
112 133
113 @patch class Float32x4List { 134 @patch
114 @patch factory Float32x4List(int length) = NativeFloat32x4List; 135 class Float32x4List {
136 @patch
137 factory Float32x4List(int length) = NativeFloat32x4List;
115 138
116 @patch factory Float32x4List.fromList(List<Float32x4> elements) = 139 @patch
140 factory Float32x4List.fromList(List<Float32x4> elements) =
117 NativeFloat32x4List.fromList; 141 NativeFloat32x4List.fromList;
118 } 142 }
119 143
120 @patch class Float64x2List { 144 @patch
121 @patch factory Float64x2List(int length) = NativeFloat64x2List; 145 class Float64x2List {
146 @patch
147 factory Float64x2List(int length) = NativeFloat64x2List;
122 148
123 @patch factory Float64x2List.fromList(List<Float64x2> elements) = 149 @patch
150 factory Float64x2List.fromList(List<Float64x2> elements) =
124 NativeFloat64x2List.fromList; 151 NativeFloat64x2List.fromList;
125 } 152 }
126 153
127 @patch class Float32x4 { 154 @patch
128 @patch factory Float32x4(double x, double y, double z, double w) = 155 class Float32x4 {
129 NativeFloat32x4; 156 @patch
130 @patch factory Float32x4.splat(double v) = NativeFloat32x4.splat; 157 factory Float32x4(double x, double y, double z, double w) = NativeFloat32x4;
131 @patch factory Float32x4.zero() = NativeFloat32x4.zero; 158 @patch
132 @patch factory Float32x4.fromInt32x4Bits(Int32x4 x) = 159 factory Float32x4.splat(double v) = NativeFloat32x4.splat;
160 @patch
161 factory Float32x4.zero() = NativeFloat32x4.zero;
162 @patch
163 factory Float32x4.fromInt32x4Bits(Int32x4 x) =
133 NativeFloat32x4.fromInt32x4Bits; 164 NativeFloat32x4.fromInt32x4Bits;
134 @patch factory Float32x4.fromFloat64x2(Float64x2 v) = 165 @patch
135 NativeFloat32x4.fromFloat64x2; 166 factory Float32x4.fromFloat64x2(Float64x2 v) = NativeFloat32x4.fromFloat64x2;
136 } 167 }
137 168
138 @patch class Int32x4 { 169 @patch
139 @patch factory Int32x4(int x, int y, int z, int w) = NativeInt32x4; 170 class Int32x4 {
140 @patch factory Int32x4.bool(bool x, bool y, bool z, bool w) = 171 @patch
141 NativeInt32x4.bool; 172 factory Int32x4(int x, int y, int z, int w) = NativeInt32x4;
142 @patch factory Int32x4.fromFloat32x4Bits(Float32x4 x) = 173 @patch
174 factory Int32x4.bool(bool x, bool y, bool z, bool w) = NativeInt32x4.bool;
175 @patch
176 factory Int32x4.fromFloat32x4Bits(Float32x4 x) =
143 NativeInt32x4.fromFloat32x4Bits; 177 NativeInt32x4.fromFloat32x4Bits;
144 } 178 }
145 179
146 @patch class Float64x2 { 180 @patch
147 @patch factory Float64x2(double x, double y) = NativeFloat64x2; 181 class Float64x2 {
148 @patch factory Float64x2.splat(double v) = NativeFloat64x2.splat; 182 @patch
149 @patch factory Float64x2.zero() = NativeFloat64x2.zero; 183 factory Float64x2(double x, double y) = NativeFloat64x2;
150 @patch factory Float64x2.fromFloat32x4(Float32x4 v) = 184 @patch
151 NativeFloat64x2.fromFloat32x4; 185 factory Float64x2.splat(double v) = NativeFloat64x2.splat;
186 @patch
187 factory Float64x2.zero() = NativeFloat64x2.zero;
188 @patch
189 factory Float64x2.fromFloat32x4(Float32x4 v) = NativeFloat64x2.fromFloat32x4;
152 } 190 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698