Ignore:
Timestamp:
Apr 23, 2007, 2:45:35 AM (18 years ago)
Author:
mjs
Message:

Reviewed by Darin.

  • shrink RegexpObjectImp by 4 bytes


Somewhat inexplicably, this seems to be a .33% speedup on JS iBench.


  • kjs/regexp_object.cpp: (KJS::RegExpObjectImpPrivate::RegExpObjectImpPrivate): (RegExpObjectImp::RegExpObjectImp): (RegExpObjectImp::performMatch): (RegExpObjectImp::arrayOfMatches): (RegExpObjectImp::getBackref): (RegExpObjectImp::getLastMatch): (RegExpObjectImp::getLastParen): (RegExpObjectImp::getLeftContext): (RegExpObjectImp::getRightContext): (RegExpObjectImp::getValueProperty): (RegExpObjectImp::putValueProperty):
  • kjs/regexp_object.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/regexp_object.h

    r15846 r21031  
    6161  };
    6262
     63  class RegExpObjectImpPrivate;
     64
    6365  class RegExpObjectImp : public InternalFunctionImp {
    6466  public:
     
    8890    JSValue *getRightContext() const;
    8991
    90     // Global search cache / settings
    91     UString lastInput;
    92     OwnArrayPtr<int> lastOvector;
    93     unsigned lastNumSubPatterns : 31;
    94     bool multiline              : 1;
     92    OwnPtr<RegExpObjectImpPrivate> d;
    9593   
    9694    static const ClassInfo info;
Note: See TracChangeset for help on using the changeset viewer.