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

Unified Diff: src/parsing/parser.h

Issue 1487603003: [cleanup] Remove redundant fields from DeclarationDescriptor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/parsing/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index 1ff58572f3f266f9f0b1c17901ca680da33c9152..f865074c7911f82fb1e8ecba3b60f88a921c47f1 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -955,10 +955,6 @@ class Parser : public ParserBase<ParserTraits> {
bool produce_cached_parse_data() const {
return compile_options_ == ScriptCompiler::kProduceParserCache;
}
- Scope* DeclarationScope(VariableMode mode) {
- return IsLexicalVariableMode(mode)
- ? scope_ : scope_->DeclarationScope();
- }
// All ParseXXX functions take as the last argument an *ok parameter
// which is set to false if parsing failed; it is unchanged otherwise.
@@ -995,11 +991,9 @@ class Parser : public ParserBase<ParserTraits> {
struct DeclarationDescriptor {
enum Kind { NORMAL, PARAMETER };
Parser* parser;
- Scope* declaration_scope;
Scope* scope;
Scope* hoist_scope;
VariableMode mode;
- bool is_const;
bool needs_init;
int declaration_pos;
int initialization_pos;
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698