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

Side by Side Diff: src/parser.cc

Issue 471603004: Pass allow_classes to reusable_preparser (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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/base/platform/platform.h" 9 #include "src/base/platform/platform.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 3731 matching lines...) Expand 10 before | Expand all | Expand 10 after
3742 intptr_t stack_limit = isolate()->stack_guard()->real_climit(); 3742 intptr_t stack_limit = isolate()->stack_guard()->real_climit();
3743 reusable_preparser_ = new PreParser(&scanner_, NULL, stack_limit); 3743 reusable_preparser_ = new PreParser(&scanner_, NULL, stack_limit);
3744 reusable_preparser_->set_allow_harmony_scoping(allow_harmony_scoping()); 3744 reusable_preparser_->set_allow_harmony_scoping(allow_harmony_scoping());
3745 reusable_preparser_->set_allow_modules(allow_modules()); 3745 reusable_preparser_->set_allow_modules(allow_modules());
3746 reusable_preparser_->set_allow_natives_syntax(allow_natives_syntax()); 3746 reusable_preparser_->set_allow_natives_syntax(allow_natives_syntax());
3747 reusable_preparser_->set_allow_lazy(true); 3747 reusable_preparser_->set_allow_lazy(true);
3748 reusable_preparser_->set_allow_generators(allow_generators()); 3748 reusable_preparser_->set_allow_generators(allow_generators());
3749 reusable_preparser_->set_allow_arrow_functions(allow_arrow_functions()); 3749 reusable_preparser_->set_allow_arrow_functions(allow_arrow_functions());
3750 reusable_preparser_->set_allow_harmony_numeric_literals( 3750 reusable_preparser_->set_allow_harmony_numeric_literals(
3751 allow_harmony_numeric_literals()); 3751 allow_harmony_numeric_literals());
3752 reusable_preparser_->set_allow_classes(allow_classes());
3752 } 3753 }
3753 PreParser::PreParseResult result = 3754 PreParser::PreParseResult result =
3754 reusable_preparser_->PreParseLazyFunction(strict_mode(), 3755 reusable_preparser_->PreParseLazyFunction(strict_mode(),
3755 is_generator(), 3756 is_generator(),
3756 logger); 3757 logger);
3757 return result; 3758 return result;
3758 } 3759 }
3759 3760
3760 3761
3761 Expression* Parser::ParseV8Intrinsic(bool* ok) { 3762 Expression* Parser::ParseV8Intrinsic(bool* ok) {
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
4809 info()->SetAstValueFactory(ast_value_factory_); 4810 info()->SetAstValueFactory(ast_value_factory_);
4810 } 4811 }
4811 ast_value_factory_ = NULL; 4812 ast_value_factory_ = NULL;
4812 4813
4813 InternalizeUseCounts(); 4814 InternalizeUseCounts();
4814 4815
4815 return (result != NULL); 4816 return (result != NULL);
4816 } 4817 }
4817 4818
4818 } } // namespace v8::internal 4819 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698