Changeset 61878 in webkit for trunk/JavaScriptCore/parser
- Timestamp:
- Jun 25, 2010, 12:17:24 PM (15 years ago)
- Location:
- trunk/JavaScriptCore/parser
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/parser/JSParser.cpp
r61732 r61878 26 26 #include "config.h" 27 27 28 #if ENABLE(RECURSIVE_PARSE)29 28 #include "JSParser.h" 30 29 … … 33 32 #include "JSGlobalData.h" 34 33 #include "NodeInfo.h" 35 #include "Grammar.h"36 34 #include "ASTBuilder.h" 37 35 #include <utility> … … 1500 1498 1501 1499 } 1502 1503 #endif1504 -
trunk/JavaScriptCore/parser/JSParser.h
r61732 r61878 26 26 #ifndef JSParser_h 27 27 #define JSParser_h 28 #if ENABLE(RECURSIVE_PARSE)29 28 30 29 namespace JSC { … … 122 121 int jsParse(JSGlobalData*); 123 122 } 124 #endif125 123 #endif // JSParser_h -
trunk/JavaScriptCore/parser/Lexer.cpp
r61732 r61878 39 39 using namespace Unicode; 40 40 41 #if ENABLE(RECURSIVE_PARSE)42 41 #include "JSParser.h" 43 #else44 using namespace JSC;45 #include "Grammar.h"46 #endif47 48 42 #include "Lookup.h" 49 43 #include "Lexer.lut.h" -
trunk/JavaScriptCore/parser/NodeConstructors.h
r61732 r61878 44 44 45 45 inline Node::Node(JSGlobalData* globalData) 46 #if ENABLE(RECURSIVE_PARSE)47 46 : m_line(globalData->lexer->lastLineNumber()) 48 #else49 : m_line(globalData->lexer->lineNumber())50 #endif51 47 { 52 48 } -
trunk/JavaScriptCore/parser/Parser.cpp
r61732 r61878 53 53 Lexer& lexer = *globalData->lexer; 54 54 lexer.setCode(*m_source, m_arena); 55 56 #if ENABLE(RECURSIVE_PARSE) 55 57 56 int parseError = jsParse(globalData); 58 #else59 int parseError = jscyyparse(globalData);60 #endif61 57 int lineNumber = lexer.lineNumber(); 62 58 bool lexError = lexer.sawError();
Note:
See TracChangeset
for help on using the changeset viewer.