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

Side by Side Diff: src/preparser.h

Issue 176403004: parser: fix build on solaris (Closed) Base URL: gh:v8/v8@master
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
« no previous file with comments | « src/parser.h ('k') | 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 // 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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 // Return types for traversing functions. 637 // Return types for traversing functions.
638 typedef PreParserIdentifier Identifier; 638 typedef PreParserIdentifier Identifier;
639 typedef PreParserExpression Expression; 639 typedef PreParserExpression Expression;
640 typedef PreParserExpressionList ExpressionList; 640 typedef PreParserExpressionList ExpressionList;
641 }; 641 };
642 642
643 explicit PreParserTraits(PreParser* pre_parser) : pre_parser_(pre_parser) {} 643 explicit PreParserTraits(PreParser* pre_parser) : pre_parser_(pre_parser) {}
644 644
645 // Custom operations executed when FunctionStates are created and 645 // Custom operations executed when FunctionStates are created and
646 // destructed. (The PreParser doesn't need to do anything.) 646 // destructed. (The PreParser doesn't need to do anything.)
647 template<typename FS> 647 template<typename FunctionState>
648 static void SetUpFunctionState(FS* function_state, void*) {} 648 static void SetUpFunctionState(FunctionState* function_state, void*) {}
649 template<typename FS> 649 template<typename FunctionState>
650 static void TearDownFunctionState(FS* function_state) {} 650 static void TearDownFunctionState(FunctionState* function_state) {}
651 651
652 // Helper functions for recursive descent. 652 // Helper functions for recursive descent.
653 static bool IsEvalOrArguments(PreParserIdentifier identifier) { 653 static bool IsEvalOrArguments(PreParserIdentifier identifier) {
654 return identifier.IsEvalOrArguments(); 654 return identifier.IsEvalOrArguments();
655 } 655 }
656 656
657 // Reporting errors. 657 // Reporting errors.
658 void ReportMessageAt(Scanner::Location location, 658 void ReportMessageAt(Scanner::Location location,
659 const char* message, 659 const char* message,
660 Vector<const char*> args); 660 Vector<const char*> args);
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 "accessor_get_set"); 1272 "accessor_get_set");
1273 } 1273 }
1274 *ok = false; 1274 *ok = false;
1275 } 1275 }
1276 } 1276 }
1277 1277
1278 1278
1279 } } // v8::internal 1279 } } // v8::internal
1280 1280
1281 #endif // V8_PREPARSER_H 1281 #endif // V8_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698