/external/compiler-rt/lib/lsan/tests/ |
H A D | lsan_testlib.cc | 22 __attribute__((constructor)) 23 void constructor() { function
|
/external/clang/test/CodeGen/ |
H A D | 2008-03-03-CtorAttrType.c | 2 int __attribute__((constructor)) foo(void) { 5 void __attribute__((constructor)) bar(void) {}
|
H A D | attribute_constructor.c | 3 void foo() __attribute__((constructor));
|
H A D | constructor-attribute.c | 9 void A() __attribute__((constructor)); 20 static void C() __attribute__((constructor));
|
/external/clang/test/Sema/ |
H A D | constructor-attribute.c | 3 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 D | regress-1172.js | 28 // 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 D | regress-193.js | 28 // 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 D | regress-2489.js | 37 g.constructor.apply(this, arguments); 40 g.constructor = function(a, b) {
|
/external/objenesis/main/src/org/objenesis/instantiator/basic/ |
H A D | AccessibleInstantiator.java | 19 * 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 D | ConstructorInstantiator.java | 24 * 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 D | regress-1172.js | 28 // 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 D | regress-193.js | 28 // 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 D | constructor-attr.cpp | 9 static void foo() __attribute__((constructor)) {
|
/external/chromium_org/v8/test/webkit/fast/js/ |
H A D | primitive-property-access-edge-cases.js | 31 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 D | screen.js | 59 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 D | inline-construct.js | 30 // 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 D | instance-of-immediates.js | 24 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 D | dlclose-test-so.cc | 26 __attribute__((constructor))
|
/external/compiler-rt/lib/msan/tests/ |
H A D | msan_loadable.cc | 23 __attribute__((constructor))
|
/external/qemu/ |
H A D | qemu-timer-common.c | 33 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 D | serializable-candidates.properties | 54 # 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 D | candidates.properties | 54 # 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 D | FieldInitializer.java | 19 * 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 D | RunnerProvider.java | 30 Constructor<?> constructor;
33 constructor = runnerClass.getConstructor(Class.class.getClass());
39 return (RunnerImpl) constructor.newInstance(constructorParam);
|
/external/chromium_org/v8/test/mjsunit/ |
H A D | array-functions-prototype.js | 36 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();
|