Index: src/ia32/fast-codegen-ia32.cc |
diff --git a/src/ia32/fast-codegen-ia32.cc b/src/ia32/fast-codegen-ia32.cc |
index 41524d8adc2beafc5ce7b1b4860fc59334255c02..b6e16f3229b6f88536517a376671d0d1f23563fc 100644 |
--- a/src/ia32/fast-codegen-ia32.cc |
+++ b/src/ia32/fast-codegen-ia32.cc |
@@ -515,20 +515,6 @@ void FastCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
} |
-void FastCodeGenerator::VisitReturnStatement(ReturnStatement* stmt) { |
- Comment cmnt(masm_, "[ ReturnStatement"); |
- Expression* expr = stmt->expression(); |
- if (expr->AsLiteral() != NULL) { |
- __ mov(eax, expr->AsLiteral()->handle()); |
- } else { |
- ASSERT_EQ(Expression::kValue, expr->context()); |
- Visit(expr); |
- __ pop(eax); |
- } |
- EmitReturnSequence(stmt->statement_pos()); |
-} |
- |
- |
void FastCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
Comment cmnt(masm_, "[ FunctionLiteral"); |
@@ -1639,6 +1625,7 @@ void FastCodeGenerator::VisitCompareOperation(CompareOperation* expr) { |
// Convert current context to test context: End post-test code. |
} |
+Register FastCodeGenerator::result_register() { return eax; } |
void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { |
__ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |