| Index: src/ia32/lithium-gap-resolver-ia32.cc
|
| diff --git a/src/ia32/lithium-gap-resolver-ia32.cc b/src/ia32/lithium-gap-resolver-ia32.cc
|
| index 655f4a2efb71e633fe62b2d06b9d91c7817a5145..51745aecf55f59f961a0b7b76c84675c5d5ebbe9 100644
|
| --- a/src/ia32/lithium-gap-resolver-ia32.cc
|
| +++ b/src/ia32/lithium-gap-resolver-ia32.cc
|
| @@ -167,7 +167,8 @@ int LGapResolver::CountSourceUses(LOperand* operand) {
|
|
|
| Register LGapResolver::GetFreeRegisterNot(Register reg) {
|
| int skip_index = reg.is(no_reg) ? -1 : reg.code();
|
| - const RegisterConfiguration* config = RegisterConfiguration::ArchDefault();
|
| + const RegisterConfiguration* config =
|
| + RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT);
|
| for (int i = 0; i < config->num_allocatable_general_registers(); ++i) {
|
| int code = config->GetAllocatableGeneralCode(i);
|
| if (source_uses_[code] == 0 && destination_uses_[code] > 0 &&
|
| @@ -182,7 +183,8 @@ Register LGapResolver::GetFreeRegisterNot(Register reg) {
|
| bool LGapResolver::HasBeenReset() {
|
| if (!moves_.is_empty()) return false;
|
| if (spilled_register_ >= 0) return false;
|
| - const RegisterConfiguration* config = RegisterConfiguration::ArchDefault();
|
| + const RegisterConfiguration* config =
|
| + RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT);
|
| for (int i = 0; i < config->num_allocatable_general_registers(); ++i) {
|
| int code = config->GetAllocatableGeneralCode(i);
|
| if (source_uses_[code] != 0) return false;
|
| @@ -236,7 +238,8 @@ Register LGapResolver::EnsureTempRegister() {
|
|
|
| // 3. Prefer to spill a register that is not used in any remaining move
|
| // because it will not need to be restored until the end.
|
| - const RegisterConfiguration* config = RegisterConfiguration::ArchDefault();
|
| + const RegisterConfiguration* config =
|
| + RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT);
|
| for (int i = 0; i < config->num_allocatable_general_registers(); ++i) {
|
| int code = config->GetAllocatableGeneralCode(i);
|
| if (source_uses_[code] == 0 && destination_uses_[code] == 0) {
|
|
|