@@ -168,89 +168,95 @@ void _memCopy(Object target, int targetOffsetInBytes, Object source,
168
168
// and GCing new spaces takes a lot of the benchmark time. The next speedup is
169
169
// getting rid of these allocations by inlining these functions.
170
170
@pragma ("vm:recognized" , "other" )
171
- int _loadInt8 (Pointer pointer , int offsetInBytes) native "Ffi_loadInt8" ;
171
+ int _loadInt8 (Object typedDataBase , int offsetInBytes) native "Ffi_loadInt8" ;
172
172
173
173
@pragma ("vm:recognized" , "other" )
174
- int _loadInt16 (Pointer pointer , int offsetInBytes) native "Ffi_loadInt16" ;
174
+ int _loadInt16 (Object typedDataBase , int offsetInBytes) native "Ffi_loadInt16" ;
175
175
176
176
@pragma ("vm:recognized" , "other" )
177
- int _loadInt32 (Pointer pointer , int offsetInBytes) native "Ffi_loadInt32" ;
177
+ int _loadInt32 (Object typedDataBase , int offsetInBytes) native "Ffi_loadInt32" ;
178
178
179
179
@pragma ("vm:recognized" , "other" )
180
- int _loadInt64 (Pointer pointer , int offsetInBytes) native "Ffi_loadInt64" ;
180
+ int _loadInt64 (Object typedDataBase , int offsetInBytes) native "Ffi_loadInt64" ;
181
181
182
182
@pragma ("vm:recognized" , "other" )
183
- int _loadUint8 (Pointer pointer , int offsetInBytes) native "Ffi_loadUint8" ;
183
+ int _loadUint8 (Object typedDataBase , int offsetInBytes) native "Ffi_loadUint8" ;
184
184
185
185
@pragma ("vm:recognized" , "other" )
186
- int _loadUint16 (Pointer pointer, int offsetInBytes) native "Ffi_loadUint16" ;
186
+ int _loadUint16 (Object typedDataBase, int offsetInBytes)
187
+ native "Ffi_loadUint16" ;
187
188
188
189
@pragma ("vm:recognized" , "other" )
189
- int _loadUint32 (Pointer pointer, int offsetInBytes) native "Ffi_loadUint32" ;
190
+ int _loadUint32 (Object typedDataBase, int offsetInBytes)
191
+ native "Ffi_loadUint32" ;
190
192
191
193
@pragma ("vm:recognized" , "other" )
192
- int _loadUint64 (Pointer pointer, int offsetInBytes) native "Ffi_loadUint64" ;
194
+ int _loadUint64 (Object typedDataBase, int offsetInBytes)
195
+ native "Ffi_loadUint64" ;
193
196
194
197
@pragma ("vm:recognized" , "other" )
195
- int _loadIntPtr (Pointer pointer, int offsetInBytes) native "Ffi_loadIntPtr" ;
198
+ int _loadIntPtr (Object typedDataBase, int offsetInBytes)
199
+ native "Ffi_loadIntPtr" ;
196
200
197
201
@pragma ("vm:recognized" , "other" )
198
- double _loadFloat (Pointer pointer, int offsetInBytes) native "Ffi_loadFloat" ;
202
+ double _loadFloat (Object typedDataBase, int offsetInBytes)
203
+ native "Ffi_loadFloat" ;
199
204
200
205
@pragma ("vm:recognized" , "other" )
201
- double _loadDouble (Pointer pointer, int offsetInBytes) native "Ffi_loadDouble" ;
206
+ double _loadDouble (Object typedDataBase, int offsetInBytes)
207
+ native "Ffi_loadDouble" ;
202
208
203
209
@pragma ("vm:recognized" , "other" )
204
210
Pointer <S > _loadPointer <S extends NativeType >(
205
- Pointer pointer , int offsetInBytes) native "Ffi_loadPointer" ;
211
+ Object typedDataBase , int offsetInBytes) native "Ffi_loadPointer" ;
206
212
207
213
@pragma ("vm:recognized" , "other" )
208
- void _storeInt8 (Pointer pointer , int offsetInBytes, int value)
214
+ void _storeInt8 (Object typedDataBase , int offsetInBytes, int value)
209
215
native "Ffi_storeInt8" ;
210
216
211
217
@pragma ("vm:recognized" , "other" )
212
- void _storeInt16 (Pointer pointer , int offsetInBytes, int value)
218
+ void _storeInt16 (Object typedDataBase , int offsetInBytes, int value)
213
219
native "Ffi_storeInt16" ;
214
220
215
221
@pragma ("vm:recognized" , "other" )
216
- void _storeInt32 (Pointer pointer , int offsetInBytes, int value)
222
+ void _storeInt32 (Object typedDataBase , int offsetInBytes, int value)
217
223
native "Ffi_storeInt32" ;
218
224
219
225
@pragma ("vm:recognized" , "other" )
220
- void _storeInt64 (Pointer pointer , int offsetInBytes, int value)
226
+ void _storeInt64 (Object typedDataBase , int offsetInBytes, int value)
221
227
native "Ffi_storeInt64" ;
222
228
223
229
@pragma ("vm:recognized" , "other" )
224
- void _storeUint8 (Pointer pointer , int offsetInBytes, int value)
230
+ void _storeUint8 (Object typedDataBase , int offsetInBytes, int value)
225
231
native "Ffi_storeUint8" ;
226
232
227
233
@pragma ("vm:recognized" , "other" )
228
- void _storeUint16 (Pointer pointer , int offsetInBytes, int value)
234
+ void _storeUint16 (Object typedDataBase , int offsetInBytes, int value)
229
235
native "Ffi_storeUint16" ;
230
236
231
237
@pragma ("vm:recognized" , "other" )
232
- void _storeUint32 (Pointer pointer , int offsetInBytes, int value)
238
+ void _storeUint32 (Object typedDataBase , int offsetInBytes, int value)
233
239
native "Ffi_storeUint32" ;
234
240
235
241
@pragma ("vm:recognized" , "other" )
236
- void _storeUint64 (Pointer pointer , int offsetInBytes, int value)
242
+ void _storeUint64 (Object typedDataBase , int offsetInBytes, int value)
237
243
native "Ffi_storeUint64" ;
238
244
239
245
@pragma ("vm:recognized" , "other" )
240
- void _storeIntPtr (Pointer pointer , int offsetInBytes, int value)
246
+ void _storeIntPtr (Object typedDataBase , int offsetInBytes, int value)
241
247
native "Ffi_storeIntPtr" ;
242
248
243
249
@pragma ("vm:recognized" , "other" )
244
- void _storeFloat (Pointer pointer , int offsetInBytes, double value)
250
+ void _storeFloat (Object typedDataBase , int offsetInBytes, double value)
245
251
native "Ffi_storeFloat" ;
246
252
247
253
@pragma ("vm:recognized" , "other" )
248
- void _storeDouble (Pointer pointer , int offsetInBytes, double value)
254
+ void _storeDouble (Object typedDataBase , int offsetInBytes, double value)
249
255
native "Ffi_storeDouble" ;
250
256
251
257
@pragma ("vm:recognized" , "other" )
252
- void _storePointer <S extends NativeType >(Pointer pointer, int offsetInBytes ,
253
- Pointer <S > value) native "Ffi_storePointer" ;
258
+ void _storePointer <S extends NativeType >(Object typedDataBase ,
259
+ int offsetInBytes, Pointer <S > value) native "Ffi_storePointer" ;
254
260
255
261
Pointer <Int8 > _elementAtInt8 (Pointer <Int8 > pointer, int index) =>
256
262
Pointer .fromAddress (pointer.address + 1 * index);
0 commit comments