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

Unified Diff: src/ast/scopes.h

Issue 2218083002: Remove bool result from analyze since it's always true (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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 30d14221d0bb9f922002010fef0bb7fd886157b8..3b12835e9fdc4efbc0b9c4922c704c0dc4b0c558 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -8,7 +8,6 @@
#include "src/ast/ast.h"
#include "src/base/hashmap.h"
#include "src/globals.h"
-#include "src/pending-compilation-error-handler.h"
#include "src/zone.h"
namespace v8 {
@@ -127,7 +126,7 @@ class Scope: public ZoneObject {
// Compute top scope and allocate variables. For lazy compilation the top
// scope only contains the single lazily compiled function, so this
// doesn't re-allocate variables repeatedly.
- static bool Analyze(ParseInfo* info);
+ static void Analyze(ParseInfo* info);
enum class DeserializationMode { kDeserializeOffHeap, kKeepScopeInfo };
@@ -596,11 +595,9 @@ class Scope: public ZoneObject {
Variable* LookupRecursive(VariableProxy* proxy, BindingKind* binding_kind,
AstNodeFactory* factory,
Scope* max_outer_scope = nullptr);
- MUST_USE_RESULT
- bool ResolveVariable(ParseInfo* info, VariableProxy* proxy,
+ void ResolveVariable(ParseInfo* info, VariableProxy* proxy,
AstNodeFactory* factory);
- MUST_USE_RESULT
- bool ResolveVariablesRecursively(ParseInfo* info, AstNodeFactory* factory);
+ void ResolveVariablesRecursively(ParseInfo* info, AstNodeFactory* factory);
// Tries to resolve local variables inside max_outer_scope; migrates those
// which cannot be resolved into migrate_to.
@@ -850,8 +847,7 @@ class DeclarationScope : public Scope {
// In the case of code compiled and run using 'eval', the context
// parameter is the context in which eval was called. In all other
// cases the context parameter is an empty handle.
- MUST_USE_RESULT
- bool AllocateVariables(ParseInfo* info, AstNodeFactory* factory);
+ void AllocateVariables(ParseInfo* info, AstNodeFactory* factory);
// To be called during parsing. Do just enough scope analysis that we can
// discard the Scope for lazily compiled functions. In particular, this
@@ -903,7 +899,6 @@ class DeclarationScope : public Scope {
Variable* this_function_;
// Module descriptor; module scopes only.
ModuleDescriptor* module_descriptor_;
- PendingCompilationErrorHandler pending_error_handler_;
};
} // namespace internal
« 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