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

Side by Side Diff: src/parser.h

Issue 1429173002: Add strict mode, sloppy mode and strong mode UseCounters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: RaiseLanguageMode 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 unified diff | Download patch
« no previous file with comments | « include/v8.h ('k') | src/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_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" // TODO(titzer): remove this include dependency 10 #include "src/compiler.h" // TODO(titzer): remove this include dependency
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 Expression* tag); 1193 Expression* tag);
1194 uint32_t ComputeTemplateLiteralHash(const TemplateLiteral* lit); 1194 uint32_t ComputeTemplateLiteralHash(const TemplateLiteral* lit);
1195 1195
1196 ZoneList<v8::internal::Expression*>* PrepareSpreadArguments( 1196 ZoneList<v8::internal::Expression*>* PrepareSpreadArguments(
1197 ZoneList<v8::internal::Expression*>* list); 1197 ZoneList<v8::internal::Expression*>* list);
1198 Expression* SpreadCall(Expression* function, 1198 Expression* SpreadCall(Expression* function,
1199 ZoneList<v8::internal::Expression*>* args, int pos); 1199 ZoneList<v8::internal::Expression*>* args, int pos);
1200 Expression* SpreadCallNew(Expression* function, 1200 Expression* SpreadCallNew(Expression* function,
1201 ZoneList<v8::internal::Expression*>* args, int pos); 1201 ZoneList<v8::internal::Expression*>* args, int pos);
1202 1202
1203 void SetLanguageMode(Scope* scope, LanguageMode mode);
1204 void RaiseLanguageMode(LanguageMode mode);
1205
1203 Scanner scanner_; 1206 Scanner scanner_;
1204 PreParser* reusable_preparser_; 1207 PreParser* reusable_preparser_;
1205 Scope* original_scope_; // for ES5 function declarations in sloppy eval 1208 Scope* original_scope_; // for ES5 function declarations in sloppy eval
1206 Target* target_stack_; // for break, continue statements 1209 Target* target_stack_; // for break, continue statements
1207 ScriptCompiler::CompileOptions compile_options_; 1210 ScriptCompiler::CompileOptions compile_options_;
1208 ParseData* cached_parse_data_; 1211 ParseData* cached_parse_data_;
1209 1212
1210 PendingCompilationErrorHandler pending_error_handler_; 1213 PendingCompilationErrorHandler pending_error_handler_;
1211 1214
1212 // Other information which will be stored in Parser and moved to Isolate after 1215 // Other information which will be stored in Parser and moved to Isolate after
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 1388
1386 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1389 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1387 return parser_->ParseDoExpression(ok); 1390 return parser_->ParseDoExpression(ok);
1388 } 1391 }
1389 1392
1390 1393
1391 } // namespace internal 1394 } // namespace internal
1392 } // namespace v8 1395 } // namespace v8
1393 1396
1394 #endif // V8_PARSER_H_ 1397 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698