Ignore:
Timestamp:
Aug 22, 2006, 12:45:25 PM (19 years ago)
Author:
andersca
Message:

2006-08-22 Anders Carlsson <[email protected]>

Reviewed by Geoff.


Switch over the NPAPI and Java bindings to using HashMaps instead of dictionaries.


  • JavaScriptCore.xcodeproj/project.pbxproj:
  • bindings/c/c_class.cpp: (KJS::Bindings::CClass::CClass): (KJS::Bindings::CClass::~CClass): (KJS::Bindings::CClass::classForIsA): (KJS::Bindings::CClass::methodsNamed): (KJS::Bindings::CClass::fieldNamed):
  • bindings/c/c_class.h:
  • bindings/jni/jni_class.cpp: (JavaClass::JavaClass): (JavaClass::~JavaClass): (JavaClass::methodsNamed): (JavaClass::fieldNamed):
  • bindings/jni/jni_class.h:
  • bindings/objc/objc_class.h:
  • bindings/objc/objc_class.mm: (KJS::Bindings::deleteMethod): (KJS::Bindings::deleteField): (KJS::Bindings::): (KJS::Bindings::ObjcClass::methodsNamed): (KJS::Bindings::ObjcClass::fieldNamed):
  • bindings/runtime.cpp:
  • bindings/runtime.h:
  • bindings/runtime_object.cpp: (RuntimeObjectImp::fieldGetter): (RuntimeObjectImp::getOwnPropertySlot): (RuntimeObjectImp::put): (RuntimeObjectImp::canPut):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bindings/runtime_object.cpp

    r13821 r15969  
    6464
    6565    Class *aClass = instance->getClass();
    66     Field *aField = aClass->fieldNamed(propertyName.ascii(), instance);
     66    Field *aField = aClass->fieldNamed(propertyName, instance);
    6767    JSValue *result = instance->getValueOfField(exec, aField);
    6868   
     
    9696    if (aClass) {
    9797        // See if the instance has a field with the specified name.
    98         Field *aField = aClass->fieldNamed(propertyName.ascii(), instance.get());
     98        Field *aField = aClass->fieldNamed(propertyName, instance.get());
    9999        if (aField) {
    100100            slot.setCustom(this, fieldGetter);
     
    131131
    132132    // Set the value of the property.
    133     Field *aField = instance->getClass()->fieldNamed(propertyName.ascii(), instance.get());
     133    Field *aField = instance->getClass()->fieldNamed(propertyName, instance.get());
    134134    if (aField) {
    135135        getInternalInstance()->setValueOfField(exec, aField, value);
     
    150150    instance->begin();
    151151
    152     Field *aField = instance->getClass()->fieldNamed(propertyName.ascii(), instance.get());
     152    Field *aField = instance->getClass()->fieldNamed(propertyName, instance.get());
    153153
    154154    instance->end();
Note: See TracChangeset for help on using the changeset viewer.