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

Side by Side Diff: src/parser.cc

Issue 1273543002: Delete --harmony-computed-property-names flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 5 years, 4 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/flag-definitions.h ('k') | src/preparser.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/ast.h" 8 #include "src/ast.h"
9 #include "src/ast-literal-reindexer.h" 9 #include "src/ast-literal-reindexer.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 parsing_on_main_thread_(true) { 906 parsing_on_main_thread_(true) {
907 // Even though we were passed ParseInfo, we should not store it in 907 // Even though we were passed ParseInfo, we should not store it in
908 // Parser - this makes sure that Isolate is not accidentally accessed via 908 // Parser - this makes sure that Isolate is not accidentally accessed via
909 // ParseInfo during background parsing. 909 // ParseInfo during background parsing.
910 DCHECK(!info->script().is_null() || info->source_stream() != NULL); 910 DCHECK(!info->script().is_null() || info->source_stream() != NULL);
911 set_allow_lazy(info->allow_lazy_parsing()); 911 set_allow_lazy(info->allow_lazy_parsing());
912 set_allow_natives(FLAG_allow_natives_syntax || info->is_native()); 912 set_allow_natives(FLAG_allow_natives_syntax || info->is_native());
913 set_allow_harmony_arrow_functions(FLAG_harmony_arrow_functions); 913 set_allow_harmony_arrow_functions(FLAG_harmony_arrow_functions);
914 set_allow_harmony_sloppy(FLAG_harmony_sloppy); 914 set_allow_harmony_sloppy(FLAG_harmony_sloppy);
915 set_allow_harmony_sloppy_let(FLAG_harmony_sloppy_let); 915 set_allow_harmony_sloppy_let(FLAG_harmony_sloppy_let);
916 set_allow_harmony_computed_property_names(
917 FLAG_harmony_computed_property_names);
918 set_allow_harmony_rest_parameters(FLAG_harmony_rest_parameters); 916 set_allow_harmony_rest_parameters(FLAG_harmony_rest_parameters);
919 set_allow_harmony_spreadcalls(FLAG_harmony_spreadcalls); 917 set_allow_harmony_spreadcalls(FLAG_harmony_spreadcalls);
920 set_allow_harmony_destructuring(FLAG_harmony_destructuring); 918 set_allow_harmony_destructuring(FLAG_harmony_destructuring);
921 set_allow_harmony_spread_arrays(FLAG_harmony_spread_arrays); 919 set_allow_harmony_spread_arrays(FLAG_harmony_spread_arrays);
922 set_allow_harmony_new_target(FLAG_harmony_new_target); 920 set_allow_harmony_new_target(FLAG_harmony_new_target);
923 set_allow_strong_mode(FLAG_strong_mode); 921 set_allow_strong_mode(FLAG_strong_mode);
924 set_allow_legacy_const(FLAG_legacy_const); 922 set_allow_legacy_const(FLAG_legacy_const);
925 for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount; 923 for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount;
926 ++feature) { 924 ++feature) {
927 use_counts_[feature] = 0; 925 use_counts_[feature] = 0;
(...skipping 3557 matching lines...) Expand 10 before | Expand all | Expand 10 after
4485 4483
4486 if (reusable_preparser_ == NULL) { 4484 if (reusable_preparser_ == NULL) {
4487 reusable_preparser_ = new PreParser(zone(), &scanner_, ast_value_factory(), 4485 reusable_preparser_ = new PreParser(zone(), &scanner_, ast_value_factory(),
4488 NULL, stack_limit_); 4486 NULL, stack_limit_);
4489 reusable_preparser_->set_allow_lazy(true); 4487 reusable_preparser_->set_allow_lazy(true);
4490 #define SET_ALLOW(name) reusable_preparser_->set_allow_##name(allow_##name()); 4488 #define SET_ALLOW(name) reusable_preparser_->set_allow_##name(allow_##name());
4491 SET_ALLOW(natives); 4489 SET_ALLOW(natives);
4492 SET_ALLOW(harmony_arrow_functions); 4490 SET_ALLOW(harmony_arrow_functions);
4493 SET_ALLOW(harmony_sloppy); 4491 SET_ALLOW(harmony_sloppy);
4494 SET_ALLOW(harmony_sloppy_let); 4492 SET_ALLOW(harmony_sloppy_let);
4495 SET_ALLOW(harmony_computed_property_names);
4496 SET_ALLOW(harmony_rest_parameters); 4493 SET_ALLOW(harmony_rest_parameters);
4497 SET_ALLOW(harmony_spreadcalls); 4494 SET_ALLOW(harmony_spreadcalls);
4498 SET_ALLOW(harmony_destructuring); 4495 SET_ALLOW(harmony_destructuring);
4499 SET_ALLOW(harmony_spread_arrays); 4496 SET_ALLOW(harmony_spread_arrays);
4500 SET_ALLOW(harmony_new_target); 4497 SET_ALLOW(harmony_new_target);
4501 SET_ALLOW(strong_mode); 4498 SET_ALLOW(strong_mode);
4502 #undef SET_ALLOW 4499 #undef SET_ALLOW
4503 } 4500 }
4504 PreParser::PreParseResult result = reusable_preparser_->PreParseLazyFunction( 4501 PreParser::PreParseResult result = reusable_preparser_->PreParseLazyFunction(
4505 language_mode(), function_state_->kind(), logger, bookmark); 4502 language_mode(), function_state_->kind(), logger, bookmark);
(...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after
6012 Expression* Parser::SpreadCallNew(Expression* function, 6009 Expression* Parser::SpreadCallNew(Expression* function,
6013 ZoneList<v8::internal::Expression*>* args, 6010 ZoneList<v8::internal::Expression*>* args,
6014 int pos) { 6011 int pos) {
6015 args->InsertAt(0, function, zone()); 6012 args->InsertAt(0, function, zone());
6016 6013
6017 return factory()->NewCallRuntime( 6014 return factory()->NewCallRuntime(
6018 ast_value_factory()->reflect_construct_string(), NULL, args, pos); 6015 ast_value_factory()->reflect_construct_string(), NULL, args, pos);
6019 } 6016 }
6020 } // namespace internal 6017 } // namespace internal
6021 } // namespace v8 6018 } // namespace v8
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698