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

Unified Diff: src/ast/scopes.h

Issue 2301183003: Move sloppy block function hoisting logic from Parser to Scope. (Closed)
Patch Set: code review (nikolaos@) Created 4 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/ast/ast.h ('k') | src/ast/scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.h
diff --git a/src/ast/scopes.h b/src/ast/scopes.h
index 244d8f33dda2dfcff38024b87ec99bd984a1b5d0..32868c75df69441fd306df36f634974a50a91a5b 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -735,6 +735,10 @@ class DeclarationScope : public Scope {
sloppy_block_function_map_.Declare(zone(), name, statement);
}
+ // Go through sloppy_block_function_map_ and hoist those (into this scope)
+ // which should be hoisted.
+ void HoistSloppyBlockFunctions(AstNodeFactory* factory, bool* ok);
+
SloppyBlockFunctionMap* sloppy_block_function_map() {
return &sloppy_block_function_map_;
}
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698