| Index: src/arm/lithium-codegen-arm.cc
|
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
|
| index 56717a29e129e19071133d6fecb60db19bfbad56..96a9e0fce03addff3db49944bc1e1fbb60b3e9b8 100644
|
| --- a/src/arm/lithium-codegen-arm.cc
|
| +++ b/src/arm/lithium-codegen-arm.cc
|
| @@ -462,7 +462,7 @@ int32_t LCodeGen::ToRepresentation(LConstantOperand* op,
|
| const Representation& r) const {
|
| HConstant* constant = chunk_->LookupConstant(op);
|
| int32_t value = constant->Integer32Value();
|
| - if (r.IsInteger32()) return value;
|
| + if (r.IsInteger32() || r.IsExternal()) return value;
|
| ASSERT(r.IsSmiOrTagged());
|
| return reinterpret_cast<int32_t>(Smi::FromInt(value));
|
| }
|
|
|