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

Unified Diff: src/ast/scopes.h

Issue 2301183003: Move sloppy block function hoisting logic from Parser to Scope. (Closed)
Patch Set: 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
Index: src/ast/scopes.h
diff --git a/src/ast/scopes.h b/src/ast/scopes.h
index 5f0ebb9ed50dab8a625d9368290a05cf199aca58..7a7d6fd7b33581a99566fffe7c4edf755d1f43eb 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -743,6 +743,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_;
}

Powered by Google App Engine
This is Rietveld 408576698