Ignore:
Timestamp:
Aug 22, 2006, 2:05:47 PM (19 years ago)
Author:
andersca
Message:

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

Reviewed by Darin.

Move the npruntime code over to using HashMap and the runtime_root code over to using
HashMap and HashCountedSet.


  • bindings/NP_jsobject.cpp:
  • bindings/c/c_utility.cpp: (KJS::Bindings::identifierFromNPIdentifier):
  • bindings/c/c_utility.h:
  • bindings/jni/jni_jsobject.cpp: (JavaJSObject::invoke):
  • bindings/npruntime.cpp: (getStringIdentifierMap): (getIntIdentifierMap): (_NPN_GetStringIdentifier): (_NPN_GetIntIdentifier):
  • bindings/runtime_root.cpp: (getReferencesByRootMap): (getReferencesSet): (KJS::Bindings::findReferenceSet): (KJS::Bindings::rootForImp): (KJS::Bindings::rootForInterpreter): (KJS::Bindings::addNativeReference): (KJS::Bindings::removeNativeReference): (RootObject::removeAllNativeReferences):
  • bindings/runtime_root.h:
File:
1 edited

Legend:

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

    r15698 r15972  
    6060static NPClass* NPNoScriptObjectClass = &noScriptClass;
    6161
    62 static Identifier identifierFromNPIdentifier(const NPUTF8* name)
    63 {
    64     NPUTF16 *methodName;
    65     unsigned UTF16Length;
    66     convertUTF8ToUTF16(name, -1, &methodName, &UTF16Length); // requires free() of returned memory.
    67     Identifier identifier((const KJS::UChar*)methodName, UTF16Length);
    68     free(methodName);
    69     return identifier;
    70 }
    71 
    7262static bool _isSafeScript(JavaScriptObject* obj)
    7363{
Note: See TracChangeset for help on using the changeset viewer.