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

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 2120703002: DBC: Enables unboxed doubles (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Comparison ops Created 4 years, 5 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
Index: runtime/vm/deopt_instructions.cc
diff --git a/runtime/vm/deopt_instructions.cc b/runtime/vm/deopt_instructions.cc
index f31a8976590d103ef9e61168423dd7086b855128..06e2fee8665394f58020477a065a19cde2d98e63 100644
--- a/runtime/vm/deopt_instructions.cc
+++ b/runtime/vm/deopt_instructions.cc
@@ -1122,8 +1122,14 @@ void DeoptInfoBuilder::AddCopy(Value* value,
ToCpuRegisterSource(source_loc));
break;
case kUnboxedDouble:
+#if !defined(TARGET_ARCH_DBC)
deopt_instr = new(zone()) DeoptDoubleInstr(
ToFpuRegisterSource(source_loc, Location::kDoubleStackSlot));
+#else
+ // DBC stores unboxed doubles in regular registers (i.e. stack slots).
+ deopt_instr = new(zone()) DeoptWordInstr(
Vyacheslav Egorov (Google) 2016/07/14 16:26:24 This seems incorrect. DeoptDoubleInstr takes care
zra 2016/07/14 21:12:10 Done.
+ ToCpuRegisterSource(source_loc));
+#endif
break;
case kUnboxedFloat32x4:
deopt_instr = new(zone()) DeoptFloat32x4Instr(

Powered by Google App Engine
This is Rietveld 408576698