| 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..a64d3e223fae20d9f17dbb74b1580d58ed847ed3 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()); // No support for smi-immediates.
|
| 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()); // No support for smi-immediates.
|
| if (is_p) {
|
| __ addp(ToRegister(left),
|
| Immediate(ToInteger32(LConstantOperand::cast(right))));
|
|
|