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

Unified Diff: runtime/vm/raw_object.h

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/object.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index a6007721acba664d9717bebede1570e53e067896..c8cb774f0196b68d6c424d1eb736959fc39846cf 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -1389,6 +1389,11 @@ class RawFloat32x4 : public RawInstance {
float value_[4];
friend class SnapshotReader;
+ public:
+ float x() const { return value_[0]; }
+ float y() const { return value_[1]; }
+ float z() const { return value_[2]; }
+ float w() const { return value_[3]; }
};
@@ -1398,6 +1403,11 @@ class RawUint32x4 : public RawInstance {
uint32_t value_[4];
friend class SnapshotReader;
+ public:
+ uint32_t x() const { return value_[0]; }
+ uint32_t y() const { return value_[1]; }
+ uint32_t z() const { return value_[2]; }
+ uint32_t w() const { return value_[3]; }
};
@@ -1531,7 +1541,7 @@ class RawFloat32x4Array : public RawByteArray {
RAW_HEAP_OBJECT_IMPLEMENTATION(Float32x4Array);
// Variable length data follows here.
- simd_value_t data_[0];
+ simd128_value_t data_[0];
};
class RawFloat32Array : public RawByteArray {
@@ -1626,7 +1636,7 @@ class RawExternalUint64Array : public RawByteArray {
class RawExternalFloat32x4Array : public RawByteArray {
RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalFloat32x4Array);
- simd_value_t* data_;
+ simd128_value_t* data_;
void* peer_;
};
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698