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

Unified Diff: src/full-codegen.cc

Issue 7003058: A collection of context-related refactoring changes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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
Index: src/full-codegen.cc
diff --git a/src/full-codegen.cc b/src/full-codegen.cc
index 972bdf05e20e8205d1d76330ddd3c083a3a61693..cc97e9e84b10045f385ae7daff4b2183a54e2a98 100644
--- a/src/full-codegen.cc
+++ b/src/full-codegen.cc
@@ -96,8 +96,8 @@ void BreakableStatementChecker::VisitWithEnterStatement(
}
-void BreakableStatementChecker::VisitWithExitStatement(
- WithExitStatement* stmt) {
+void BreakableStatementChecker::VisitContextExitStatement(
+ ContextExitStatement* stmt) {
}
@@ -957,13 +957,13 @@ void FullCodeGenerator::VisitWithEnterStatement(WithEnterStatement* stmt) {
SetStatementPosition(stmt);
VisitForStackValue(stmt->expression());
- __ CallRuntime(Runtime::kPushContext, 1);
+ __ CallRuntime(Runtime::kPushWithContext, 1);
StoreToFrameField(StandardFrameConstants::kContextOffset, context_register());
}
-void FullCodeGenerator::VisitWithExitStatement(WithExitStatement* stmt) {
- Comment cmnt(masm_, "[ WithExitStatement");
+void FullCodeGenerator::VisitContextExitStatement(ContextExitStatement* stmt) {
+ Comment cmnt(masm_, "[ ContextExitStatement");
SetStatementPosition(stmt);
// Pop context.

Powered by Google App Engine
This is Rietveld 408576698