Changeset 47262 in webkit for trunk/JavaScriptCore
- Timestamp:
- Aug 13, 2009, 5:56:42 PM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r47259 r47262 1 2009-08-13 Darin Adler <[email protected]> 2 3 Reviewed by George Staikos. 4 5 Another part of https://bugs.webkit.org/show_bug.cgi?id=28287 6 7 * parser/Grammar.y: Reduced and sorted includes. Tweaked comment 8 format. Marked a few more functions inline. 9 1 10 2009-08-13 Darin Adler <[email protected]> 2 11 -
trunk/JavaScriptCore/parser/Grammar.y
r47259 r47262 26 26 #include "config.h" 27 27 28 #include "JSObject.h" 29 #include "JSString.h" 30 #include "NodeConstructors.h" 31 #include "NodeInfo.h" 32 #include <stdlib.h> 28 33 #include <string.h> 29 #include <stdlib.h>30 #include "JSValue.h"31 #include "JSObject.h"32 #include "NodeConstructors.h"33 #include "Lexer.h"34 #include "JSString.h"35 #include "JSGlobalData.h"36 #include "CommonIdentifiers.h"37 #include "NodeInfo.h"38 #include "Parser.h"39 #include <wtf/FastMalloc.h>40 34 #include <wtf/MathExtras.h> 41 35 … … 46 40 #define YYENABLE_NLS 0 47 41 48 / * default values for bison */42 // Default values for bison. 49 43 #define YYDEBUG 0 // Set to 1 to debug a parse error. 50 44 #define jscyydebug 0 // Set to 1 to debug a parse error. 51 45 #if !PLATFORM(DARWIN) 52 // avoid triggering warnings in older bison 46 // Avoid triggering warnings in older bison by not setting this on the Darwin platform. 47 // FIXME: Is this still needed? 53 48 #define YYERROR_VERBOSE 54 49 #endif … … 56 51 int jscyylex(void* lvalp, void* llocp, void* globalPtr); 57 52 int jscyyerror(const char*); 53 58 54 static inline bool allowAutomaticSemicolon(JSC::Lexer&, int); 59 55 60 56 #define GLOBAL_DATA static_cast<JSGlobalData*>(globalPtr) 61 62 57 #define AUTO_SEMICOLON do { if (!allowAutomaticSemicolon(*GLOBAL_DATA->lexer, yychar)) YYABORT; } while (0) 63 58 … … 95 90 #define YYLEX_PARAM globalPtr 96 91 97 template <typename T> NodeDeclarationInfo<T> createNodeDeclarationInfo(T node, ParserArenaData<DeclarationStacks::VarStack>* varDecls,98 ParserArenaData<DeclarationStacks::FunctionStack>* funcDecls,99 CodeFeatures info,100 92 template <typename T> inline NodeDeclarationInfo<T> createNodeDeclarationInfo(T node, 93 ParserArenaData<DeclarationStacks::VarStack>* varDecls, 94 ParserArenaData<DeclarationStacks::FunctionStack>* funcDecls, 95 CodeFeatures info, int numConstants) 101 96 { 102 97 ASSERT((info & ~AllFeatures) == 0); … … 105 100 } 106 101 107 template <typename T> NodeInfo<T> createNodeInfo(T node, CodeFeatures info, int numConstants)102 template <typename T> inline NodeInfo<T> createNodeInfo(T node, CodeFeatures info, int numConstants) 108 103 { 109 104 ASSERT((info & ~AllFeatures) == 0); … … 2073 2068 } 2074 2069 2075 / * called by yyparse on error */2070 // Called by yyparse on error. 2076 2071 int yyerror(const char *) 2077 2072 { … … 2079 2074 } 2080 2075 2081 / * may we automatically insert a semicolon ? */2076 // May we automatically insert a semicolon? 2082 2077 static bool allowAutomaticSemicolon(Lexer& lexer, int yychar) 2083 2078 {
Note:
See TracChangeset
for help on using the changeset viewer.