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

Unified Diff: runtime/vm/deferred_objects.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/deferred_objects.h ('k') | runtime/vm/deopt_instructions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deferred_objects.cc
diff --git a/runtime/vm/deferred_objects.cc b/runtime/vm/deferred_objects.cc
index defd14e37c02a9393beb14a465d2778ead14e276..ab9e6cdc61aeafd5651028480167d81f99b61b8c 100644
--- a/runtime/vm/deferred_objects.cc
+++ b/runtime/vm/deferred_objects.cc
@@ -54,6 +54,20 @@ void DeferredFloat32x4::Materialize(DeoptContext* deopt_context) {
}
+void DeferredFloat64x2::Materialize(DeoptContext* deopt_context) {
+ RawFloat64x2** float64x2_slot = reinterpret_cast<RawFloat64x2**>(slot());
+ RawFloat64x2* raw_float64x2 = Float64x2::New(value());
+ *float64x2_slot = raw_float64x2;
+
+ if (FLAG_trace_deoptimization_verbose) {
+ double x = raw_float64x2->x();
+ double y = raw_float64x2->y();
+ OS::PrintErr("materializing Float64x2 at %" Px ": %g,%g\n",
+ reinterpret_cast<uword>(slot()), x, y);
+ }
+}
+
+
void DeferredInt32x4::Materialize(DeoptContext* deopt_context) {
RawInt32x4** int32x4_slot = reinterpret_cast<RawInt32x4**>(slot());
RawInt32x4* raw_int32x4 = Int32x4::New(value());
« no previous file with comments | « runtime/vm/deferred_objects.h ('k') | runtime/vm/deopt_instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698