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

Side by Side Diff: src/parsing/parser.h

Issue 2411873004: [ignition] Eliminate hole checks where statically possible for loads and stores (Closed)
Patch Set: Rebased Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSING_PARSER_H_ 5 #ifndef V8_PARSING_PARSER_H_
6 #define V8_PARSING_PARSER_H_ 6 #define V8_PARSING_PARSER_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/base/compiler-specific.h" 10 #include "src/base/compiler-specific.h"
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 VariableKind kind = NORMAL_VARIABLE); 467 VariableKind kind = NORMAL_VARIABLE);
468 VariableProxy* NewUnresolved(const AstRawString* name); 468 VariableProxy* NewUnresolved(const AstRawString* name);
469 Variable* Declare(Declaration* declaration, 469 Variable* Declare(Declaration* declaration,
470 DeclarationDescriptor::Kind declaration_kind, 470 DeclarationDescriptor::Kind declaration_kind,
471 VariableMode mode, InitializationFlag init, bool* ok, 471 VariableMode mode, InitializationFlag init, bool* ok,
472 Scope* declaration_scope = nullptr); 472 Scope* declaration_scope = nullptr);
473 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, 473 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode,
474 int pos, bool* ok); 474 int pos, bool* ok);
475 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, 475 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode,
476 InitializationFlag init, int pos, bool* ok); 476 InitializationFlag init, int pos, bool* ok);
477 Declaration* DeclareModuleImport(const AstRawString* name, int pos, bool* ok);
477 478
478 bool TargetStackContainsLabel(const AstRawString* label); 479 bool TargetStackContainsLabel(const AstRawString* label);
479 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok); 480 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok);
480 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok); 481 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok);
481 482
482 Statement* BuildAssertIsCoercible(Variable* var); 483 Statement* BuildAssertIsCoercible(Variable* var);
483 484
484 // Factory methods. 485 // Factory methods.
485 FunctionLiteral* DefaultConstructor(const AstRawString* name, bool call_super, 486 FunctionLiteral* DefaultConstructor(const AstRawString* name, bool call_super,
486 bool requires_class_field_init, int pos, 487 bool requires_class_field_init, int pos,
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 1143
1143 private: 1144 private:
1144 ParserTarget** variable_; 1145 ParserTarget** variable_;
1145 ParserTarget* previous_; 1146 ParserTarget* previous_;
1146 }; 1147 };
1147 1148
1148 } // namespace internal 1149 } // namespace internal
1149 } // namespace v8 1150 } // namespace v8
1150 1151
1151 #endif // V8_PARSING_PARSER_H_ 1152 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698