Index: src/x64/fast-codegen-x64.cc |
diff --git a/src/x64/fast-codegen-x64.cc b/src/x64/fast-codegen-x64.cc |
index 7d9adb8c019ed6f39e1f3781f866a3a37d3a8c3e..69a2ff3af66cd18823ca3a43748dae976fece66f 100644 |
--- a/src/x64/fast-codegen-x64.cc |
+++ b/src/x64/fast-codegen-x64.cc |
@@ -525,20 +525,6 @@ void FastCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
} |
-void FastCodeGenerator::VisitReturnStatement(ReturnStatement* stmt) { |
- Comment cmnt(masm_, "[ ReturnStatement"); |
- Expression* expr = stmt->expression(); |
- if (expr->AsLiteral() != NULL) { |
- __ Move(rax, expr->AsLiteral()->handle()); |
- } else { |
- Visit(expr); |
- ASSERT_EQ(Expression::kValue, expr->context()); |
- __ pop(rax); |
- } |
- EmitReturnSequence(stmt->statement_pos()); |
-} |
- |
- |
void FastCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
Comment cmnt(masm_, "[ FunctionLiteral"); |
@@ -1650,6 +1636,8 @@ void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { |
} |
+Register FastCodeGenerator::result_register() { return rax; } |
+ |
#undef __ |