Searched refs:constructor (Results 1 - 25 of 405) sorted by relevance

1234567891011>>

/external/clang/test/CodeGen/
H A D2008-03-03-CtorAttrType.c2 int __attribute__((constructor)) foo(void) {
5 void __attribute__((constructor)) bar(void) {}
H A Dattribute_constructor.c3 void foo() __attribute__((constructor));
H A Dconstructor-attribute.c9 void A() __attribute__((constructor));
20 static void C() __attribute__((constructor));
/external/clang/test/Sema/
H A Dconstructor-attribute.c3 int x __attribute__((constructor)); // expected-warning {{'constructor' attribute only applies to functions}}
4 int f() __attribute__((constructor));
5 int f() __attribute__((constructor(1)));
6 int f() __attribute__((constructor(1,2))); // expected-error {{'constructor' attribute takes no more than 1 argument}}
7 int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires an integer constant}}
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-357108.js7 function TestArray(constructor) {
16 Check(new constructor(1));
17 Check(new constructor(100));
H A Dregress-1172.js28 // Check that 'constructor' property is forcefully installed on
32 // to use JS accessors to set 'constructor' property.
33 Object.prototype.__defineGetter__('constructor', function() { throw 42; });
36 assertSame(f, f.prototype.constructor);
39 assertSame(f, o.constructor);
H A Dregress-193.js28 // Test that context extension objects do not have a constructor
34 return eval("var x; constructor");
37 // It should be ok to call the constructor function returned by f.
40 // The call to f should get the constructor of the receiver which is
41 // the constructor of the global object.
42 assertEquals(constructor, f());
H A Dregress-3359.js8 return 1 >> Boolean.constructor + 1;
H A Dregress-2489.js37 g.constructor.apply(this, arguments);
40 g.constructor = function(a, b) {
H A Dregress-2987.js34 function constructor() { class
40 var object = new constructor();
H A Dpolymorphic-accessor-test-context.js11 Object.defineProperty(o1, "t", {get:function() { return this instanceof o1.constructor; }});
13 Object.defineProperty(o2, "t", {get:function() { return this instanceof o1.constructor; }});
/external/objenesis/main/src/org/objenesis/instantiator/basic/
H A DAccessibleInstantiator.java19 * Instantiates a class by grabbing the no-args constructor, making it accessible and then calling
30 if(constructor != null) {
31 constructor.setAccessible(true);
H A DConstructorInstantiator.java24 * Instantiates a class by grabbing the no args constructor and calling Constructor.newInstance().
32 protected Constructor constructor; field in class:ConstructorInstantiator
36 constructor = type.getDeclaredConstructor((Class[]) null);
45 return constructor.newInstance((Object[]) null);
/external/clang/test/CodeGenCXX/
H A Dconstructor-attr.cpp9 static void foo() __attribute__((constructor)) {
/external/chromium_org/v8/test/mjsunit/es6/
H A Dtyped-array-iterator.js12 function TestTypedArrayPrototype(constructor) {
13 assertTrue(constructor.prototype.hasOwnProperty('entries'));
14 assertTrue(constructor.prototype.hasOwnProperty('values'));
15 assertTrue(constructor.prototype.hasOwnProperty('keys'));
16 assertTrue(constructor.prototype.hasOwnProperty(Symbol.iterator));
18 assertFalse(constructor.prototype.propertyIsEnumerable('entries'));
19 assertFalse(constructor.prototype.propertyIsEnumerable('values'));
20 assertFalse(constructor.prototype.propertyIsEnumerable('keys'));
21 assertFalse(constructor.prototype.propertyIsEnumerable(Symbol.iterator));
23 assertEquals(Array.prototype.entries, constructor
[all...]
/external/chromium_org/v8/test/webkit/fast/js/
H A Dprimitive-property-access-edge-cases.js31 delete String.prototype.constructor; method
66 function checkGet(x, constructor)
69 Object.defineProperty(constructor.prototype, "foo", { get: function() { checkOkay = typeof this === 'object'; }, configurable: true });
71 delete constructor.prototype.foo;
75 function checkSet(x, constructor)
78 Object.defineProperty(constructor.prototype, "foo", { set: function() { checkOkay = typeof this === 'object'; }, configurable: true });
80 delete constructor.prototype.foo;
84 function checkGetStrict(x, constructor)
87 Object.defineProperty(constructor.prototype, "foo", { get: function() { "use strict"; checkOkay = typeof this !== 'object'; }, configurable: true });
89 delete constructor
[all...]
/external/chromium_org/v8/test/mjsunit/compiler/
H A Dinline-construct.js30 // Test inlining of constructor calls.
32 function TestInlinedConstructor(constructor, closure) {
38 result = closure(constructor, 11, noDeopt, counter);
42 result = closure(constructor, 23, noDeopt, counter);
47 result = closure(constructor, 42, noDeopt, counter);
51 result = closure(constructor, 127, forceDeopt, counter);
57 %ClearFunctionTypeFeedback(constructor);
60 function value_context(constructor, val, deopt, counter) {
61 var obj = new constructor(val, deopt, counter);
65 function test_context(constructor, va
[all...]
/external/chromium_org/v8/test/webkit/
H A Dinstance-of-immediates.js24 description('This test makes sure that instance of behaves correctly when the value, constructor, or its prototype are immediates.');
31 function testSet(constructor, testMethod)
33 testMethod["1"]("(1 instanceof " + constructor + ")");
34 testMethod["{}"]("({} instanceof " + constructor + ")");
35 testMethod["obj"]("(obj instanceof " + constructor + ")");
38 // Test set 1, test passing the integer 1 as the constructor to be tested for.
39 // The constructor being an object is the first thing tested, so these should all throw.
42 // Test set 2, test passing an empty object ({}) as the constructor to be tested for.
43 // As well as being an object, the constructor must implement 'HasInstance' (i.e. be a function), so these should all throw too.
46 // Test set 3, test passing Constructor as the constructor t
[all...]
/external/chromium_org/ui/ozone/
H A Dplatform_object_internal.h22 // Look up the constructor in the constructor list.
23 Constructor constructor = PlatformConstructorList<T>::kConstructors[platform]; local
25 // Call the constructor.
26 return make_scoped_ptr(constructor());
/external/mockito/cglib-and-asm/src/org/mockito/cglib/reflect/
H A DFastConstructor.java23 FastConstructor(FastClass fc, Constructor constructor) { argument
24 super(fc, constructor, fc.getIndex(constructor.getParameterTypes()));
/external/chromium_org/chrome/browser/resources/cryptotoken/
H A Dinherits.js14 /** @constructor */
19 childCtor.prototype.constructor = childCtor;
/external/compiler-rt/lib/msan/tests/
H A Dmsan_loadable.cc23 __attribute__((constructor))
/external/deqp/framework/delibs/dethread/
H A DdeSingleton.h47 * If current singleton state is DE_SINGLETON_NOT_INITIALIZED, constructor
50 * It is guaranteed that constructor is called only once, even when multiple
57 * \param constructor Constructor function.
58 * \param arg Generic arg pointer for constructor.
60 void deInitSingleton (volatile deSingletonState* singletonState, deSingletonConstructorFunc constructor, void* arg);
H A DdeSingleton.c30 void deInitSingleton (volatile deSingletonState* singletonState, deSingletonConstructorFunc constructor, void* arg) argument
38 constructor(arg);
/external/chromium_org/third_party/angle/src/compiler/translator/
H A DStructureHLSL.cpp264 TString constructor; local
268 constructor += name + " " + name + "_ctor(";
272 constructor += TypeString(ctorType) + " " + name + "(";
279 constructor += TypeString(type) + " x" + str(parameter) + ArrayString(type);
283 constructor += ", ";
287 constructor += ")\n"
292 constructor += " " + name + " structure = {";
296 constructor += " return " + TypeString(ctorType) + "(";
311 constructor += TString((row == col) ? "x0" : "0.0");
315 constructor
[all...]

Completed in 741 milliseconds

1234567891011>>