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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 252333002: Use GPRs for mints (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index a21400c8f3ae47c6ab59777e63703ac3c419e530..c1bcf36798c46f9e14ae2a25693f5d179184ecb0 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -2131,7 +2131,6 @@ void MaterializeObjectInstr::RemapRegisters(intptr_t* fpu_reg_slots,
Value* value = InputAt(i);
switch (value->definition()->representation()) {
case kUnboxedDouble:
- case kUnboxedMint:
locations_[i] = Location::DoubleStackSlot(index);
break;
case kUnboxedFloat32x4:
@@ -2142,6 +2141,8 @@ void MaterializeObjectInstr::RemapRegisters(intptr_t* fpu_reg_slots,
default:
UNREACHABLE();
}
+ } else if (loc.IsPairLocation()) {
+ UNREACHABLE();
} else if (loc.IsInvalid()) {
// We currently only perform one iteration of allocation
// sinking, so we do not expect to find materialized objects
@@ -2348,7 +2349,7 @@ Environment* Environment::DeepCopy(intptr_t length) const {
for (intptr_t i = 0; i < length; ++i) {
copy->values_.Add(values_[i]->Copy());
if (locations_ != NULL) {
- copy->locations_[i] = locations_[i];
+ copy->locations_[i] = locations_[i].Copy();
}
}
return copy;

Powered by Google App Engine
This is Rietveld 408576698