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

Side by Side Diff: src/parser.h

Issue 939063002: [strong] Deprecate for-in (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/messages.js ('k') | src/parser.cc » ('j') | src/parser.cc » ('J')
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_PARSER_H_ 5 #ifndef V8_PARSER_H_
6 #define V8_PARSER_H_ 6 #define V8_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/compiler.h" // For CachedDataMode 10 #include "src/compiler.h" // For CachedDataMode
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 774
775 775
776 ClassLiteral* ParseClassLiteral(const AstRawString* name, 776 ClassLiteral* ParseClassLiteral(const AstRawString* name,
777 Scanner::Location class_name_location, 777 Scanner::Location class_name_location,
778 bool name_is_strict_reserved, int pos, 778 bool name_is_strict_reserved, int pos,
779 bool* ok); 779 bool* ok);
780 780
781 // Magical syntax support. 781 // Magical syntax support.
782 Expression* ParseV8Intrinsic(bool* ok); 782 Expression* ParseV8Intrinsic(bool* ok);
783 783
784 bool CheckInOrOf(bool accept_OF, ForEachStatement::VisitMode* visit_mode); 784 bool CheckInOrOf(bool accept_OF, ForEachStatement::VisitMode* visit_mode,
785 bool* ok);
785 786
786 // Get odd-ball literals. 787 // Get odd-ball literals.
787 Literal* GetLiteralUndefined(int position); 788 Literal* GetLiteralUndefined(int position);
788 789
789 // For harmony block scoping mode: Check if the scope has conflicting var/let 790 // For harmony block scoping mode: Check if the scope has conflicting var/let
790 // declarations from different scopes. It covers for example 791 // declarations from different scopes. It covers for example
791 // 792 //
792 // function f() { { { var x; } let x; } } 793 // function f() { { { var x; } let x; } }
793 // function g() { { var x; let x; } } 794 // function g() { { var x; let x; } }
794 // 795 //
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 } 948 }
948 949
949 950
950 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, 951 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state,
951 int start, Expression* tag) { 952 int start, Expression* tag) {
952 return parser_->CloseTemplateLiteral(state, start, tag); 953 return parser_->CloseTemplateLiteral(state, start, tag);
953 } 954 }
954 } } // namespace v8::internal 955 } } // namespace v8::internal
955 956
956 #endif // V8_PARSER_H_ 957 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/parser.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698