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

Side by Side Diff: src/parser.cc

Issue 1027593005: [es6] remove --harmony-templates flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove extra references to harmony-templates stuff Created 5 years, 9 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/harmony-templates.js ('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/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 // Parser - this makes sure that Isolate is not accidentally accessed via 868 // Parser - this makes sure that Isolate is not accidentally accessed via
869 // ParseInfo during background parsing. 869 // ParseInfo during background parsing.
870 DCHECK(!info->script().is_null() || info->source_stream() != NULL); 870 DCHECK(!info->script().is_null() || info->source_stream() != NULL);
871 set_allow_lazy(info->allow_lazy_parsing()); 871 set_allow_lazy(info->allow_lazy_parsing());
872 set_allow_natives(FLAG_allow_natives_syntax || info->is_native()); 872 set_allow_natives(FLAG_allow_natives_syntax || info->is_native());
873 set_allow_harmony_modules(!info->is_native() && FLAG_harmony_modules); 873 set_allow_harmony_modules(!info->is_native() && FLAG_harmony_modules);
874 set_allow_harmony_arrow_functions(FLAG_harmony_arrow_functions); 874 set_allow_harmony_arrow_functions(FLAG_harmony_arrow_functions);
875 set_allow_harmony_numeric_literals(FLAG_harmony_numeric_literals); 875 set_allow_harmony_numeric_literals(FLAG_harmony_numeric_literals);
876 set_allow_harmony_classes(FLAG_harmony_classes); 876 set_allow_harmony_classes(FLAG_harmony_classes);
877 set_allow_harmony_object_literals(FLAG_harmony_object_literals); 877 set_allow_harmony_object_literals(FLAG_harmony_object_literals);
878 set_allow_harmony_templates(FLAG_harmony_templates);
879 set_allow_harmony_sloppy(FLAG_harmony_sloppy); 878 set_allow_harmony_sloppy(FLAG_harmony_sloppy);
880 set_allow_harmony_unicode(FLAG_harmony_unicode); 879 set_allow_harmony_unicode(FLAG_harmony_unicode);
881 set_allow_harmony_computed_property_names( 880 set_allow_harmony_computed_property_names(
882 FLAG_harmony_computed_property_names); 881 FLAG_harmony_computed_property_names);
883 set_allow_harmony_rest_params(FLAG_harmony_rest_parameters); 882 set_allow_harmony_rest_params(FLAG_harmony_rest_parameters);
884 set_allow_strong_mode(FLAG_strong_mode); 883 set_allow_strong_mode(FLAG_strong_mode);
885 for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount; 884 for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount;
886 ++feature) { 885 ++feature) {
887 use_counts_[feature] = 0; 886 use_counts_[feature] = 0;
888 } 887 }
(...skipping 3277 matching lines...) Expand 10 before | Expand all | Expand 10 after
4166 reusable_preparser_->set_allow_lazy(true); 4165 reusable_preparser_->set_allow_lazy(true);
4167 reusable_preparser_->set_allow_natives(allow_natives()); 4166 reusable_preparser_->set_allow_natives(allow_natives());
4168 reusable_preparser_->set_allow_harmony_modules(allow_harmony_modules()); 4167 reusable_preparser_->set_allow_harmony_modules(allow_harmony_modules());
4169 reusable_preparser_->set_allow_harmony_arrow_functions( 4168 reusable_preparser_->set_allow_harmony_arrow_functions(
4170 allow_harmony_arrow_functions()); 4169 allow_harmony_arrow_functions());
4171 reusable_preparser_->set_allow_harmony_numeric_literals( 4170 reusable_preparser_->set_allow_harmony_numeric_literals(
4172 allow_harmony_numeric_literals()); 4171 allow_harmony_numeric_literals());
4173 reusable_preparser_->set_allow_harmony_classes(allow_harmony_classes()); 4172 reusable_preparser_->set_allow_harmony_classes(allow_harmony_classes());
4174 reusable_preparser_->set_allow_harmony_object_literals( 4173 reusable_preparser_->set_allow_harmony_object_literals(
4175 allow_harmony_object_literals()); 4174 allow_harmony_object_literals());
4176 reusable_preparser_->set_allow_harmony_templates(allow_harmony_templates());
4177 reusable_preparser_->set_allow_harmony_sloppy(allow_harmony_sloppy()); 4175 reusable_preparser_->set_allow_harmony_sloppy(allow_harmony_sloppy());
4178 reusable_preparser_->set_allow_harmony_unicode(allow_harmony_unicode()); 4176 reusable_preparser_->set_allow_harmony_unicode(allow_harmony_unicode());
4179 reusable_preparser_->set_allow_harmony_computed_property_names( 4177 reusable_preparser_->set_allow_harmony_computed_property_names(
4180 allow_harmony_computed_property_names()); 4178 allow_harmony_computed_property_names());
4181 reusable_preparser_->set_allow_harmony_rest_params( 4179 reusable_preparser_->set_allow_harmony_rest_params(
4182 allow_harmony_rest_params()); 4180 allow_harmony_rest_params());
4183 reusable_preparser_->set_allow_strong_mode(allow_strong_mode()); 4181 reusable_preparser_->set_allow_strong_mode(allow_strong_mode());
4184 } 4182 }
4185 PreParser::PreParseResult result = reusable_preparser_->PreParseLazyFunction( 4183 PreParser::PreParseResult result = reusable_preparser_->PreParseLazyFunction(
4186 language_mode(), function_state_->kind(), logger); 4184 language_mode(), function_state_->kind(), logger);
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
5560 } else { 5558 } else {
5561 const uc16* data = reinterpret_cast<const uc16*>(raw_string->raw_data()); 5559 const uc16* data = reinterpret_cast<const uc16*>(raw_string->raw_data());
5562 running_hash = StringHasher::ComputeRunningHash(running_hash, data, 5560 running_hash = StringHasher::ComputeRunningHash(running_hash, data,
5563 raw_string->length()); 5561 raw_string->length());
5564 } 5562 }
5565 } 5563 }
5566 5564
5567 return running_hash; 5565 return running_hash;
5568 } 5566 }
5569 } } // namespace v8::internal 5567 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/harmony-templates.js ('k') | src/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698