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

Side by Side Diff: src/parser.h

Issue 206283002: Increase the "local variables in a function" limit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 bool allow_lazy = false) { 611 bool allow_lazy = false) {
612 Parser parser(info); 612 Parser parser(info);
613 parser.set_allow_lazy(allow_lazy); 613 parser.set_allow_lazy(allow_lazy);
614 return parser.Parse(); 614 return parser.Parse();
615 } 615 }
616 bool Parse(); 616 bool Parse();
617 617
618 private: 618 private:
619 friend class ParserTraits; 619 friend class ParserTraits;
620 620
621 static const int kMaxNumFunctionLocals = 131071; // 2^17-1 621 // Nobody really knows why we need this limit. :(
622 static const int kMaxNumFunctionLocals = 262143; // 2^18-1
622 623
623 enum Mode { 624 enum Mode {
624 PARSE_LAZILY, 625 PARSE_LAZILY,
625 PARSE_EAGERLY 626 PARSE_EAGERLY
626 }; 627 };
627 628
628 enum VariableDeclarationContext { 629 enum VariableDeclarationContext {
629 kModuleElement, 630 kModuleElement,
630 kBlockElement, 631 kBlockElement,
631 kStatement, 632 kStatement,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 private: 865 private:
865 static const int kLiteralTypeSlot = 0; 866 static const int kLiteralTypeSlot = 0;
866 static const int kElementsSlot = 1; 867 static const int kElementsSlot = 1;
867 868
868 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 869 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
869 }; 870 };
870 871
871 } } // namespace v8::internal 872 } } // namespace v8::internal
872 873
873 #endif // V8_PARSER_H_ 874 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | test/mjsunit/limit-locals.js » ('j') | test/mjsunit/limit-locals.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698