Changeset 49365 in webkit for trunk/JavaScriptCore/parser


Ignore:
Timestamp:
Oct 8, 2009, 8:22:41 PM (16 years ago)
Author:
[email protected]
Message:

At long last, I pronounce the death of AllInOneFile.cpp.

Patch by Geoffrey Garen <[email protected]> on 2009-10-08
Reviewed by Maciej Stachowiak.

SunSpider reports a 1.01x speedup.

to compilation stages.

  • parser/Grammar.y:
  • parser/Lexer.cpp:
  • parser/Lexer.h:

(JSC::jscyylex):

  • runtime/ArrayConstructor.cpp:

(JSC::constructArrayWithSizeQuirk):

  • runtime/Collector.h:
  • runtime/JSCell.cpp:

(JSC::JSCell::operator new):

  • runtime/JSCell.h:

(JSC::JSCell::operator new):

  • runtime/JSGlobalObject.cpp:

(JSC::JSGlobalObject::operator new):

  • runtime/JSNumberCell.h:

(JSC::JSNumberCell::operator new):

  • runtime/JSString.cpp:
  • runtime/JSString.h:

(JSC::jsString):
(JSC::jsSubstring):
(JSC::jsOwnedString):

  • runtime/RegExpConstructor.cpp:
  • runtime/RegExpConstructor.h:

(JSC::RegExpConstructorPrivate::RegExpConstructorPrivate):
(JSC::RegExpConstructorPrivate::lastOvector):
(JSC::RegExpConstructorPrivate::tempOvector):
(JSC::RegExpConstructorPrivate::changeLastOvector):
(JSC::RegExpConstructor::performMatch):

  • runtime/StringPrototype.cpp:

(JSC::stringProtoFuncMatch):

  • yarr/RegexJIT.cpp:
  • yarr/RegexJIT.h:

(JSC::Yarr::executeRegex): Inlined a few things that Shark said
were hot, on the presumption that AllInOneFile.cpp used to inline them
automatically.

Location:
trunk/JavaScriptCore/parser
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/parser/Grammar.y

    r47664 r49365  
    2828#include "JSObject.h"
    2929#include "JSString.h"
     30#include "Lexer.h"
    3031#include "NodeConstructors.h"
    3132#include "NodeInfo.h"
     
    4950#endif
    5051
    51 int jscyylex(void* lvalp, void* llocp, void* globalPtr);
    5252int jscyyerror(const char*);
    5353
  • trunk/JavaScriptCore/parser/Lexer.cpp

    r47664 r49365  
    4646#include "Lookup.h"
    4747#include "Lexer.lut.h"
    48 
    49 // A bridge for yacc from the C world to the C++ world.
    50 int jscyylex(void* lvalp, void* llocp, void* globalData)
    51 {
    52     return static_cast<JSGlobalData*>(globalData)->lexer->lex(lvalp, llocp);
    53 }
    5448
    5549namespace JSC {
  • trunk/JavaScriptCore/parser/Lexer.h

    r47664 r49365  
    137137    }
    138138
     139    // A bridge for yacc from the C world to the C++ world.
     140    inline int jscyylex(void* lvalp, void* llocp, void* globalData)
     141    {
     142        return static_cast<JSGlobalData*>(globalData)->lexer->lex(lvalp, llocp);
     143    }
     144
    139145} // namespace JSC
    140146
Note: See TracChangeset for help on using the changeset viewer.