/external/v8/test/mjsunit/ |
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[1]); [all …]
|
/external/webkit/Source/JavaScriptCore/runtime/ |
D | JSFunction.cpp | 70 …putDirect(exec->globalData(), exec->globalData().propertyNames->name, jsString(exec, name.isNull()… in JSFunction() 71 …putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(length), DontDelete | ReadOnl… in JSFunction() 83 …putDirect(exec->globalData(), exec->globalData().propertyNames->name, jsString(exec, name.isNull()… in JSFunction() 84 …putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(length), DontDelete | ReadOnl… in JSFunction() 94 …putDirect(exec->globalData(), exec->globalData().propertyNames->name, jsString(exec, name.isNull()… in JSFunction() 113 …return asString(getDirect(exec->globalData(), exec->globalData().propertyNames->name))->tryGetValu… in name() 118 …JSValue displayName = getDirect(exec->globalData(), exec->globalData().propertyNames->displayName); in displayName() 186 if (propertyName == exec->propertyNames().prototype) { in getOwnPropertySlot() 191 … prototype->putDirect(exec->globalData(), exec->propertyNames().constructor, this, DontEnum); in getOwnPropertySlot() 192 … putDirect(exec->globalData(), exec->propertyNames().prototype, prototype, DontDelete | DontEnum); in getOwnPropertySlot() [all …]
|
D | Arguments.cpp | 67 unsigned length = min(get(exec, exec->propertyNames().length).toUInt32(exec), maxSize); in copyToRegisters() 102 unsigned length = get(exec, exec->propertyNames().length).toUInt32(exec); in fillArgList() 166 defineOwnProperty(exec, exec->propertyNames().caller, descriptor, false); in createStrictModeCallerIfNecessary() 178 defineOwnProperty(exec, exec->propertyNames().callee, descriptor, false); in createStrictModeCalleeIfNecessary() 193 if (propertyName == exec->propertyNames().length && LIKELY(!d->overrodeLength)) { in getOwnPropertySlot() 198 if (propertyName == exec->propertyNames().callee && LIKELY(!d->overrodeCallee)) { in getOwnPropertySlot() 206 if (propertyName == exec->propertyNames().caller && d->isStrictMode) in getOwnPropertySlot() 224 if (propertyName == exec->propertyNames().length && LIKELY(!d->overrodeLength)) { in getOwnPropertyDescriptor() 229 if (propertyName == exec->propertyNames().callee && LIKELY(!d->overrodeCallee)) { in getOwnPropertyDescriptor() 237 if (propertyName == exec->propertyNames().caller && d->isStrictMode) in getOwnPropertyDescriptor() [all …]
|
D | ObjectConstructor.cpp | 82 …putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, objectPrototype, D… in ObjectConstructor() 84 …putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly… in ObjectConstructor() 153 …description->putDirect(exec->globalData(), exec->propertyNames().value, descriptor.value() ? descr… in objectConstructorGetOwnPropertyDescriptor() 154 …description->putDirect(exec->globalData(), exec->propertyNames().writable, jsBoolean(descriptor.wr… in objectConstructorGetOwnPropertyDescriptor() 156 …description->putDirect(exec->globalData(), exec->propertyNames().get, descriptor.getter() ? descri… in objectConstructorGetOwnPropertyDescriptor() 157 …description->putDirect(exec->globalData(), exec->propertyNames().set, descriptor.setter() ? descri… in objectConstructorGetOwnPropertyDescriptor() 160 …description->putDirect(exec->globalData(), exec->propertyNames().enumerable, jsBoolean(descriptor.… in objectConstructorGetOwnPropertyDescriptor() 161 …description->putDirect(exec->globalData(), exec->propertyNames().configurable, jsBoolean(descripto… in objectConstructorGetOwnPropertyDescriptor() 204 if (description->getPropertySlot(exec, exec->propertyNames().enumerable, enumerableSlot)) { in toPropertyDescriptor() 205 …desc.setEnumerable(enumerableSlot.getValue(exec, exec->propertyNames().enumerable).toBoolean(exec)… in toPropertyDescriptor() [all …]
|
D | StringObject.cpp | 76 if (propertyName == exec->propertyNames().length) in put() 83 if (propertyName == exec->propertyNames().length) in deleteProperty() 92 void StringObject::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, Enumerati… in getOwnPropertyNames() argument 96 propertyNames.add(Identifier(exec, UString::number(i))); in getOwnPropertyNames() 98 propertyNames.add(exec->propertyNames().length); in getOwnPropertyNames() 99 return JSObject::getOwnPropertyNames(exec, propertyNames, mode); in getOwnPropertyNames()
|
D | ObjectPrototype.cpp | 47 …new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, ob… in ObjectPrototype() 48 …new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toLocaleStri… in ObjectPrototype() 49 …new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().valueOf, obj… in ObjectPrototype() 50 …new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().hasOwnProper… in ObjectPrototype() 51 …new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().propertyIsEn… in ObjectPrototype() 52 …new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().isPrototypeO… in ObjectPrototype() 55 …new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().__defineGett… in ObjectPrototype() 56 …new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().__defineSett… in ObjectPrototype() 57 …new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().__lookupGett… in ObjectPrototype() 58 …new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().__lookupSett… in ObjectPrototype()
|
D | RegExpPrototype.cpp | 53 …new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().compile, reg… in RegExpPrototype() 54 …new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().exec, regExp… in RegExpPrototype() 55 …new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().test, regExp… in RegExpPrototype() 56 …new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, re… in RegExpPrototype() 132 if (thisObject->get(exec, exec->propertyNames().global).toBoolean(exec)) in regExpProtoFuncToString() 134 if (thisObject->get(exec, exec->propertyNames().ignoreCase).toBoolean(exec)) in regExpProtoFuncToString() 136 if (thisObject->get(exec, exec->propertyNames().multiline).toBoolean(exec)) in regExpProtoFuncToString() 138 UString source = thisObject->get(exec, exec->propertyNames().source).toString(exec); in regExpProtoFuncToString()
|
D | ScopeChain.cpp | 39 PropertyNameArray propertyNames(globalObject->globalExec()); in print() local 40 o->getPropertyNames(globalObject->globalExec(), propertyNames); in print() 41 PropertyNameArray::const_iterator propEnd = propertyNames.end(); in print() 44 …for (PropertyNameArray::const_iterator propIter = propertyNames.begin(); propIter != propEnd; prop… in print()
|
D | ErrorPrototype.cpp | 43 …putDirectWithoutTransition(exec->globalData(), exec->propertyNames().name, jsNontrivialString(exec… in ErrorPrototype() 44 …new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, er… in ErrorPrototype() 55 JSValue name = thisObj->get(exec, exec->propertyNames().name); in errorProtoFuncToString() 56 JSValue message = thisObj->get(exec, exec->propertyNames().message); in errorProtoFuncToString()
|
D | NativeErrorPrototype.cpp | 37 putDirect(exec->globalData(), exec->propertyNames().name, jsString(exec, nameAndMessage), 0); in NativeErrorPrototype() 38 putDirect(exec->globalData(), exec->propertyNames().message, jsString(exec, nameAndMessage), 0); in NativeErrorPrototype() 39 putDirect(exec->globalData(), exec->propertyNames().constructor, constructor, DontEnum); in NativeErrorPrototype()
|
D | FunctionPrototype.cpp | 41 …: InternalFunction(&exec->globalData(), globalObject, structure, exec->propertyNames().nullIdentif… in FunctionPrototype() 43 …putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(0), DontDele… in FunctionPrototype() 48 …new (exec) JSFunction(exec, globalObject, functionStructure, 0, exec->propertyNames().toString, fu… in addFunctionProperties() 49 …new (exec) JSFunction(exec, globalObject, functionStructure, 2, exec->propertyNames().apply, funct… in addFunctionProperties() 51 …new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().call, functi… in addFunctionProperties() 125 … unsigned length = asArray(array)->get(exec, exec->propertyNames().length).toUInt32(exec); in functionProtoFuncApply()
|
D | ArrayPrototype.cpp | 174 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); in arrayProtoFuncToString() 237 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); in arrayProtoFuncToLocaleString() 253 JSValue conversionFunction = o->get(exec, exec->propertyNames().toLocaleString); in arrayProtoFuncToLocaleString() 271 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); in arrayProtoFuncJoin() 345 unsigned length = curArg.get(exec, exec->propertyNames().length).toUInt32(exec); in arrayProtoFuncConcat() 373 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); in arrayProtoFuncPop() 379 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length)); in arrayProtoFuncPop() 384 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length - 1)); in arrayProtoFuncPop() 400 unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec); in arrayProtoFuncPush() 407 putProperty(exec, thisObj, exec->propertyNames().length, jsNumber(length)); in arrayProtoFuncPush() [all …]
|
D | JSVariableObject.cpp | 45 void JSVariableObject::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, Enume… in getOwnPropertyNames() argument 50 propertyNames.add(Identifier(exec, it->first.get())); in getOwnPropertyNames() 53 JSObject::getOwnPropertyNames(exec, propertyNames, mode); in getOwnPropertyNames()
|
D | StringConstructor.cpp | 55 …putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, stringPrototype, R… in StringConstructor() 59 …new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().fromCharCode… in StringConstructor() 61 …new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().fromCharCode… in StringConstructor() 64 …putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly… in StringConstructor()
|
D | JSByteArray.cpp | 42 …putDirect(exec->globalData(), exec->globalData().propertyNames->length, jsNumber(m_storage->length… in JSByteArray() 105 void JSByteArray::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, Enumeratio… in getOwnPropertyNames() argument 109 propertyNames.add(Identifier::from(exec, i)); in getOwnPropertyNames() 110 JSObject::getOwnPropertyNames(exec, propertyNames, mode); in getOwnPropertyNames()
|
D | InternalFunction.cpp | 48 …putDirect(*globalData, globalData->propertyNames->name, jsString(globalData, name.isNull() ? "" : … in InternalFunction() 53 …return asString(getDirect(exec->globalData(), exec->globalData().propertyNames->name))->tryGetValu… in name() 58 …JSValue displayName = getDirect(exec->globalData(), exec->globalData().propertyNames->displayName); in displayName()
|
D | ArrayConstructor.cpp | 44 …putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, arrayPrototype, Do… in ArrayConstructor() 47 …putDirectWithoutTransition(exec->globalData(), exec->propertyNames().length, jsNumber(1), ReadOnly… in ArrayConstructor() 50 …new (exec) JSFunction(exec, globalObject, functionStructure, 1, exec->propertyNames().isArray, arr… in ArrayConstructor()
|
/external/emma/core/java12/com/vladium/util/ |
D | XProperties.java | 43 for (Enumeration propertyNames = propertyNames (); propertyNames.hasMoreElements (); ) in list() 45 _propertyNames.add (propertyNames.nextElement ()); in list() 62 for (Enumeration propertyNames = propertyNames (); propertyNames.hasMoreElements (); ) in list() 64 _propertyNames.add (propertyNames.nextElement ()); in list()
|
/external/webkit/Source/WebCore/bridge/ |
D | runtime_array.cpp | 66 void RuntimeArray::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, Enumerati… in getOwnPropertyNames() argument 70 propertyNames.add(Identifier::from(exec, i)); in getOwnPropertyNames() 73 propertyNames.add(exec->propertyNames().length); in getOwnPropertyNames() 75 JSObject::getOwnPropertyNames(exec, propertyNames, mode); in getOwnPropertyNames() 80 if (propertyName == exec->propertyNames().length) { in getOwnPropertySlot() 99 if (propertyName == exec->propertyNames().length) { in getOwnPropertyDescriptor() 132 if (propertyName == exec->propertyNames().length) { in put()
|
/external/webkit/Source/WebCore/bindings/js/ |
D | JSLocationCustom.cpp | 134 …if (propertyName == exec->propertyNames().toString || propertyName == exec->propertyNames().valueO… in putDelegate() 163 void JSLocation::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, Enumeration… in getOwnPropertyNames() argument 168 Base::getOwnPropertyNames(exec, propertyNames, mode); in getOwnPropertyNames() 173 …if (propertyName == exec->propertyNames().toString || propertyName == exec->propertyNames().valueO… in defineGetter() 279 …return (propertyName == exec->propertyNames().toString || propertyName == exec->propertyNames().va… in putDelegate() 284 …if (propertyName == exec->propertyNames().toString || propertyName == exec->propertyNames().valueO… in defineGetter()
|
D | ScriptValue.cpp | 148 PropertyNameArray propertyNames(scriptState); in jsToInspectorValue() local 149 object->getOwnPropertyNames(scriptState, propertyNames); in jsToInspectorValue() 150 for (size_t i = 0; i < propertyNames.size(); i++) { in jsToInspectorValue() 151 const Identifier& name = propertyNames[i]; in jsToInspectorValue()
|
D | JSStorageCustom.cpp | 67 void JSStorage::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationM… in getOwnPropertyNames() argument 71 propertyNames.add(Identifier(exec, stringToUString(m_impl->key(i)))); in getOwnPropertyNames() 73 Base::getOwnPropertyNames(exec, propertyNames, mode); in getOwnPropertyNames()
|
D | JSDOMStringMapCustom.cpp | 47 void JSDOMStringMap::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, Enumera… in getOwnPropertyNames() argument 53 propertyNames.add(Identifier(exec, stringToUString(names[i]))); in getOwnPropertyNames() 55 Base::getOwnPropertyNames(exec, propertyNames, mode); in getOwnPropertyNames()
|
/external/webkit/Source/JavaScriptCore/qt/tests/qscriptvalueiterator/ |
D | tst_qscriptvalueiterator.cpp | 80 QFETCH(QStringList, propertyNames); in iterateForward() 83 Q_ASSERT(propertyNames.size() == propertyValues.size()); in iterateForward() 87 for (int i = 0; i < propertyNames.size(); ++i) { in iterateForward() 88 QString name = propertyNames.at(i); in iterateForward() 139 QFETCH(QStringList, propertyNames); in iterateBackward() 142 Q_ASSERT(propertyNames.size() == propertyValues.size()); in iterateBackward() 146 for (int i = 0; i < propertyNames.size(); ++i) { in iterateBackward() 147 QString name = propertyNames.at(i); in iterateBackward() 212 QFETCH(QStringList, propertyNames); in iterateArray() 221 QCOMPARE(length, propertyNames.size()); in iterateArray() [all …]
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
D | PropertiesTest.java | 87 Enumeration<?> propertyNames = systemProperties.propertyNames(); in test_ConstructorLjava_util_Properties() local 89 while (propertyNames.hasMoreElements()) { in test_ConstructorLjava_util_Properties() 90 propertyName = (String) propertyNames.nextElement(); in test_ConstructorLjava_util_Properties() 461 Enumeration names = myPro.propertyNames(); in test_propertyNames() 486 Enumeration<?> names = parent.propertyNames(); in test_propertyNames_sequence() 495 names = current.propertyNames(); in test_propertyNames_sequence() 506 names = child.propertyNames(); in test_propertyNames_sequence() 583 Enumeration<?> nameEnum = properties.propertyNames(); in test_stringPropertyNames_scenario1() 599 nameEnum = properties.propertyNames(); in test_stringPropertyNames_scenario1() 640 Enumeration<?> nameEnum = properties.propertyNames(); in test_stringPropertyNames_scenario2() [all …]
|