Changeset 10084 in webkit for trunk/JavaScriptCore/bindings/runtime_object.cpp
- Timestamp:
- Aug 7, 2005, 9:07:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bindings/runtime_object.cpp
r10076 r10084 61 61 } 62 62 63 Value 63 ValueImp *RuntimeObjectImp::fallbackObjectGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot) 64 64 { 65 65 RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase()); … … 69 69 70 70 Class *aClass = instance->getClass(); 71 Value 71 ValueImp *result = aClass->fallbackObject(exec, instance, propertyName); 72 72 73 73 instance->end(); … … 76 76 } 77 77 78 Value 78 ValueImp *RuntimeObjectImp::fieldGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot) 79 79 { 80 80 RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase()); … … 85 85 Class *aClass = instance->getClass(); 86 86 Field *aField = aClass->fieldNamed(propertyName.ascii(), instance); 87 Value 87 ValueImp *result = instance->getValueOfField(exec, aField); 88 88 89 89 instance->end(); … … 92 92 } 93 93 94 Value 94 ValueImp *RuntimeObjectImp::methodGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot) 95 95 { 96 96 RuntimeObjectImp *thisObj = static_cast<RuntimeObjectImp *>(slot.slotBase()); … … 101 101 Class *aClass = instance->getClass(); 102 102 MethodList methodList = aClass->methodsNamed(propertyName.ascii(), instance); 103 Value result = Object(new RuntimeMethodImp(exec, propertyName, methodList));103 ValueImp *result = new RuntimeMethodImp(exec, propertyName, methodList); 104 104 105 105 instance->end(); … … 133 133 134 134 // Try a fallback object. 135 if (!aClass->fallbackObject(exec, instance, propertyName) .type() != UndefinedType) {135 if (!aClass->fallbackObject(exec, instance, propertyName)->isUndefined()) { 136 136 slot.setCustom(this, fallbackObjectGetter); 137 137 instance->end(); … … 147 147 148 148 void RuntimeObjectImp::put(ExecState *exec, const Identifier &propertyName, 149 const Value &value, int attr)149 ValueImp *value, int attr) 150 150 { 151 151 instance->begin(); … … 188 188 } 189 189 190 Value 191 { 192 Value 190 ValueImp *RuntimeObjectImp::defaultValue(ExecState *exec, Type hint) const 191 { 192 ValueImp *result; 193 193 194 194 instance->begin(); … … 207 207 } 208 208 209 Value RuntimeObjectImp::call(ExecState *exec, Object &thisObj, const List &args)210 { 211 instance->begin(); 212 213 Value 209 ValueImp *RuntimeObjectImp::callAsFunction(ExecState *exec, ObjectImp *thisObj, const List &args) 210 { 211 instance->begin(); 212 213 ValueImp *aValue = getInternalInstance()->invokeDefaultMethod(exec, args); 214 214 215 215 instance->end();
Note:
See TracChangeset
for help on using the changeset viewer.