/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 {{'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 D | regress-357108.js | 7 function TestArray(constructor) { 16 Check(new constructor(1)); 17 Check(new constructor(100));
|
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-3359.js | 8 return 1 >> Boolean.constructor + 1;
|
H A D | regress-2489.js | 37 g.constructor.apply(this, arguments); 40 g.constructor = function(a, b) {
|
H A D | regress-2987.js | 34 function constructor() { class 40 var object = new constructor();
|
H A D | polymorphic-accessor-test-context.js | 11 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 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/clang/test/CodeGenCXX/ |
H A D | constructor-attr.cpp | 9 static void foo() __attribute__((constructor)) {
|
/external/chromium_org/v8/test/mjsunit/es6/ |
H A D | typed-array-iterator.js | 12 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 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/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/chromium_org/ui/ozone/ |
H A D | platform_object_internal.h | 22 // 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 D | FastConstructor.java | 23 FastConstructor(FastClass fc, Constructor constructor) { argument 24 super(fc, constructor, fc.getIndex(constructor.getParameterTypes()));
|
/external/chromium_org/chrome/browser/resources/cryptotoken/ |
H A D | inherits.js | 14 /** @constructor */ 19 childCtor.prototype.constructor = childCtor;
|
/external/compiler-rt/lib/msan/tests/ |
H A D | msan_loadable.cc | 23 __attribute__((constructor))
|
/external/deqp/framework/delibs/dethread/ |
H A D | deSingleton.h | 47 * 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 D | deSingleton.c | 30 void deInitSingleton (volatile deSingletonState* singletonState, deSingletonConstructorFunc constructor, void* arg) argument 38 constructor(arg);
|
/external/chromium_org/third_party/angle/src/compiler/translator/ |
H A D | StructureHLSL.cpp | 264 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...] |