Searched refs:propertyNames (Results 1 - 25 of 112) sorted by relevance

12345

/external/v8/test/mjsunit/
H A Dobject-get-own-property-names.js32 var propertyNames = Object.getOwnPropertyNames(obj);
33 propertyNames.sort();
34 assertEquals(2, propertyNames.length);
35 assertEquals("a", propertyNames[0]);
36 assertEquals("b", propertyNames[1]);
39 var propertyNames = Object.getOwnPropertyNames(obj);
40 propertyNames.sort();
41 assertEquals(2, propertyNames.length);
42 assertEquals("a", propertyNames[0]);
43 assertEquals("b", propertyNames[
[all...]
/external/emma/core/java12/com/vladium/util/
H A DXProperties.java42 // note: must use propertyNames() because that is the only method that recurses
43 for (Enumeration propertyNames = propertyNames (); propertyNames.hasMoreElements (); )
45 _propertyNames.add (propertyNames.nextElement ());
61 // note: must use propertyNames() because that is the only method that recurses
62 for (Enumeration propertyNames = propertyNames (); propertyNames.hasMoreElements (); )
64 _propertyNames.add (propertyNames
[all...]
/external/webkit/Source/JavaScriptCore/runtime/
H A DNativeErrorPrototype.cpp37 putDirect(exec->globalData(), exec->propertyNames().name, jsString(exec, nameAndMessage), 0);
38 putDirect(exec->globalData(), exec->propertyNames().message, jsString(exec, nameAndMessage), 0);
39 putDirect(exec->globalData(), exec->propertyNames().constructor, constructor, DontEnum);
H A DJSFunction.cpp70 putDirect(exec->globalData(), exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);
71 putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(length), DontDelete | ReadOnly | DontEnum);
83 putDirect(exec->globalData(), exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);
84 putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(length), DontDelete | ReadOnly | DontEnum);
94 putDirect(exec->globalData(), exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);
113 return asString(getDirect(exec->globalData(), exec->globalData().propertyNames->name))->tryGetValue();
118 JSValue displayName = getDirect(exec->globalData(), exec->globalData().propertyNames->displayName);
186 if (propertyName == exec->propertyNames().prototype) {
191 prototype->putDirect(exec->globalData(), exec->propertyNames().constructor, this, DontEnum);
192 putDirect(exec->globalData(), exec->propertyNames()
263 getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) argument
[all...]
H A DJSVariableObject.cpp45 void JSVariableObject::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) argument
50 propertyNames.add(Identifier(exec, it->first.get()));
53 JSObject::getOwnPropertyNames(exec, propertyNames, mode);
H A DErrorPrototype.cpp43 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().name, jsNontrivialString(exec, "Error"), DontEnum);
44 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, errorProtoFuncToString), DontEnum);
55 JSValue name = thisObj->get(exec, exec->propertyNames().name);
56 JSValue message = thisObj->get(exec, exec->propertyNames().message);
H A DScopeChain.cpp39 PropertyNameArray propertyNames(globalObject->globalExec());
40 o->getPropertyNames(globalObject->globalExec(), propertyNames);
41 PropertyNameArray::const_iterator propEnd = propertyNames.end();
44 for (PropertyNameArray::const_iterator propIter = propertyNames.begin(); propIter != propEnd; propIter++) {
H A DStringObject.cpp76 if (propertyName == exec->propertyNames().length)
83 if (propertyName == exec->propertyNames().length)
92 void StringObject::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) argument
96 propertyNames.add(Identifier(exec, UString::number(i)));
98 propertyNames.add(exec->propertyNames().length);
99 return JSObject::getOwnPropertyNames(exec, propertyNames, mode);
H A DArguments.cpp67 unsigned length = min(get(exec, exec->propertyNames().length).toUInt32(exec), maxSize);
102 unsigned length = get(exec, exec->propertyNames().length).toUInt32(exec);
166 defineOwnProperty(exec, exec->propertyNames().caller, descriptor, false);
178 defineOwnProperty(exec, exec->propertyNames().callee, descriptor, false);
193 if (propertyName == exec->propertyNames().length && LIKELY(!d->overrodeLength)) {
198 if (propertyName == exec->propertyNames().callee && LIKELY(!d->overrodeCallee)) {
206 if (propertyName == exec->propertyNames().caller && d->isStrictMode)
224 if (propertyName == exec->propertyNames().length && LIKELY(!d->overrodeLength)) {
229 if (propertyName == exec->propertyNames().callee && LIKELY(!d->overrodeCallee)) {
237 if (propertyName == exec->propertyNames()
243 getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) argument
[all...]
H A DRegExpPrototype.cpp53 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().compile, regExpProtoFuncCompile), DontEnum);
54 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().exec, regExpProtoFuncExec), DontEnum);
55 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().test, regExpProtoFuncTest), DontEnum);
56 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, regExpProtoFuncToString), DontEnum);
132 if (thisObject->get(exec, exec->propertyNames().global).toBoolean(exec))
134 if (thisObject->get(exec, exec->propertyNames().ignoreCase).toBoolean(exec))
136 if (thisObject->get(exec, exec->propertyNames().multiline).toBoolean(exec))
138 UString source = thisObject->get(exec, exec->propertyNames().source).toString(exec);
H A DInternalFunction.cpp48 putDirect(*globalData, globalData->propertyNames->name, jsString(globalData, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);
53 return asString(getDirect(exec->globalData(), exec->globalData().propertyNames->name))->tryGetValue();
58 JSValue displayName = getDirect(exec->globalData(), exec->globalData().propertyNames->displayName);
H A DObjectPrototype.cpp47 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, objectProtoFuncToString), DontEnum);
48 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toLocaleString, objectProtoFuncToLocaleString), DontEnum);
49 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().valueOf, objectProtoFuncValueOf), DontEnum);
50 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().hasOwnProperty, objectProtoFuncHasOwnProperty), DontEnum);
51 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().propertyIsEnumerable, objectProtoFuncPropertyIsEnumerable), DontEnum);
52 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().isPrototypeOf, objectProtoFuncIsPrototypeOf), DontEnum);
55 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().__defineGetter__, objectProtoFuncDefineGetter), DontEnum);
56 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().__defineSetter__, objectProtoFuncDefineSetter), DontEnum);
57 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().__lookupGetter__, objectProtoFuncLookupGetter), DontEnum);
58 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames()
[all...]
H A DObjectConstructor.cpp82 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, objectPrototype, DontEnum | DontDelete | ReadOnly);
84 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly | DontEnum | DontDelete);
153 description->putDirect(exec->globalData(), exec->propertyNames().value, descriptor.value() ? descriptor.value() : jsUndefined(), 0);
154 description->putDirect(exec->globalData(), exec->propertyNames().writable, jsBoolean(descriptor.writable()), 0);
156 description->putDirect(exec->globalData(), exec->propertyNames().get, descriptor.getter() ? descriptor.getter() : jsUndefined(), 0);
157 description->putDirect(exec->globalData(), exec->propertyNames().set, descriptor.setter() ? descriptor.setter() : jsUndefined(), 0);
160 description->putDirect(exec->globalData(), exec->propertyNames().enumerable, jsBoolean(descriptor.enumerable()), 0);
161 description->putDirect(exec->globalData(), exec->propertyNames().configurable, jsBoolean(descriptor.configurable()), 0);
204 if (description->getPropertySlot(exec, exec->propertyNames().enumerable, enumerableSlot)) {
205 desc.setEnumerable(enumerableSlot.getValue(exec, exec->propertyNames()
[all...]
H A DArrayConstructor.cpp44 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, arrayPrototype, DontEnum | DontDelete | ReadOnly);
47 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly | DontEnum | DontDelete);
50 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().isArray, arrayConstructorIsArray), DontEnum);
H A DJSByteArray.cpp42 putDirect(exec->globalData(), exec->globalData().propertyNames->length, jsNumber(m_storage->length()), ReadOnly | DontDelete);
105 void JSByteArray::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) argument
109 propertyNames.add(Identifier::from(exec, i));
110 JSObject::getOwnPropertyNames(exec, propertyNames, mode);
H A DStringConstructor.cpp55 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, stringPrototype, ReadOnly | DontEnum | DontDelete);
59 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().fromCharCode, exec->globalData().getHostFunction(stringFromCharCode, fromCharCodeThunkGenerator)), DontEnum);
61 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().fromCharCode, stringFromCharCode), DontEnum);
64 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly | DontEnum | DontDelete);
H A DBooleanPrototype.cpp45 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, booleanProtoFuncToString), DontEnum);
46 putDirectFunctionWithoutTransition(exec, new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().valueOf, booleanProtoFuncValueOf), DontEnum);
H A DErrorConstructor.cpp36 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, errorPrototype, DontEnum | DontDelete | ReadOnly);
37 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), DontDelete | ReadOnly | DontEnum);
H A DErrorInstance.cpp33 putDirect(*globalData, globalData->propertyNames->message, jsString(globalData, ""));
41 putDirect(*globalData, globalData->propertyNames->message, jsString(globalData, message));
H A DJSPropertyNameIterator.cpp57 PropertyNameArray propertyNames(exec);
58 o->getPropertyNames(exec, propertyNames);
65 JSPropertyNameIterator* jsPropertyNameIterator = new (exec) JSPropertyNameIterator(exec, propertyNames.data(), numCacheableSlots);
/external/webkit/Source/WebCore/bridge/
H A Druntime_array.cpp66 void RuntimeArray::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) argument
70 propertyNames.add(Identifier::from(exec, i));
73 propertyNames.add(exec->propertyNames().length);
75 JSObject::getOwnPropertyNames(exec, propertyNames, mode);
80 if (propertyName == exec->propertyNames().length) {
99 if (propertyName == exec->propertyNames().length) {
132 if (propertyName == exec->propertyNames().length) {
/external/webkit/Source/WebCore/bindings/js/
H A DJSDOMStringMapCustom.cpp47 void JSDOMStringMap::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) argument
53 propertyNames.add(Identifier(exec, stringToUString(names[i])));
55 Base::getOwnPropertyNames(exec, propertyNames, mode);
H A DJSStorageCustom.cpp67 void JSStorage::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) argument
71 propertyNames.add(Identifier(exec, stringToUString(m_impl->key(i))));
73 Base::getOwnPropertyNames(exec, propertyNames, mode);
H A DJSAudioConstructor.cpp46 putDirect(exec->globalData(), exec->propertyNames().prototype, JSHTMLAudioElementPrototype::self(exec, globalObject), None);
47 putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly | DontDelete | DontEnum);
H A DJSLocationCustom.cpp134 if (propertyName == exec->propertyNames().toString || propertyName == exec->propertyNames().valueOf)
163 void JSLocation::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) argument
168 Base::getOwnPropertyNames(exec, propertyNames, mode);
173 if (propertyName == exec->propertyNames().toString || propertyName == exec->propertyNames().valueOf)
279 return (propertyName == exec->propertyNames().toString || propertyName == exec->propertyNames().valueOf);
284 if (propertyName == exec->propertyNames().toString || propertyName == exec->propertyNames()
[all...]

Completed in 318 milliseconds

12345