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

Side by Side Diff: src/parser.cc

Issue 150943008: Move parenthesized_function_ to ParserBase. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/parser.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 script_(info->script()), 636 script_(info->script()),
637 scanner_(isolate_->unicode_cache()), 637 scanner_(isolate_->unicode_cache()),
638 reusable_preparser_(NULL), 638 reusable_preparser_(NULL),
639 top_scope_(NULL), 639 top_scope_(NULL),
640 original_scope_(NULL), 640 original_scope_(NULL),
641 current_function_state_(NULL), 641 current_function_state_(NULL),
642 target_stack_(NULL), 642 target_stack_(NULL),
643 extension_(info->extension()), 643 extension_(info->extension()),
644 pre_parse_data_(NULL), 644 pre_parse_data_(NULL),
645 fni_(NULL), 645 fni_(NULL),
646 parenthesized_function_(false),
647 zone_(info->zone()), 646 zone_(info->zone()),
648 info_(info) { 647 info_(info) {
649 ASSERT(!script_.is_null()); 648 ASSERT(!script_.is_null());
650 isolate_->set_ast_node_id(0); 649 isolate_->set_ast_node_id(0);
651 set_allow_harmony_scoping(!info->is_native() && FLAG_harmony_scoping); 650 set_allow_harmony_scoping(!info->is_native() && FLAG_harmony_scoping);
652 set_allow_modules(!info->is_native() && FLAG_harmony_modules); 651 set_allow_modules(!info->is_native() && FLAG_harmony_modules);
653 set_allow_natives_syntax(FLAG_allow_natives_syntax || info->is_native()); 652 set_allow_natives_syntax(FLAG_allow_natives_syntax || info->is_native());
654 set_allow_lazy(false); // Must be explicitly enabled. 653 set_allow_lazy(false); // Must be explicitly enabled.
655 set_allow_generators(FLAG_harmony_generators); 654 set_allow_generators(FLAG_harmony_generators);
656 set_allow_for_of(FLAG_harmony_iteration); 655 set_allow_for_of(FLAG_harmony_iteration);
(...skipping 4869 matching lines...) Expand 10 before | Expand all | Expand 10 after
5526 ASSERT(info()->isolate()->has_pending_exception()); 5525 ASSERT(info()->isolate()->has_pending_exception());
5527 } else { 5526 } else {
5528 result = ParseProgram(); 5527 result = ParseProgram();
5529 } 5528 }
5530 } 5529 }
5531 info()->SetFunction(result); 5530 info()->SetFunction(result);
5532 return (result != NULL); 5531 return (result != NULL);
5533 } 5532 }
5534 5533
5535 } } // namespace v8::internal 5534 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/parser.h ('k') | src/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698