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

Side by Side Diff: src/parser.h

Issue 9352013: Extend scanner with new Harmony module keywords (under flag). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 Scope* top_scope_; 755 Scope* top_scope_;
756 FunctionState* current_function_state_; 756 FunctionState* current_function_state_;
757 Target* target_stack_; // for break, continue statements 757 Target* target_stack_; // for break, continue statements
758 v8::Extension* extension_; 758 v8::Extension* extension_;
759 ScriptDataImpl* pre_data_; 759 ScriptDataImpl* pre_data_;
760 FuncNameInferrer* fni_; 760 FuncNameInferrer* fni_;
761 761
762 Mode mode_; 762 Mode mode_;
763 bool allow_natives_syntax_; 763 bool allow_natives_syntax_;
764 bool allow_lazy_; 764 bool allow_lazy_;
765 bool allow_modules_;
765 bool stack_overflow_; 766 bool stack_overflow_;
766 // If true, the next (and immediately following) function literal is 767 // If true, the next (and immediately following) function literal is
767 // preceded by a parenthesis. 768 // preceded by a parenthesis.
768 // Heuristically that means that the function will be called immediately, 769 // Heuristically that means that the function will be called immediately,
769 // so never lazily compile it. 770 // so never lazily compile it.
770 bool parenthesized_function_; 771 bool parenthesized_function_;
771 772
772 friend class BlockState; 773 friend class BlockState;
773 friend class FunctionState; 774 friend class FunctionState;
774 }; 775 };
(...skipping 25 matching lines...) Expand all
800 private: 801 private:
801 static const int kTypeSlot = 0; 802 static const int kTypeSlot = 0;
802 static const int kElementsSlot = 1; 803 static const int kElementsSlot = 1;
803 804
804 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 805 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
805 }; 806 };
806 807
807 } } // namespace v8::internal 808 } } // namespace v8::internal
808 809
809 #endif // V8_PARSER_H_ 810 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/parser.cc » ('j') | src/scanner.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698