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

Unified Diff: runtime/vm/raw_object_snapshot.cc

Issue 12871015: SIMD plumbing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: s/materialize/Materialize Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object_snapshot.cc
diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc
index 704d340a79ded9979791e8a43cf1a3243c017dbb..6d397571174935e3be39680c879368acb267f522 100644
--- a/runtime/vm/raw_object_snapshot.cc
+++ b/runtime/vm/raw_object_snapshot.cc
@@ -2265,13 +2265,13 @@ RawFloat32x4Array* Float32x4Array::ReadFrom(SnapshotReader* reader,
result.set_tags(tags);
// Setup the array elements.
- float v[4];
+ simd128_value_t v;
for (intptr_t i = 0; i < len; ++i) {
- v[0] = reader->Read<float>();
- v[1] = reader->Read<float>();
- v[2] = reader->Read<float>();
- v[3] = reader->Read<float>();
- result.SetAt(i, simd_value_safe_load(&v[0]));
+ v.storage[0] = reader->Read<float>();
+ v.storage[1] = reader->Read<float>();
+ v.storage[2] = reader->Read<float>();
+ v.storage[3] = reader->Read<float>();
+ result.SetAt(i, v);
}
return result.raw();
}
@@ -2297,7 +2297,7 @@ RawExternal##name##Array* External##name##Array::ReadFrom( \
} \
BYTEARRAY_TYPE_LIST(EXTERNALARRAY_READ_FROM)
-EXTERNALARRAY_READ_FROM(Float32x4, Float32x4, simd_value_t)
+EXTERNALARRAY_READ_FROM(Float32x4, Float32x4, simd128_value_t)
#undef EXTERNALARRAY_READ_FROM
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698