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

Side by Side Diff: src/parsing/parser.cc

Issue 1702853002: [cleanup] add Parser accessors for FLAG_harmony_function_sent (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | src/parsing/parser-base.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/parsing/parser.h" 5 #include "src/parsing/parser.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/ast-expression-rewriter.h" 9 #include "src/ast/ast-expression-rewriter.h"
10 #include "src/ast/ast-expression-visitor.h" 10 #include "src/ast/ast-expression-visitor.h"
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 set_allow_harmony_sloppy_function(FLAG_harmony_sloppy_function); 766 set_allow_harmony_sloppy_function(FLAG_harmony_sloppy_function);
767 set_allow_harmony_sloppy_let(FLAG_harmony_sloppy_let); 767 set_allow_harmony_sloppy_let(FLAG_harmony_sloppy_let);
768 set_allow_harmony_default_parameters(FLAG_harmony_default_parameters); 768 set_allow_harmony_default_parameters(FLAG_harmony_default_parameters);
769 set_allow_harmony_destructuring_bind(FLAG_harmony_destructuring_bind); 769 set_allow_harmony_destructuring_bind(FLAG_harmony_destructuring_bind);
770 set_allow_harmony_destructuring_assignment( 770 set_allow_harmony_destructuring_assignment(
771 FLAG_harmony_destructuring_assignment); 771 FLAG_harmony_destructuring_assignment);
772 set_allow_strong_mode(FLAG_strong_mode); 772 set_allow_strong_mode(FLAG_strong_mode);
773 set_allow_legacy_const(FLAG_legacy_const); 773 set_allow_legacy_const(FLAG_legacy_const);
774 set_allow_harmony_do_expressions(FLAG_harmony_do_expressions); 774 set_allow_harmony_do_expressions(FLAG_harmony_do_expressions);
775 set_allow_harmony_function_name(FLAG_harmony_function_name); 775 set_allow_harmony_function_name(FLAG_harmony_function_name);
776 set_allow_harmony_function_sent(FLAG_harmony_function_sent);
776 for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount; 777 for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount;
777 ++feature) { 778 ++feature) {
778 use_counts_[feature] = 0; 779 use_counts_[feature] = 0;
779 } 780 }
780 if (info->ast_value_factory() == NULL) { 781 if (info->ast_value_factory() == NULL) {
781 // info takes ownership of AstValueFactory. 782 // info takes ownership of AstValueFactory.
782 info->set_ast_value_factory(new AstValueFactory(zone(), info->hash_seed())); 783 info->set_ast_value_factory(new AstValueFactory(zone(), info->hash_seed()));
783 info->set_ast_value_factory_owned(); 784 info->set_ast_value_factory_owned();
784 ast_value_factory_ = info->ast_value_factory(); 785 ast_value_factory_ = info->ast_value_factory();
785 } 786 }
(...skipping 4060 matching lines...) Expand 10 before | Expand all | Expand 10 after
4846 #define SET_ALLOW(name) reusable_preparser_->set_allow_##name(allow_##name()); 4847 #define SET_ALLOW(name) reusable_preparser_->set_allow_##name(allow_##name());
4847 SET_ALLOW(natives); 4848 SET_ALLOW(natives);
4848 SET_ALLOW(harmony_sloppy); 4849 SET_ALLOW(harmony_sloppy);
4849 SET_ALLOW(harmony_sloppy_let); 4850 SET_ALLOW(harmony_sloppy_let);
4850 SET_ALLOW(harmony_default_parameters); 4851 SET_ALLOW(harmony_default_parameters);
4851 SET_ALLOW(harmony_destructuring_bind); 4852 SET_ALLOW(harmony_destructuring_bind);
4852 SET_ALLOW(harmony_destructuring_assignment); 4853 SET_ALLOW(harmony_destructuring_assignment);
4853 SET_ALLOW(strong_mode); 4854 SET_ALLOW(strong_mode);
4854 SET_ALLOW(harmony_do_expressions); 4855 SET_ALLOW(harmony_do_expressions);
4855 SET_ALLOW(harmony_function_name); 4856 SET_ALLOW(harmony_function_name);
4857 SET_ALLOW(harmony_function_sent);
4856 #undef SET_ALLOW 4858 #undef SET_ALLOW
4857 } 4859 }
4858 PreParser::PreParseResult result = reusable_preparser_->PreParseLazyFunction( 4860 PreParser::PreParseResult result = reusable_preparser_->PreParseLazyFunction(
4859 language_mode(), function_state_->kind(), scope_->has_simple_parameters(), 4861 language_mode(), function_state_->kind(), scope_->has_simple_parameters(),
4860 logger, bookmark); 4862 logger, bookmark);
4861 if (pre_parse_timer_ != NULL) { 4863 if (pre_parse_timer_ != NULL) {
4862 pre_parse_timer_->Stop(); 4864 pre_parse_timer_->Stop();
4863 } 4865 }
4864 return result; 4866 return result;
4865 } 4867 }
(...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after
6399 6401
6400 statements->Add(get_return, zone); 6402 statements->Add(get_return, zone);
6401 statements->Add(check_return, zone); 6403 statements->Add(check_return, zone);
6402 statements->Add(call_return, zone); 6404 statements->Add(call_return, zone);
6403 statements->Add(validate_output, zone); 6405 statements->Add(validate_output, zone);
6404 } 6406 }
6405 6407
6406 6408
6407 } // namespace internal 6409 } // namespace internal
6408 } // namespace v8 6410 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser-base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698