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

1234567891011>>

/external/compiler-rt/lib/lsan/tests/
H A Dlsan_testlib.cc22 __attribute__((constructor))
23 void constructor() { function
/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 {{attribute takes no more than 1 argument}}
7 int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires parameter 1 to be an integer constant}}
/external/chromium_org/v8/test/mjsunit/regress/
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-2489.js37 g.constructor.apply(this, arguments);
40 g.constructor = function(a, b) {
/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/v8/test/mjsunit/regress/
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());
/external/clang/test/CodeGenCXX/
H A Dconstructor-attr.cpp9 static void foo() __attribute__((constructor)) {
/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/chrome/browser/resources/chromeos/login/
H A Dscreen.js59 var constructor = cr.ui.define(login.Screen);
60 constructor.prototype = Object.create(login.Screen.prototype);
64 Object.defineProperty(constructor.prototype,
67 constructor[propertyName] = (function(x) {
75 constructor.prototype.name = function() { return id; };
77 constructor.register = function() {
79 constructor.decorate(screen);
84 result[name] = constructor;
/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/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/
H A Ddlclose-test-so.cc26 __attribute__((constructor))
/external/compiler-rt/lib/msan/tests/
H A Dmsan_loadable.cc23 __attribute__((constructor))
/external/qemu/
H A Dqemu-timer-common.c33 static void __attribute__((constructor)) init_get_clock(void)
49 static void __attribute__((constructor)) init_get_clock(void)
/external/objenesis/tck/src/org/objenesis/tck/candidates/
H A Dserializable-candidates.properties54 # Different visibilities of constructor.
55 org.objenesis.tck.candidates.SerializableNoConstructor = No constructor (serializable)
56 org.objenesis.tck.candidates.SerializableDefaultPublicConstructor = Default public constructor (serializable)
57 org.objenesis.tck.candidates.SerializableDefaultProtectedConstructor = Default protected constructor (serializable)
58 org.objenesis.tck.candidates.SerializableDefaultPackageConstructor = Default package constructor (serializable)
59 org.objenesis.tck.candidates.SerializableDefaultPrivateConstructor = Default private constructor (serializable)
H A Dcandidates.properties54 # Different visibilities of constructor.
55 org.objenesis.tck.candidates.NoConstructor = No constructor
56 org.objenesis.tck.candidates.SerializableNoConstructor = No constructor (serializable)
57 org.objenesis.tck.candidates.DefaultPublicConstructor = Default public constructor
58 org.objenesis.tck.candidates.SerializableDefaultPublicConstructor = Default public constructor (serializable)
59 org.objenesis.tck.candidates.DefaultProtectedConstructor = Default protected constructor
60 org.objenesis.tck.candidates.SerializableDefaultProtectedConstructor = Default protected constructor (serializable)
61 org.objenesis.tck.candidates.DefaultPackageConstructor = Default package constructor
62 org.objenesis.tck.candidates.SerializableDefaultPackageConstructor = Default package constructor (serializable)
63 org.objenesis.tck.candidates.DefaultPrivateConstructor = Default private constructor
[all...]
/external/mockito/src/org/mockito/internal/util/reflection/
H A DFieldInitializer.java19 * Initialize a field with type instance if a default constructor can be found.
38 * This constructor fail fast if the field type cannot be handled.
52 * This constructor fail fast if the field type cannot be handled.
128 * to be given to a constructor given the argument types.
142 * @return The argument instances to be given to the constructor, should not be null.
152 * Constructor instantiating strategy for no-arg constructor.
155 * If a no-arg constructor can be found then the instance is created using
156 * this constructor.
175 Constructor<?> constructor = null;
177 constructor
258 checkParameterized(Constructor<?> constructor, Field field) argument
[all...]
/external/mockito/src/org/mockito/internal/runners/util/
H A DRunnerProvider.java30 Constructor<?> constructor;
33 constructor = runnerClass.getConstructor(Class.class.getClass());
39 return (RunnerImpl) constructor.newInstance(constructorParam);
/external/chromium_org/v8/test/mjsunit/
H A Darray-functions-prototype.js36 function constructor() {}; class
37 constructor.prototype = proto;
59 var nonArray = new constructor();
90 var nonArray = new constructor();
121 var nonArray = new constructor();
151 var nonArray = new constructor();

Completed in 595 milliseconds

1234567891011>>