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

Unified Diff: src/parser.cc

Issue 7835027: Getting rid of ExitContextStatement for scoped blocks. (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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 4371093e8669768686fd80418b886b35f6fa4494..a79d5ff3678d48472adb76d69833c051edc8b7ad 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -1585,16 +1585,7 @@ Block* Parser::ParseScopedBlock(ZoneStringList* labels, bool* ok) {
block_scope = block_scope->FinalizeBlockScope();
body->set_block_scope(block_scope);
-
- if (block_scope != NULL) {
- // Rewrite the block { B } to a block: { { B } ExitContext; }
- Block* exit = new(zone()) Block(isolate(), NULL, 2, false);
- exit->AddStatement(body);
- exit->AddStatement(new(zone()) ExitContextStatement());
- return exit;
- } else {
- return body;
- }
+ return body;
}
« no previous file with comments | « src/full-codegen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698