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

Unified Diff: runtime/vm/object.cc

Issue 172653002: Unbox/Box Float64x2 and inline typed array loads and stores (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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.h ('k') | tests/lib/typed_data/float64x2_functional_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index f87a9f566fcb524c3d6f0bd973b858e0216c1fdd..cf5a22e0ca8c6b82a797fb758061182dce51b8d8 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -12408,6 +12408,12 @@ bool AbstractType::IsFloat32x4Type() const {
}
+bool AbstractType::IsFloat64x2Type() const {
+ return HasResolvedTypeClass() &&
+ (type_class() == Type::Handle(Type::Float64x2()).type_class());
+}
+
+
bool AbstractType::IsInt32x4Type() const {
return HasResolvedTypeClass() &&
(type_class() == Type::Handle(Type::Int32x4()).type_class());
@@ -12576,6 +12582,11 @@ RawType* Type::Float32x4() {
}
+RawType* Type::Float64x2() {
+ return Isolate::Current()->object_store()->float64x2_type();
+}
+
+
RawType* Type::Int32x4() {
return Isolate::Current()->object_store()->int32x4_type();
}
« no previous file with comments | « runtime/vm/object.h ('k') | tests/lib/typed_data/float64x2_functional_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698