Changeset 61878 in webkit for trunk/JavaScriptCore/parser


Ignore:
Timestamp:
Jun 25, 2010, 12:17:24 PM (15 years ago)
Author:
[email protected]
Message:

2010-06-25 Oliver Hunt <[email protected]>

Reviewed by Geoffrey Garen.

Remove old js parser
https://bugs.webkit.org/show_bug.cgi?id=41222

Remove the old yacc parser, this also solves the tiger problem. Which
was a conflict between yacc generated token values and those in the
custom parser

  • Android.mk:
  • CMakeLists.txt:
  • DerivedSources.make:
  • DerivedSources.pro:
  • GNUmakefile.am:
  • JavaScriptCore.pro:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • parser/Grammar.y: Removed.
  • parser/JSParser.cpp:
  • parser/JSParser.h:
  • parser/Lexer.cpp:
  • parser/NodeConstructors.h: (JSC::Node::Node):
  • parser/Parser.cpp: (JSC::Parser::parse):
  • wtf/Platform.h:
Location:
trunk/JavaScriptCore/parser
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/parser/JSParser.cpp

    r61732 r61878  
    2626#include "config.h"
    2727
    28 #if ENABLE(RECURSIVE_PARSE)
    2928#include "JSParser.h"
    3029
     
    3332#include "JSGlobalData.h"
    3433#include "NodeInfo.h"
    35 #include "Grammar.h"
    3634#include "ASTBuilder.h"
    3735#include <utility>
     
    15001498
    15011499}
    1502 
    1503 #endif
    1504 
  • trunk/JavaScriptCore/parser/JSParser.h

    r61732 r61878  
    2626#ifndef JSParser_h
    2727#define JSParser_h
    28 #if ENABLE(RECURSIVE_PARSE)
    2928
    3029namespace JSC {
     
    122121int jsParse(JSGlobalData*);
    123122}
    124 #endif
    125123#endif // JSParser_h
  • trunk/JavaScriptCore/parser/Lexer.cpp

    r61732 r61878  
    3939using namespace Unicode;
    4040
    41 #if ENABLE(RECURSIVE_PARSE)
    4241#include "JSParser.h"
    43 #else
    44 using namespace JSC;
    45 #include "Grammar.h"
    46 #endif
    47 
    4842#include "Lookup.h"
    4943#include "Lexer.lut.h"
  • trunk/JavaScriptCore/parser/NodeConstructors.h

    r61732 r61878  
    4444
    4545    inline Node::Node(JSGlobalData* globalData)
    46 #if ENABLE(RECURSIVE_PARSE)
    4746        : m_line(globalData->lexer->lastLineNumber())
    48 #else
    49         : m_line(globalData->lexer->lineNumber())
    50 #endif
    5147    {
    5248    }
  • trunk/JavaScriptCore/parser/Parser.cpp

    r61732 r61878  
    5353    Lexer& lexer = *globalData->lexer;
    5454    lexer.setCode(*m_source, m_arena);
    55    
    56 #if ENABLE(RECURSIVE_PARSE)
     55
    5756    int parseError = jsParse(globalData);
    58 #else
    59     int parseError = jscyyparse(globalData);
    60 #endif
    6157    int lineNumber = lexer.lineNumber();
    6258    bool lexError = lexer.sawError();
Note: See TracChangeset for help on using the changeset viewer.