Searched defs:setter (Results 1 - 25 of 64) sorted by relevance

123

/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-133211b.js30 setter = function(x) { return; }
32 Object.defineProperty(o, "foo", { set: setter });
34 Object.defineProperty(x, "foo", { set: setter });
0 setter = function(x) { return; } function
H A Dregress-874.js31 var setter = function(value){ }; function
33 x.__defineSetter__(0, setter);
37 assertEquals (setter, Object.getOwnPropertyDescriptor(x, 0).set);
H A Dregress-crbug-137689.js31 function setter(v) { } function
45 Object.defineProperty(o, "foo", { set: setter, configurable: true });
46 Object.defineProperty(o2, "foo", { set: setter, configurable: true });
H A Dregress-2163.js34 function setter(x) { print(222); } function
41 dp(obj1, "alpha", { get: getter, set: setter });
51 dp(obj1, "alpha", { get: getter, set: setter });
60 // obj1 and obj2 share the getter and setter accessor.
62 dp(obj1, "alpha", { get: getter, set: setter });
65 dp(obj2, "alpha", { get: getter, set: setter });
/external/chromium_org/v8/test/mjsunit/
H A Daccessor-map-sharing.js35 function setter(x) { print(222); } function
56 // Two objects with the same setter.
58 dp(obj1, "charlie", { set: setter });
60 dp(obj2, "charlie", { set: setter });
63 // Two objects with the same setter, oldskool.
65 obj1.__defineSetter__("delta", setter);
66 assertEquals(setter, obj1.__lookupSetter__("delta"));
68 obj2.__defineSetter__("delta", setter);
69 assertEquals(setter, obj2.__lookupSetter__("delta"));
72 // Two objects with the same getter and setter
[all...]
/external/clang/test/PCH/
H A Dcxx-friends.cpp21 template<typename T> class PR12585::future_base::setter { class in class:PR12585::future_base
27 int k = PR12585::future_base::setter<int>().f();
/external/chromium_org/v8/test/webkit/fast/js/
H A DObject-defineProperty.js80 function setter(){ throw "called setter"; } function
82 shouldThrow("Object.defineProperty({}, 'foo', {set: setter}).foo='test'", "'called setter'");
83 shouldThrow("Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter}), 'foo', {set: setter1})");
84 shouldThrow("Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter}), 'foo', {get: getter1})");
85 shouldThrow("Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter}), 'foo', {value: 1})");
86 shouldThrow("Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter, configurable: true}), 'foo', {set: setter1}).foo='test'", "'called setter1'");
87 shouldThrow("Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter, configurable: true}), 'foo', {get: getter1}).foo", "'called getter1'");
88 shouldBeTrue("Object.defineProperty(Object.defineProperty({}, 'foo', {set: setter, configurabl
[all...]
/external/chromium_org/v8/test/mjsunit/harmony/
H A Darray-of.js110 // Array.of calls a "length" setter if one is present.
114 function setter(v) { function
120 // when the setter is on the new object
122 Object.defineProperty(this, "length", {set: setter});
129 // when the setter is on the new object's prototype
131 Object.defineProperty(Bevy.prototype, "length", {set: setter});
/external/chromium_org/gin/
H A Dobject_template_builder.h117 const T& getter, const U& setter) {
120 CallbackTraits<U>::CreateTemplate(isolate_, setter));
137 v8::Handle<v8::FunctionTemplate> setter);
116 SetProperty(const base::StringPiece& name, const T& getter, const U& setter) argument
H A Dobject_template_builder.cc169 v8::Handle<v8::FunctionTemplate> setter) {
171 setter); local
167 SetPropertyImpl( const base::StringPiece& name, v8::Handle<v8::FunctionTemplate> getter, v8::Handle<v8::FunctionTemplate> setter) argument
/external/javassist/src/main/javassist/
H A DCtNewMethod.java252 * Creates a public setter method. The setter method assigns the
259 * @param methodName the name of the setter
262 public static CtMethod setter(String methodName, CtField field) method in class:CtNewMethod
/external/chromium_org/v8/test/mjsunit/compiler/
H A Descape-analysis.js182 function setter(v) { sum += v; } function
193 x: { get:getter, set:setter },
194 y: { get:getter, set:setter }
/external/mockito/cglib-and-asm/src/org/mockito/cglib/beans/
H A DBeanCopier.java131 PropertyDescriptor setter = setters[i];
132 PropertyDescriptor getter = (PropertyDescriptor)names.get(setter.getName());
135 MethodInfo write = ReflectUtils.getMethodInfo(setter.getWriteMethod());
148 } else if (compatible(getter, setter)) {
160 private static boolean compatible(PropertyDescriptor getter, PropertyDescriptor setter) { argument
162 return setter.getPropertyType().isAssignableFrom(getter.getPropertyType());
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/
H A DPrivateScriptRunner.cpp265 fprintf(stderr, "Private script error: Target DOM attribute setter was not found. (Class name = %s, Attribute name = %s)\n", className, attributeName);
268 v8::Handle<v8::Value> setter = v8::Handle<v8::Object>::Cast(descriptor)->Get(v8String(scriptState->isolate(), "set")); local
269 if (setter.IsEmpty() || !setter->IsFunction()) {
270 fprintf(stderr, "Private script error: Target DOM attribute setter was not found. (Class name = %s, Attribute name = %s)\n", className, attributeName);
276 V8ScriptRunner::callFunction(v8::Handle<v8::Function>::Cast(setter), scriptState->executionContext(), holder, WTF_ARRAY_LENGTH(argv), argv, scriptState->isolate());
H A DV8DOMConfiguration.cpp51 v8::FunctionCallback setterCallback = accessors[i].setter;
64 v8::Local<v8::FunctionTemplate> setter; local
66 setter = v8::FunctionTemplate::New(isolate, setterCallback, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(accessors[i].data)), signature, 1);
67 setter->RemovePrototype();
69 prototype->SetAccessorProperty(v8AtomicString(isolate, accessors[i].name), getter, setter, accessors[i].attribute, accessors[i].settings); local
H A DV8DOMConfiguration.h61 v8::AccessorSetterCallback setter; member in struct:blink::V8DOMConfiguration::AttributeConfiguration
76 v8::FunctionCallback setter; member in struct:blink::V8DOMConfiguration::AccessorConfiguration
95 v8::AccessorSetterCallback setter = attribute.setter; local
100 setter = attribute.setterForMainWorld;
104 setter, local
/external/chromium_org/v8/test/cctest/
H A Dtest-accessors.cc83 Local<Script> setter; local
87 setter = v8_compile("obj.instance_foo = 901;");
88 CHECK_EQ(901, setter->Run()->Int32Value());
91 setter = v8_compile("obj.bar = 908;");
92 CHECK_EQ(908, setter->Run()->Int32Value());
96 setter = v8_compile("Fun.object_foo = 903;");
97 CHECK_EQ(903, setter->Run()->Int32Value());
401 // Use the throwing property setter/getter in a loop to force
575 "function setter() { x = 1; }"
576 "for (var i = 0; i < 4; i++) { getter(); setter(); }");
[all...]
/external/easymock/src/org/easymock/
H A DMockControl.java262 IExpectationSetters<Object> setter = expectLastCall(
265 callWithConvertedRange(setter, range);
352 IExpectationSetters<Object> setter = expectLastCall("method call on the mock needed before setting void callable");
353 callWithConvertedRange(setter, range);
383 IExpectationSetters<Object> setter = expectLastCall(
386 callWithConvertedRange(setter, range);
564 IExpectationSetters<Object> setter = EasyMock.expect(ignored).andThrow(
566 callWithConvertedRange(setter, range);
637 private void callWithConvertedRange(IExpectationSetters<Object> setter, Range range) { argument
639 setter
[all...]
/external/wpa_supplicant_8/wpa_supplicant/dbus/
H A Ddbus_new_helpers.h36 * getter and setter functions */
90 /* property setter function */
91 WPADBusPropertyAccessor setter; member in struct:wpa_dbus_property_desc
/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-python/oauth2/
H A D__init__.py242 def setter(attr): function
277 @setter
297 @setter
/external/chromium_org/v8/src/ic/
H A Dhandler-compiler.cc356 Handle<JSObject> object, Handle<Name> name, Handle<JSFunction> setter) {
358 GenerateStoreViaSetter(masm(), type(), receiver(), setter); local
355 CompileStoreViaSetter( Handle<JSObject> object, Handle<Name> name, Handle<JSFunction> setter) argument
/external/chromium_org/third_party/protobuf/python/google/protobuf/internal/
H A Dpython_message.py420 # We define a setter just so we can throw an exception with a more
422 def setter(self, new_value): function in function:_AddPropertiesForRepeatedField
427 setattr(cls, property_name, property(getter, setter, doc=doc))
453 def setter(self, new_value): function in function:_AddPropertiesForNonRepeatedScalarField
461 setter.__module__ = None
462 setter.__doc__ = 'Setter for %s.' % proto_field_name
464 # Add a property to encapsulate the getter/setter.
466 setattr(cls, property_name, property(getter, setter, doc=doc))
509 # We define a setter just so we can throw an exception with a more
511 def setter(sel function in function:_AddPropertiesForNonRepeatedCompositeField
[all...]
/external/chromium_org/v8/src/ic/ia32/
H A Dhandler-compiler-ia32.cc217 Handle<JSFunction> setter) {
227 if (!setter.is_null()) {
228 // Call the JavaScript setter with receiver and value on the stack.
237 ParameterCount expected(setter);
238 __ InvokeFunction(setter, expected, actual, CALL_FUNCTION,
246 // We have to return the passed value, not the return value of the setter.
215 GenerateStoreViaSetter( MacroAssembler* masm, Handle<HeapType> type, Register receiver, Handle<JSFunction> setter) argument
/external/chromium_org/v8/src/ic/x64/
H A Dhandler-compiler-x64.cc204 Handle<JSFunction> setter) {
214 if (!setter.is_null()) {
215 // Call the JavaScript setter with receiver and value on the stack.
224 ParameterCount expected(setter);
225 __ InvokeFunction(setter, expected, actual, CALL_FUNCTION,
233 // We have to return the passed value, not the return value of the setter.
202 GenerateStoreViaSetter( MacroAssembler* masm, Handle<HeapType> type, Register receiver, Handle<JSFunction> setter) argument
/external/chromium_org/v8/src/ic/x87/
H A Dhandler-compiler-x87.cc217 Handle<JSFunction> setter) {
227 if (!setter.is_null()) {
228 // Call the JavaScript setter with receiver and value on the stack.
237 ParameterCount expected(setter);
238 __ InvokeFunction(setter, expected, actual, CALL_FUNCTION,
246 // We have to return the passed value, not the return value of the setter.
215 GenerateStoreViaSetter( MacroAssembler* masm, Handle<HeapType> type, Register receiver, Handle<JSFunction> setter) argument

Completed in 979 milliseconds

123