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

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 2940883008: [arm, arm64] Implemented unaligned scalar float access. (Closed)
Patch Set: piecewise float64 Created 3 years, 6 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
« no previous file with comments | « runtime/vm/disassembler_arm64.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/bootstrap.h" 8 #include "vm/bootstrap.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/constant_propagator.h" 10 #include "vm/constant_propagator.h"
(...skipping 4062 matching lines...) Expand 10 before | Expand all | Expand 10 after
4073 switch (cid) { 4073 switch (cid) {
4074 case kTypedDataInt8ArrayCid: 4074 case kTypedDataInt8ArrayCid:
4075 case kTypedDataUint8ArrayCid: 4075 case kTypedDataUint8ArrayCid:
4076 case kTypedDataUint8ClampedArrayCid: 4076 case kTypedDataUint8ClampedArrayCid:
4077 case kExternalTypedDataUint8ArrayCid: 4077 case kExternalTypedDataUint8ArrayCid:
4078 case kExternalTypedDataUint8ClampedArrayCid: 4078 case kExternalTypedDataUint8ClampedArrayCid:
4079 case kOneByteStringCid: 4079 case kOneByteStringCid:
4080 case kExternalOneByteStringCid: 4080 case kExternalOneByteStringCid:
4081 // Don't need to worry about alignment for accessing bytes. 4081 // Don't need to worry about alignment for accessing bytes.
4082 return kAlignedAccess; 4082 return kAlignedAccess;
4083 case kTypedDataFloat32ArrayCid:
4084 case kTypedDataFloat64ArrayCid:
4085 case kTypedDataFloat64x2ArrayCid: 4083 case kTypedDataFloat64x2ArrayCid:
4086 case kTypedDataInt32x4ArrayCid: 4084 case kTypedDataInt32x4ArrayCid:
4087 case kTypedDataFloat32x4ArrayCid: 4085 case kTypedDataFloat32x4ArrayCid:
4088 // TODO(rmacnak): Investigate alignment requirements of floating point 4086 // TODO(rmacnak): Investigate alignment requirements of floating point
4089 // loads. 4087 // loads.
4090 return kAlignedAccess; 4088 return kAlignedAccess;
4091 } 4089 }
4092 4090
4093 return alignment; 4091 return alignment;
4094 } 4092 }
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
4361 "native function '%s' (%" Pd " arguments) cannot be found", 4359 "native function '%s' (%" Pd " arguments) cannot be found",
4362 native_name().ToCString(), function().NumParameters()); 4360 native_name().ToCString(), function().NumParameters());
4363 } 4361 }
4364 set_is_auto_scope(auto_setup_scope); 4362 set_is_auto_scope(auto_setup_scope);
4365 set_native_c_function(native_function); 4363 set_native_c_function(native_function);
4366 } 4364 }
4367 4365
4368 #undef __ 4366 #undef __
4369 4367
4370 } // namespace dart 4368 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_arm64.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698