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

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

Issue 1734243004: Remove strong mode support from materialized literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Test expectations. Created 4 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/parsing/pattern-rewriter.cc ('k') | src/runtime/runtime.h » ('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_PREPARSER_H 5 #ifndef V8_PARSING_PREPARSER_H
6 #define V8_PARSING_PREPARSER_H 6 #define V8_PARSING_PREPARSER_H
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 PreParserExpression NewStringLiteral(PreParserIdentifier identifier, 417 PreParserExpression NewStringLiteral(PreParserIdentifier identifier,
418 int pos) { 418 int pos) {
419 return PreParserExpression::Default(); 419 return PreParserExpression::Default();
420 } 420 }
421 PreParserExpression NewNumberLiteral(double number, 421 PreParserExpression NewNumberLiteral(double number,
422 int pos) { 422 int pos) {
423 return PreParserExpression::Default(); 423 return PreParserExpression::Default();
424 } 424 }
425 PreParserExpression NewRegExpLiteral(PreParserIdentifier js_pattern, 425 PreParserExpression NewRegExpLiteral(PreParserIdentifier js_pattern,
426 int js_flags, int literal_index, 426 int js_flags, int literal_index,
427 bool is_strong, int pos) { 427 int pos) {
428 return PreParserExpression::Default(); 428 return PreParserExpression::Default();
429 } 429 }
430 PreParserExpression NewArrayLiteral(PreParserExpressionList values, 430 PreParserExpression NewArrayLiteral(PreParserExpressionList values,
431 int literal_index, 431 int literal_index,
432 bool is_strong,
433 int pos) { 432 int pos) {
434 return PreParserExpression::ArrayLiteral(); 433 return PreParserExpression::ArrayLiteral();
435 } 434 }
436 PreParserExpression NewArrayLiteral(PreParserExpressionList values, 435 PreParserExpression NewArrayLiteral(PreParserExpressionList values,
437 int first_spread_index, int literal_index, 436 int first_spread_index, int literal_index,
438 bool is_strong, int pos) { 437 int pos) {
439 return PreParserExpression::ArrayLiteral(); 438 return PreParserExpression::ArrayLiteral();
440 } 439 }
441 PreParserExpression NewObjectLiteralProperty(PreParserExpression key, 440 PreParserExpression NewObjectLiteralProperty(PreParserExpression key,
442 PreParserExpression value, 441 PreParserExpression value,
443 ObjectLiteralProperty::Kind kind, 442 ObjectLiteralProperty::Kind kind,
444 bool is_static, 443 bool is_static,
445 bool is_computed_name) { 444 bool is_computed_name) {
446 return PreParserExpression::Default(); 445 return PreParserExpression::Default();
447 } 446 }
448 PreParserExpression NewObjectLiteralProperty(PreParserExpression key, 447 PreParserExpression NewObjectLiteralProperty(PreParserExpression key,
449 PreParserExpression value, 448 PreParserExpression value,
450 bool is_static, 449 bool is_static,
451 bool is_computed_name) { 450 bool is_computed_name) {
452 return PreParserExpression::Default(); 451 return PreParserExpression::Default();
453 } 452 }
454 PreParserExpression NewObjectLiteral(PreParserExpressionList properties, 453 PreParserExpression NewObjectLiteral(PreParserExpressionList properties,
455 int literal_index, 454 int literal_index,
456 int boilerplate_properties, 455 int boilerplate_properties,
457 bool has_function, 456 bool has_function,
458 bool is_strong,
459 int pos) { 457 int pos) {
460 return PreParserExpression::ObjectLiteral(); 458 return PreParserExpression::ObjectLiteral();
461 } 459 }
462 PreParserExpression NewVariableProxy(void* variable) { 460 PreParserExpression NewVariableProxy(void* variable) {
463 return PreParserExpression::Default(); 461 return PreParserExpression::Default();
464 } 462 }
465 PreParserExpression NewProperty(PreParserExpression obj, 463 PreParserExpression NewProperty(PreParserExpression obj,
466 PreParserExpression key, 464 PreParserExpression key,
467 int pos) { 465 int pos) {
468 if (obj.IsThis()) { 466 if (obj.IsThis()) {
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 const PreParserFormalParameters& parameters, FunctionKind kind, 1167 const PreParserFormalParameters& parameters, FunctionKind kind,
1170 FunctionLiteral::FunctionType function_type, bool* ok) { 1168 FunctionLiteral::FunctionType function_type, bool* ok) {
1171 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1169 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1172 kind, function_type, ok); 1170 kind, function_type, ok);
1173 } 1171 }
1174 1172
1175 } // namespace internal 1173 } // namespace internal
1176 } // namespace v8 1174 } // namespace v8
1177 1175
1178 #endif // V8_PARSING_PREPARSER_H 1176 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698