Changeset 11527 in webkit for trunk/JavaScriptCore/bindings/runtime_object.cpp
- Timestamp:
- Dec 10, 2005, 6:06:17 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bindings/runtime_object.cpp
r10701 r11527 43 43 const ClassInfo RuntimeObjectImp::info = {"RuntimeObject", 0, 0, 0}; 44 44 45 RuntimeObjectImp::RuntimeObjectImp( ObjectImp*proto)46 : ObjectImp(proto)45 RuntimeObjectImp::RuntimeObjectImp(JSObject *proto) 46 : JSObject(proto) 47 47 { 48 48 instance = 0; … … 62 62 } 63 63 64 ValueImp*RuntimeObjectImp::fallbackObjectGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)64 JSValue *RuntimeObjectImp::fallbackObjectGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot) 65 65 { 66 66 RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase()); … … 70 70 71 71 Class *aClass = instance->getClass(); 72 ValueImp*result = aClass->fallbackObject(exec, instance, propertyName);72 JSValue *result = aClass->fallbackObject(exec, instance, propertyName); 73 73 74 74 instance->end(); … … 77 77 } 78 78 79 ValueImp*RuntimeObjectImp::fieldGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)79 JSValue *RuntimeObjectImp::fieldGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot) 80 80 { 81 81 RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase()); … … 86 86 Class *aClass = instance->getClass(); 87 87 Field *aField = aClass->fieldNamed(propertyName.ascii(), instance); 88 ValueImp*result = instance->getValueOfField(exec, aField);88 JSValue *result = instance->getValueOfField(exec, aField); 89 89 90 90 instance->end(); … … 93 93 } 94 94 95 ValueImp*RuntimeObjectImp::methodGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)95 JSValue *RuntimeObjectImp::methodGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot) 96 96 { 97 97 RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase()); … … 102 102 Class *aClass = instance->getClass(); 103 103 MethodList methodList = aClass->methodsNamed(propertyName.ascii(), instance); 104 ValueImp *result = new RuntimeMethodImp(exec, propertyName, methodList);104 JSValue *result = new RuntimeMethod(exec, propertyName, methodList); 105 105 106 106 instance->end(); … … 148 148 149 149 void RuntimeObjectImp::put(ExecState *exec, const Identifier &propertyName, 150 ValueImp*value, int attr)150 JSValue *value, int attr) 151 151 { 152 152 instance->begin(); … … 189 189 } 190 190 191 ValueImp*RuntimeObjectImp::defaultValue(ExecState *exec, Type hint) const192 { 193 ValueImp*result;191 JSValue *RuntimeObjectImp::defaultValue(ExecState *exec, Type hint) const 192 { 193 JSValue *result; 194 194 195 195 instance->begin(); … … 208 208 } 209 209 210 ValueImp *RuntimeObjectImp::callAsFunction(ExecState *exec, ObjectImp*thisObj, const List &args)211 { 212 instance->begin(); 213 214 ValueImp*aValue = getInternalInstance()->invokeDefaultMethod(exec, args);210 JSValue *RuntimeObjectImp::callAsFunction(ExecState *exec, JSObject *thisObj, const List &args) 211 { 212 instance->begin(); 213 214 JSValue *aValue = getInternalInstance()->invokeDefaultMethod(exec, args); 215 215 216 216 instance->end();
Note:
See TracChangeset
for help on using the changeset viewer.