| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |