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

Unified Diff: src/ast/scopes.h

Issue 2262133002: Simplify Scope::AllowsLazyCompilationWithoutContext (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | 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 6dfcff222145d699719ef7d7722fb11a68ea9d7e..1bf541944a0298aafd7c009141aae882db52dec2 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -382,9 +382,6 @@ class Scope: public ZoneObject {
// Determine if we can use lazy compilation for this scope without a context.
bool AllowsLazyCompilationWithoutContext() const;
- // True if the outer context of this scope is always the native context.
- bool HasTrivialOuterContext() const;
-
// The number of contexts between this and scope; zero if this == scope.
int ContextChainLength(Scope* scope);
@@ -593,17 +590,8 @@ class Scope: public ZoneObject {
ParseInfo* info = nullptr,
VariableProxy* stack = nullptr);
- bool InsideWithScope() const {
- for (const Scope* scope = this; scope != nullptr;
- scope = scope->outer_scope()) {
- if (scope->is_with_scope()) return true;
- }
- return false;
- }
-
// Scope analysis.
void PropagateScopeInfo(bool outer_scope_calls_sloppy_eval);
- bool HasTrivialContext() const;
// Predicates.
bool MustAllocate(Variable* var);
« no previous file with comments | « no previous file | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698