| Index: src/compiler/x87/code-generator-x87.cc
|
| diff --git a/src/compiler/x87/code-generator-x87.cc b/src/compiler/x87/code-generator-x87.cc
|
| index d9ab46c978dda3d460fce75c762fea71fc0237a0..5d8594c92bae8d754db25223ff6c771db919c399 100644
|
| --- a/src/compiler/x87/code-generator-x87.cc
|
| +++ b/src/compiler/x87/code-generator-x87.cc
|
| @@ -60,9 +60,7 @@ class X87OperandConverter : public InstructionOperandConverter {
|
| Immediate ToImmediate(InstructionOperand* operand) {
|
| Constant constant = ToConstant(operand);
|
| if (constant.type() == Constant::kInt32 &&
|
| - (constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE ||
|
| - constant.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE ||
|
| - constant.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE)) {
|
| + RelocInfo::IsWasmReference(constant.rmode())) {
|
| return Immediate(reinterpret_cast<Address>(constant.ToInt32()),
|
| constant.rmode());
|
| }
|
|
|