Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 228ece926c5f01794a7b7392e3fd4d034a4a3912..cb2281dd89c47f88bf259b95951bdef4313a9a57 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -539,6 +539,12 @@ int LCodeGen::ToInteger32(LConstantOperand* op) const { |
} |
+Smi* LCodeGen::ToSmi(LConstantOperand* op) const { |
+ HConstant* constant = chunk_->LookupConstant(op); |
+ return Smi::FromInt(constant->Integer32Value()); |
+} |
+ |
+ |
double LCodeGen::ToDouble(LConstantOperand* op) const { |
HConstant* constant = chunk_->LookupConstant(op); |
ASSERT(constant->HasDoubleValue()); |