Ignore:
Timestamp:
Jul 10, 2006, 10:41:32 AM (19 years ago)
Author:
ggaren
Message:

Approved by Maciej, Darin.


Renamed JSStringBufferRef to JSInternalStringRef. "Internal string" means the
JavaScript engine's internal string representation, which is the most
low-level and efficient representation to use when interfacing with JavaScript.

  • API/APICast.h: (toJS): (toRef):
  • API/JSBase.h:
  • API/JSCallbackObject.cpp: (KJS::JSCallbackObject::getOwnPropertySlot): (KJS::JSCallbackObject::put): (KJS::JSCallbackObject::deleteProperty): (KJS::JSCallbackObject::staticValueGetter): (KJS::JSCallbackObject::callbackGetter):
  • API/JSContextRef.cpp: (JSEvaluate): (JSCheckSyntax):
  • API/JSContextRef.h:
  • API/JSInternalStringRef.cpp: Added. (JSStringMake): (JSInternalStringCreate): (JSInternalStringCreateUTF8): (JSInternalStringRetain): (JSInternalStringRelease): (JSValueCopyStringValue): (JSInternalStringGetLength): (JSInternalStringGetCharactersPtr): (JSInternalStringGetCharacters): (JSInternalStringGetMaxLengthUTF8): (JSInternalStringGetCharactersUTF8): (JSInternalStringIsEqual): (JSInternalStringIsEqualUTF8): (JSInternalStringCreateCF): (CFStringCreateWithJSInternalString):
  • API/JSInternalStringRef.h: Added.
  • API/JSNode.c: (JSNodePrototype_appendChild): (JSNode_getNodeType): (JSNode_getChildNodes): (JSNode_getFirstChild):
  • API/JSNodeList.c: (JSNodeList_length): (JSNodeList_getProperty):
  • API/JSObjectRef.cpp: (JSFunctionMakeWithBody): (JSObjectGetDescription): (JSObjectHasProperty): (JSObjectGetProperty): (JSObjectSetProperty): (JSObjectDeleteProperty): (JSPropertyEnumeratorGetNext): (JSPropertyListAdd):
  • API/JSObjectRef.h:
  • API/JSStringBufferRef.cpp: Removed.
  • API/JSStringBufferRef.h: Removed.
  • API/JSValueRef.h:
  • API/JavaScriptCore.h:
  • API/minidom.c: (main): (print):
  • API/testapi.c: (assertEqualsAsUTF8String): (assertEqualsAsCharactersPtr): (assertEqualsAsCharacters): (MyObject_hasProperty): (MyObject_getProperty): (MyObject_setProperty): (MyObject_deleteProperty): (MyObject_getPropertyList): (print_callAsFunction): (myConstructor_callAsConstructor): (main):
  • JavaScriptCore.exp:
  • JavaScriptCore.xcodeproj/project.pbxproj:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSCallbackObject.cpp

    r15225 r15307  
    2727#include "APICast.h"
    2828#include "JSCallbackObject.h"
    29 #include "JSStringBufferRef.h"
     29#include "JSInternalStringRef.h"
    3030#include "JSClassRef.h"
    3131#include "JSObjectRef.h"
     
    8383    JSContextRef context = toRef(exec);
    8484    JSObjectRef thisRef = toRef(this);
    85     JSStringBufferRef propertyNameRef = toRef(propertyName.ustring().rep());
     85    JSInternalStringRef propertyNameRef = toRef(propertyName.ustring().rep());
    8686   
    8787    for (JSClassRef jsClass = m_class; jsClass; jsClass = jsClass->parent) {
     
    132132    JSContextRef context = toRef(exec);
    133133    JSObjectRef thisRef = toRef(this);
    134     JSStringBufferRef propertyNameRef = toRef(propertyName.ustring().rep());
     134    JSInternalStringRef propertyNameRef = toRef(propertyName.ustring().rep());
    135135
    136136    for (JSClassRef jsClass = m_class; jsClass; jsClass = jsClass->parent) {
     
    172172    JSContextRef context = toRef(exec);
    173173    JSObjectRef thisRef = toRef(this);
    174     JSStringBufferRef propertyNameRef = toRef(propertyName.ustring().rep());
     174    JSInternalStringRef propertyNameRef = toRef(propertyName.ustring().rep());
    175175   
    176176    for (JSClassRef jsClass = m_class; jsClass; jsClass = jsClass->parent) {
     
    372372
    373373    JSObjectRef thisRef = toRef(thisObj);
    374     JSStringBufferRef propertyNameRef = toRef(propertyName.ustring().rep());
     374    JSInternalStringRef propertyNameRef = toRef(propertyName.ustring().rep());
    375375
    376376    for (JSClassRef jsClass = thisObj->m_class; jsClass; jsClass = jsClass->parent) {
     
    414414
    415415    JSObjectRef thisRef = toRef(thisObj);
    416     JSStringBufferRef propertyNameRef = toRef(propertyName.ustring().rep());
     416    JSInternalStringRef propertyNameRef = toRef(propertyName.ustring().rep());
    417417
    418418    for (JSClassRef jsClass = thisObj->m_class; jsClass; jsClass = jsClass->parent) {
Note: See TracChangeset for help on using the changeset viewer.