Chromium Code Reviews| Index: src/x64/lithium-codegen-x64.cc |
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
| index 0c907e44ad5889b47b212751a683e5c1c8792202..477ff363c5122757250e92edd794dce39de11eb8 100644 |
| --- a/src/x64/lithium-codegen-x64.cc |
| +++ b/src/x64/lithium-codegen-x64.cc |
| @@ -1820,6 +1820,7 @@ void LCodeGen::DoAddI(LAddI* instr) { |
| if (LAddI::UseLea(instr->hydrogen()) && !left->Equals(instr->result())) { |
| if (right->IsConstantOperand()) { |
| + ASSERT(!target_rep.IsSmi()); // Not support for smi-immediates. |
|
Jakob Kummerow
2014/04/01 15:14:28
nit: s/Not/No/
|
| int32_t offset = ToInteger32(LConstantOperand::cast(right)); |
| if (is_p) { |
| __ leap(ToRegister(instr->result()), |
| @@ -1838,6 +1839,7 @@ void LCodeGen::DoAddI(LAddI* instr) { |
| } |
| } else { |
| if (right->IsConstantOperand()) { |
| + ASSERT(!target_rep.IsSmi()); // Not support for smi-immediates. |
| if (is_p) { |
| __ addp(ToRegister(left), |
| Immediate(ToInteger32(LConstantOperand::cast(right)))); |