Changeset 34587 in webkit for trunk/JavaScriptCore/kjs/object_object.cpp
- Timestamp:
- Jun 15, 2008, 10:28:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object_object.cpp
r34582 r34587 31 31 // ------------------------------ ObjectPrototype -------------------------------- 32 32 33 static JSValue* objectProtoFuncValueOf(ExecState*, JSObject*, const List&);34 static JSValue* objectProtoFuncHasOwnProperty(ExecState*, JSObject*, const List&);35 static JSValue* objectProtoFuncIsPrototypeOf(ExecState*, JSObject*, const List&);36 static JSValue* objectProtoFuncDefineGetter(ExecState*, JSObject*, const List&);37 static JSValue* objectProtoFuncDefineSetter(ExecState*, JSObject*, const List&);38 static JSValue* objectProtoFuncLookupGetter(ExecState*, JSObject*, const List&);39 static JSValue* objectProtoFuncLookupSetter(ExecState*, JSObject*, const List&);40 static JSValue* objectProtoFuncPropertyIsEnumerable(ExecState*, JSObject*, const List&);41 static JSValue* objectProtoFuncToLocaleString(ExecState*, JSObject*, const List&);33 static JSValue* objectProtoFuncValueOf(ExecState*, JSObject*, const ArgList&); 34 static JSValue* objectProtoFuncHasOwnProperty(ExecState*, JSObject*, const ArgList&); 35 static JSValue* objectProtoFuncIsPrototypeOf(ExecState*, JSObject*, const ArgList&); 36 static JSValue* objectProtoFuncDefineGetter(ExecState*, JSObject*, const ArgList&); 37 static JSValue* objectProtoFuncDefineSetter(ExecState*, JSObject*, const ArgList&); 38 static JSValue* objectProtoFuncLookupGetter(ExecState*, JSObject*, const ArgList&); 39 static JSValue* objectProtoFuncLookupSetter(ExecState*, JSObject*, const ArgList&); 40 static JSValue* objectProtoFuncPropertyIsEnumerable(ExecState*, JSObject*, const ArgList&); 41 static JSValue* objectProtoFuncToLocaleString(ExecState*, JSObject*, const ArgList&); 42 42 43 43 ObjectPrototype::ObjectPrototype(ExecState* exec, FunctionPrototype* functionPrototype) … … 63 63 // ECMA 15.2.4.2, 15.2.4.4, 15.2.4.5, 15.2.4.7 64 64 65 JSValue* objectProtoFuncValueOf(ExecState*, JSObject* thisObj, const List&)65 JSValue* objectProtoFuncValueOf(ExecState*, JSObject* thisObj, const ArgList&) 66 66 { 67 67 return thisObj; 68 68 } 69 69 70 JSValue* objectProtoFuncHasOwnProperty(ExecState* exec, JSObject* thisObj, const List& args)70 JSValue* objectProtoFuncHasOwnProperty(ExecState* exec, JSObject* thisObj, const ArgList& args) 71 71 { 72 72 return jsBoolean(thisObj->hasOwnProperty(exec, Identifier(args[0]->toString(exec)))); 73 73 } 74 74 75 JSValue* objectProtoFuncIsPrototypeOf(ExecState*, JSObject* thisObj, const List& args)75 JSValue* objectProtoFuncIsPrototypeOf(ExecState*, JSObject* thisObj, const ArgList& args) 76 76 { 77 77 if (!args[0]->isObject()) … … 90 90 } 91 91 92 JSValue* objectProtoFuncDefineGetter(ExecState* exec, JSObject* thisObj, const List& args)92 JSValue* objectProtoFuncDefineGetter(ExecState* exec, JSObject* thisObj, const ArgList& args) 93 93 { 94 94 if (!args[1]->isObject() || !static_cast<JSObject*>(args[1])->implementsCall()) … … 99 99 } 100 100 101 JSValue* objectProtoFuncDefineSetter(ExecState* exec, JSObject* thisObj, const List& args)101 JSValue* objectProtoFuncDefineSetter(ExecState* exec, JSObject* thisObj, const ArgList& args) 102 102 { 103 103 if (!args[1]->isObject() || !static_cast<JSObject*>(args[1])->implementsCall()) … … 108 108 } 109 109 110 JSValue* objectProtoFuncLookupGetter(ExecState* exec, JSObject* thisObj, const List& args)110 JSValue* objectProtoFuncLookupGetter(ExecState* exec, JSObject* thisObj, const ArgList& args) 111 111 { 112 112 return thisObj->lookupGetter(exec, Identifier(args[0]->toString(exec))); 113 113 } 114 114 115 JSValue* objectProtoFuncLookupSetter(ExecState* exec, JSObject* thisObj, const List& args)115 JSValue* objectProtoFuncLookupSetter(ExecState* exec, JSObject* thisObj, const ArgList& args) 116 116 { 117 117 return thisObj->lookupSetter(exec, Identifier(args[0]->toString(exec))); 118 118 } 119 119 120 JSValue* objectProtoFuncPropertyIsEnumerable(ExecState* exec, JSObject* thisObj, const List& args)120 JSValue* objectProtoFuncPropertyIsEnumerable(ExecState* exec, JSObject* thisObj, const ArgList& args) 121 121 { 122 122 return jsBoolean(thisObj->propertyIsEnumerable(exec, Identifier(args[0]->toString(exec)))); 123 123 } 124 124 125 JSValue* objectProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const List&)125 JSValue* objectProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const ArgList&) 126 126 { 127 127 return jsString(thisObj->toString(exec)); 128 128 } 129 129 130 JSValue* objectProtoFuncToString(ExecState*, JSObject* thisObj, const List&)130 JSValue* objectProtoFuncToString(ExecState*, JSObject* thisObj, const ArgList&) 131 131 { 132 132 return jsString("[object " + thisObj->className() + "]"); … … 151 151 152 152 // ECMA 15.2.2 153 JSObject* ObjectConstructor::construct(ExecState* exec, const List& args)153 JSObject* ObjectConstructor::construct(ExecState* exec, const ArgList& args) 154 154 { 155 155 JSValue* arg = args[0]; … … 169 169 } 170 170 171 JSValue* ObjectConstructor::callAsFunction(ExecState* exec, JSObject* /*thisObj*/, const List &args)171 JSValue* ObjectConstructor::callAsFunction(ExecState* exec, JSObject* /*thisObj*/, const ArgList &args) 172 172 { 173 173 return construct(exec, args);
Note:
See TracChangeset
for help on using the changeset viewer.