/external/v8/test/mjsunit/ |
H A D | object-get-own-property-names.js | 32 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 D | XProperties.java | 42 // 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 D | NativeErrorPrototype.cpp | 37 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 D | JSFunction.cpp | 70 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 D | JSVariableObject.cpp | 45 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 D | ErrorPrototype.cpp | 43 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 D | ScopeChain.cpp | 39 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 D | StringObject.cpp | 76 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 D | Arguments.cpp | 67 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 D | RegExpPrototype.cpp | 53 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 D | InternalFunction.cpp | 48 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 D | ObjectPrototype.cpp | 47 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 D | ObjectConstructor.cpp | 82 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 D | ArrayConstructor.cpp | 44 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 D | JSByteArray.cpp | 42 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 D | StringConstructor.cpp | 55 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 D | BooleanPrototype.cpp | 45 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 D | ErrorConstructor.cpp | 36 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, errorPrototype, DontEnum | DontDelete | ReadOnly); 37 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), DontDelete | ReadOnly | DontEnum);
|
H A D | ErrorInstance.cpp | 33 putDirect(*globalData, globalData->propertyNames->message, jsString(globalData, "")); 41 putDirect(*globalData, globalData->propertyNames->message, jsString(globalData, message));
|
H A D | JSPropertyNameIterator.cpp | 57 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 D | runtime_array.cpp | 66 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 D | JSDOMStringMapCustom.cpp | 47 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 D | JSStorageCustom.cpp | 67 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 D | JSAudioConstructor.cpp | 46 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 D | JSLocationCustom.cpp | 134 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...] |