| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index 2a118a9e9a4de42172335521376e8336907ff2e8..322cdbecfd8261d9caecaeb41c53152a9766a62d 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -744,7 +744,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));
|
| }
|
|
|