Changeset 36764 in webkit for trunk/JavaScriptCore/kjs/JSValue.h


Ignore:
Timestamp:
Sep 22, 2008, 6:59:06 AM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2008-09-22 Maciej Stachowiak <[email protected]>

Reviewed by Dave Hyatt.


Based on initial work by Darin Adler.


0.5% speedup on SunSpider
~4% speedup on Richards benchmark


  • VM/CTI.cpp: (JSC::CTI::privateCompileMainPass):
  • VM/Machine.cpp: (JSC::jsTypeStringForValue): (JSC::jsIsObjectType): (JSC::Machine::privateExecute): (JSC::Machine::cti_op_is_undefined):
  • VM/Machine.h:
  • kjs/JSCell.h:
  • kjs/JSValue.h:
  • kjs/StringObjectThatMasqueradesAsUndefined.h: (JSC::StringObjectThatMasqueradesAsUndefined::create): (JSC::StringObjectThatMasqueradesAsUndefined::createStructureID):
  • kjs/StructureID.h: (JSC::StructureID::mutableTypeInfo):
  • kjs/TypeInfo.h: (JSC::TypeInfo::TypeInfo): (JSC::TypeInfo::masqueradesAsUndefined):
  • kjs/operations.cpp: (JSC::equal):
  • masm/X86Assembler.h: (JSC::X86Assembler::): (JSC::X86Assembler::setne_r): (JSC::X86Assembler::setnz_r): (JSC::X86Assembler::testl_i32m):

WebCore:

2008-09-22 Maciej Stachowiak <[email protected]>

Reviewed by Dave Hyatt.

Based on initial work by Darin Adler.



  • WebCore.xcodeproj/project.pbxproj:
  • WebCore.vcproj/WebCore.vcproj:
  • bindings/js/JSCSSStyleDeclarationCustom.cpp: (WebCore::JSCSSStyleDeclaration::nameGetter):
  • bindings/js/JSHTMLAllCollection.cpp: Added. (WebCore::):
  • bindings/js/JSHTMLAllCollection.h: (WebCore::JSHTMLAllCollection::createStructureID): (WebCore::JSHTMLAllCollection::toBoolean):
File:
1 edited

Legend:

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

    r36263 r36764  
    5757    class JSValue : Noncopyable {
    5858        friend class JSCell; // so it can derive from this class
    59         friend class Heap; // so it can call asCell()
    60         friend class Machine; // so it can call asCell()
    6159    private:
    6260        JSValue();
     
    146144        JSValue* getJSNumber(); // 0 if this is not a JSNumber or number object
    147145
     146        JSCell* asCell();
     147        const JSCell* asCell() const;
     148
    148149    private:
    149150        bool getPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&);
     
    151152        int32_t toInt32SlowCase(ExecState*, bool& ok) const;
    152153        uint32_t toUInt32SlowCase(ExecState*, bool& ok) const;
    153 
    154         // Implementation details.
    155         JSCell* asCell();
    156         const JSCell* asCell() const;
    157154    };
    158155
Note: See TracChangeset for help on using the changeset viewer.