Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index d3d53334d4295b493cc6ad40c520532ab6d8067a..0b4487d056e82a87ea2b30a7a57109c73f055674 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -3807,6 +3807,19 @@ void FullCodeGenerator::EmitToString(CallRuntime* expr) { |
} |
+void FullCodeGenerator::EmitToNumber(CallRuntime* expr) { |
+ ZoneList<Expression*>* args = expr->arguments(); |
+ DCHECK_EQ(1, args->length()); |
+ |
+ // Load the argument into r0 and convert it. |
+ VisitForAccumulatorValue(args->at(0)); |
+ |
+ ToNumberStub stub(isolate()); |
+ __ CallStub(&stub); |
+ context()->Plug(r0); |
+} |
+ |
+ |
void FullCodeGenerator::EmitToName(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
DCHECK_EQ(1, args->length()); |