Chromium Code Reviews| Index: src/arm64/lithium-codegen-arm64.cc |
| diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
| index 8f5b811820e04e45f1c88a9963a61c2532f94a24..5fb562448bd0d54735543cc880ffd00d80f107c4 100644 |
| --- a/src/arm64/lithium-codegen-arm64.cc |
| +++ b/src/arm64/lithium-codegen-arm64.cc |
| @@ -1235,9 +1235,8 @@ Operand LCodeGen::ToOperand32(LOperand* op, IntegerSignedness signedness) { |
| Representation r = chunk_->LookupLiteralRepresentation(const_op); |
| if (r.IsInteger32()) { |
| ASSERT(constant->HasInteger32Value()); |
| - return Operand(signedness == SIGNED_INT32 |
| - ? constant->Integer32Value() |
| - : static_cast<uint32_t>(constant->Integer32Value())); |
| + int64_t value = constant->Integer32Value(); |
| + return (signedness == SIGNED_INT32) ? value : value & kWRegMask; |
|
ulan
2014/04/25 09:08:18
This will now generate 64-bit RelocInfo. Is this i
jbramley
2014/04/25 13:54:32
Done.
|
| } else { |
| // Other constants not implemented. |
| Abort(kToOperand32UnsupportedImmediate); |