Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: src/full-codegen.cc

Issue 8065002: Simplify pushing function argument for context allocation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/full-codegen.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen.cc
diff --git a/src/full-codegen.cc b/src/full-codegen.cc
index 4101b29f507719905fa648fb50f58b2144e08b82..8aa763405aba574ef234f31999e8ae694f295382 100644
--- a/src/full-codegen.cc
+++ b/src/full-codegen.cc
@@ -819,7 +819,7 @@ void FullCodeGenerator::VisitBlock(Block* stmt) {
{ Comment cmnt(masm_, "[ Extend block context");
scope_ = stmt->block_scope();
__ Push(scope_->GetSerializedScopeInfo());
- PushFunctionArgumentForContextAllocation();
+ PushFunctionArgumentForContextAllocation(result_register());
__ CallRuntime(Runtime::kPushBlockContext, 2);
StoreToFrameField(StandardFrameConstants::kContextOffset,
context_register());
@@ -965,7 +965,7 @@ void FullCodeGenerator::VisitWithStatement(WithStatement* stmt) {
SetStatementPosition(stmt);
VisitForStackValue(stmt->expression());
- PushFunctionArgumentForContextAllocation();
+ PushFunctionArgumentForContextAllocation(result_register());
__ CallRuntime(Runtime::kPushWithContext, 2);
decrement_stack_height();
StoreToFrameField(StandardFrameConstants::kContextOffset, context_register());
@@ -1116,7 +1116,7 @@ void FullCodeGenerator::VisitTryCatchStatement(TryCatchStatement* stmt) {
{ Comment cmnt(masm_, "[ Extend catch context");
__ Push(stmt->variable()->name());
__ push(result_register());
- PushFunctionArgumentForContextAllocation();
+ PushFunctionArgumentForContextAllocation(result_register());
__ CallRuntime(Runtime::kPushCatchContext, 3);
StoreToFrameField(StandardFrameConstants::kContextOffset,
context_register());
« no previous file with comments | « src/full-codegen.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698