OLD | NEW |
---|---|
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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
442 // Returns NULL if parsing failed. | 442 // Returns NULL if parsing failed. |
443 FunctionLiteral* ParseProgram(CompilationInfo* info); | 443 FunctionLiteral* ParseProgram(CompilationInfo* info); |
444 FunctionLiteral* ParseLazy(CompilationInfo* info); | 444 FunctionLiteral* ParseLazy(CompilationInfo* info); |
445 | 445 |
446 void ReportMessageAt(Scanner::Location loc, | 446 void ReportMessageAt(Scanner::Location loc, |
447 const char* message, | 447 const char* message, |
448 Vector<const char*> args); | 448 Vector<const char*> args); |
449 void ReportMessageAt(Scanner::Location loc, | 449 void ReportMessageAt(Scanner::Location loc, |
450 const char* message, | 450 const char* message, |
451 Vector<Handle<String> > args); | 451 Vector<Handle<String> > args); |
452 void EmergencyReportMessageAt(MessageLocation* location, | |
ulan
2012/05/31 08:48:52
Dead code.
Erik Corry
2012/05/31 12:25:17
Done.
| |
453 const char* message, | |
454 Vector<const char*> args); | |
452 | 455 |
453 private: | 456 private: |
454 // Limit on number of function parameters is chosen arbitrarily. | 457 // Limit on number of function parameters is chosen arbitrarily. |
455 // Code::Flags uses only the low 17 bits of num-parameters to | 458 // Code::Flags uses only the low 17 bits of num-parameters to |
456 // construct a hashable id, so if more than 2^17 are allowed, this | 459 // construct a hashable id, so if more than 2^17 are allowed, this |
457 // should be checked. | 460 // should be checked. |
458 static const int kMaxNumFunctionParameters = 32766; | 461 static const int kMaxNumFunctionParameters = 32766; |
459 static const int kMaxNumFunctionLocals = 32767; | 462 static const int kMaxNumFunctionLocals = 32767; |
460 | 463 |
461 enum Mode { | 464 enum Mode { |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
865 private: | 868 private: |
866 static const int kTypeSlot = 0; | 869 static const int kTypeSlot = 0; |
867 static const int kElementsSlot = 1; | 870 static const int kElementsSlot = 1; |
868 | 871 |
869 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 872 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
870 }; | 873 }; |
871 | 874 |
872 } } // namespace v8::internal | 875 } } // namespace v8::internal |
873 | 876 |
874 #endif // V8_PARSER_H_ | 877 #endif // V8_PARSER_H_ |
OLD | NEW |