Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index a243ca5cc76b8cbe247b0737d400d723316fe5e0..03abfbd85d59b358f1bb758070de41c484a55ea3 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -956,7 +956,8 @@ void FullCodeGenerator::VisitEnterWithContextStatement( |
SetStatementPosition(stmt); |
VisitForStackValue(stmt->expression()); |
- __ CallRuntime(Runtime::kPushWithContext, 1); |
+ PushFunctionArgumentForContextAllocation(); |
+ __ CallRuntime(Runtime::kPushWithContext, 2); |
StoreToFrameField(StandardFrameConstants::kContextOffset, context_register()); |
} |
@@ -1107,7 +1108,8 @@ void FullCodeGenerator::VisitTryCatchStatement(TryCatchStatement* stmt) { |
{ Comment cmnt(masm_, "[ Extend catch context"); |
__ Push(stmt->name()); |
__ push(result_register()); |
- __ CallRuntime(Runtime::kPushCatchContext, 2); |
+ PushFunctionArgumentForContextAllocation(); |
+ __ CallRuntime(Runtime::kPushCatchContext, 3); |
StoreToFrameField(StandardFrameConstants::kContextOffset, |
context_register()); |
} |