/external/v8/test/mjsunit/ |
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/emma/core/java12/com/vladium/util/ |
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.nextElement ()) [all...] |
/external/webkit/JavaScriptCore/runtime/ |
NativeErrorPrototype.cpp | 35 putDirect(exec->propertyNames().name, jsString(exec, name), 0); 36 putDirect(exec->propertyNames().message, jsString(exec, message), 0);
|
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++) {
|
ErrorPrototype.cpp | 43 putDirectWithoutTransition(exec->propertyNames().name, jsNontrivialString(exec, "Error"), DontEnum); 44 putDirectWithoutTransition(exec->propertyNames().message, jsNontrivialString(exec, "Unknown error"), DontEnum); 46 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 0, exec->propertyNames().toString, errorProtoFuncToString), DontEnum); 52 JSValue name = thisObj->get(exec, exec->propertyNames().name); 53 JSValue message = thisObj->get(exec, exec->propertyNames().message);
|
JSFunction.cpp | 67 putDirect(exec->propertyNames().length, jsNumber(exec, length), DontDelete | ReadOnly | DontEnum); 151 if (propertyName == exec->propertyNames().prototype) { 156 prototype->putDirect(exec->propertyNames().constructor, this, DontEnum); 157 putDirect(exec->propertyNames().prototype, prototype, DontDelete); 164 if (propertyName == exec->propertyNames().arguments) { 169 if (propertyName == exec->propertyNames().length) { 174 if (propertyName == exec->propertyNames().caller) { 187 if (propertyName == exec->propertyNames().prototype) { 193 if (propertyName == exec->propertyNames().arguments) { 198 if (propertyName == exec->propertyNames().length) [all...] |
JSVariableObject.cpp | 45 void JSVariableObject::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) 50 propertyNames.add(Identifier(exec, it->first.get())); 53 JSObject::getOwnPropertyNames(exec, propertyNames, mode);
|
ObjectConstructor.cpp | 49 putDirectWithoutTransition(exec->propertyNames().prototype, objectPrototype, DontEnum | DontDelete | ReadOnly); 52 putDirectWithoutTransition(exec->propertyNames().length, jsNumber(exec, 1), ReadOnly | DontEnum | DontDelete); 54 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 1, exec->propertyNames().getPrototypeOf, objectConstructorGetPrototypeOf), DontEnum); 55 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 2, exec->propertyNames().getOwnPropertyDescriptor, objectConstructorGetOwnPropertyDescriptor), DontEnum); 56 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 1, exec->propertyNames().getOwnPropertyNames, objectConstructorGetOwnPropertyNames), DontEnum); 57 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 1, exec->propertyNames().keys, objectConstructorKeys), DontEnum); 58 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 3, exec->propertyNames().defineProperty, objectConstructorDefineProperty), DontEnum); 59 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 2, exec->propertyNames().defineProperties, objectConstructorDefineProperties), DontEnum); 60 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 2, exec->propertyNames().create, objectConstructorCreate), DontEnum); 117 description->putDirect(exec->propertyNames().value, descriptor.value() ? descriptor.value() : jsUndefined(), 0) [all...] |
NativeErrorConstructor.cpp | 36 : InternalFunction(&exec->globalData(), structure, Identifier(exec, nativeErrorPrototype->getDirect(exec->propertyNames().name).getString(exec))) 39 putDirect(exec->propertyNames().length, jsNumber(exec, 1), DontDelete | ReadOnly | DontEnum); // ECMA 15.11.7.5 40 putDirect(exec->propertyNames().prototype, nativeErrorPrototype, DontDelete | ReadOnly | DontEnum); 47 object->putDirect(exec->propertyNames().message, jsString(exec, args.at(0).toString(exec)));
|
StringObject.cpp | 73 if (propertyName == exec->propertyNames().length) 80 if (propertyName == exec->propertyNames().length) 89 void StringObject::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) 93 propertyNames.add(Identifier(exec, UString::from(i))); 95 propertyNames.add(exec->propertyNames().length); 96 return JSObject::getOwnPropertyNames(exec, propertyNames, mode);
|
PrototypeFunction.cpp | 40 putDirect(exec->propertyNames().length, jsNumber(exec, length), DontDelete | ReadOnly | DontEnum); 48 putDirect(exec->propertyNames().length, jsNumber(exec, length), DontDelete | ReadOnly | DontEnum);
|
RegExpPrototype.cpp | 53 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 0, exec->propertyNames().compile, regExpProtoFuncCompile), DontEnum); 54 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 0, exec->propertyNames().exec, regExpProtoFuncExec), DontEnum); 55 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 0, exec->propertyNames().test, regExpProtoFuncTest), DontEnum); 56 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 0, exec->propertyNames().toString, regExpProtoFuncToString), DontEnum); 112 if (asRegExpObject(thisValue)->get(exec, exec->propertyNames().global).toBoolean(exec)) 114 if (asRegExpObject(thisValue)->get(exec, exec->propertyNames().ignoreCase).toBoolean(exec)) 116 if (asRegExpObject(thisValue)->get(exec, exec->propertyNames().multiline).toBoolean(exec)) 118 UString source = asRegExpObject(thisValue)->get(exec, exec->propertyNames().source).toString(exec);
|
ErrorConstructor.cpp | 36 putDirectWithoutTransition(exec->propertyNames().prototype, errorPrototype, DontEnum | DontDelete | ReadOnly); 37 putDirectWithoutTransition(exec->propertyNames().length, jsNumber(exec, 1), DontDelete | ReadOnly | DontEnum); 45 obj->putDirect(exec->propertyNames().message, jsString(exec, args.at(0).toString(exec)));
|
InternalFunction.cpp | 43 putDirect(globalData->propertyNames->name, jsString(globalData, name.ustring()), DontDelete | ReadOnly | DontEnum); 48 return asString(getDirect(exec->globalData().propertyNames->name))->value(exec); 53 JSValue displayName = getDirect(exec->globalData().propertyNames->displayName);
|
ObjectPrototype.cpp | 48 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 0, exec->propertyNames().toString, objectProtoFuncToString), DontEnum); 49 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 0, exec->propertyNames().toLocaleString, objectProtoFuncToLocaleString), DontEnum); 50 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 0, exec->propertyNames().valueOf, objectProtoFuncValueOf), DontEnum); 51 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 1, exec->propertyNames().hasOwnProperty, objectProtoFuncHasOwnProperty), DontEnum); 52 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 1, exec->propertyNames().propertyIsEnumerable, objectProtoFuncPropertyIsEnumerable), DontEnum); 53 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 1, exec->propertyNames().isPrototypeOf, objectProtoFuncIsPrototypeOf), DontEnum); 56 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 2, exec->propertyNames().__defineGetter__, objectProtoFuncDefineGetter), DontEnum); 57 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 2, exec->propertyNames().__defineSetter__, objectProtoFuncDefineSetter), DontEnum); 58 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 1, exec->propertyNames().__lookupGetter__, objectProtoFuncLookupGetter), DontEnum); 59 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 1, exec->propertyNames().__lookupSetter__, objectProtoFuncLookupSetter), DontEnum) [all...] |
Arguments.cpp | 67 unsigned length = min(get(exec, exec->propertyNames().length).toUInt32(exec), maxSize); 102 unsigned length = get(exec, exec->propertyNames().length).toUInt32(exec); 169 if (propertyName == exec->propertyNames().length && LIKELY(!d->overrodeLength)) { 174 if (propertyName == exec->propertyNames().callee && LIKELY(!d->overrodeCallee)) { 194 if (propertyName == exec->propertyNames().length && LIKELY(!d->overrodeLength)) { 199 if (propertyName == exec->propertyNames().callee && LIKELY(!d->overrodeCallee)) { 207 void Arguments::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) 212 propertyNames.add(Identifier(exec, UString::from(i))); 214 propertyNames.add(exec->propertyNames().callee) [all...] |
ArrayConstructor.cpp | 44 putDirectWithoutTransition(exec->propertyNames().prototype, arrayPrototype, DontEnum | DontDelete | ReadOnly); 47 putDirectWithoutTransition(exec->propertyNames().length, jsNumber(exec, 1), ReadOnly | DontEnum | DontDelete); 50 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 1, exec->propertyNames().isArray, arrayConstructorIsArray), DontEnum);
|
JSByteArray.cpp | 43 putDirect(exec->globalData().propertyNames->length, jsNumber(exec, m_storage->length()), ReadOnly | DontDelete); 107 void JSByteArray::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) 111 propertyNames.add(Identifier::from(exec, i)); 112 JSObject::getOwnPropertyNames(exec, propertyNames, mode);
|
BooleanConstructor.cpp | 34 putDirectWithoutTransition(exec->propertyNames().prototype, booleanPrototype, DontEnum | DontDelete | ReadOnly); 37 putDirectWithoutTransition(exec->propertyNames().length, jsNumber(exec, 1), ReadOnly | DontDelete | DontEnum);
|
BooleanPrototype.cpp | 45 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 0, exec->propertyNames().toString, booleanProtoFuncToString), DontEnum); 46 putDirectFunctionWithoutTransition(exec, new (exec) NativeFunctionWrapper(exec, prototypeFunctionStructure, 0, exec->propertyNames().valueOf, booleanProtoFuncValueOf), DontEnum);
|
/external/webkit/WebCore/bindings/js/ |
JSWebGLArrayBufferConstructor.cpp | 45 putDirect(exec->propertyNames().prototype, JSWebGLArrayBufferPrototype::self(exec, globalObject), None); 46 putDirect(exec->propertyNames().length, jsNumber(exec, 2), ReadOnly|DontDelete|DontEnum);
|
JSStorageCustom.cpp | 67 void JSStorage::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) 71 propertyNames.add(Identifier(exec, m_impl->key(i))); 73 Base::getOwnPropertyNames(exec, propertyNames, mode);
|
JSAudioConstructor.cpp | 48 putDirect(exec->propertyNames().prototype, JSHTMLAudioElementPrototype::self(exec, globalObject), None); 49 putDirect(exec->propertyNames().length, jsNumber(exec, 1), ReadOnly|DontDelete|DontEnum);
|
JSEventSourceConstructor.cpp | 55 putDirect(exec->propertyNames().prototype, JSEventSourcePrototype::self(exec, globalObject), None); 56 putDirect(exec->propertyNames().length, jsNumber(exec, 1), ReadOnly|DontDelete|DontEnum);
|
/external/webkit/WebCore/bridge/ |
runtime_array.cpp | 60 void RuntimeArray::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) 64 propertyNames.add(Identifier::from(exec, i)); 67 propertyNames.add(exec->propertyNames().length); 69 JSObject::getOwnPropertyNames(exec, propertyNames, mode); 74 if (propertyName == exec->propertyNames().length) { 93 if (propertyName == exec->propertyNames().length) { 126 if (propertyName == exec->propertyNames().length) {
|