Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 728e2ffe6446a8833d056194b9aef8d727408440..f0ed3ff04efa33a533dc6d549ba22f214913bc29 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -22352,12 +22352,14 @@ RawFloat32x4* Float32x4::New(simd128_value_t value, Heap::Space space) { |
simd128_value_t Float32x4::value() const { |
- return simd128_value_t().readFrom(&raw_ptr()->value_[0]); |
+ return ReadUnaligned( |
+ reinterpret_cast<const simd128_value_t*>(&raw_ptr()->value_)); |
} |
void Float32x4::set_value(simd128_value_t value) const { |
- StoreSimd128(&raw_ptr()->value_[0], value); |
+ StoreUnaligned(reinterpret_cast<simd128_value_t*>(&raw()->ptr()->value_), |
+ value); |
} |
@@ -22487,12 +22489,14 @@ int32_t Int32x4::w() const { |
simd128_value_t Int32x4::value() const { |
- return simd128_value_t().readFrom(&raw_ptr()->value_[0]); |
+ return ReadUnaligned( |
+ reinterpret_cast<const simd128_value_t*>(&raw_ptr()->value_)); |
} |
void Int32x4::set_value(simd128_value_t value) const { |
- StoreSimd128(&raw_ptr()->value_[0], value); |
+ StoreUnaligned(reinterpret_cast<simd128_value_t*>(&raw()->ptr()->value_), |
+ value); |
} |