Index: src/arm/fast-codegen-arm.cc |
diff --git a/src/arm/fast-codegen-arm.cc b/src/arm/fast-codegen-arm.cc |
index 2c264d85ce61e6ca5628574248037507c4634c28..04fff5ca1528a2dfaa7071426b669d47625ca65d 100644 |
--- a/src/arm/fast-codegen-arm.cc |
+++ b/src/arm/fast-codegen-arm.cc |
@@ -521,21 +521,6 @@ void FastCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
} |
-void FastCodeGenerator::VisitReturnStatement(ReturnStatement* stmt) { |
- Comment cmnt(masm_, "[ ReturnStatement"); |
- Expression* expr = stmt->expression(); |
- // Complete the statement based on the type of the subexpression. |
- if (expr->AsLiteral() != NULL) { |
- __ mov(r0, Operand(expr->AsLiteral()->handle())); |
- } else { |
- ASSERT_EQ(Expression::kValue, expr->context()); |
- Visit(expr); |
- __ pop(r0); |
- } |
- EmitReturnSequence(stmt->statement_pos()); |
-} |
- |
- |
void FastCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
Comment cmnt(masm_, "[ FunctionLiteral"); |
@@ -1668,6 +1653,8 @@ void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { |
} |
+Register FastCodeGenerator::result_register() { return r0; } |
+ |
#undef __ |