Home
last modified time | relevance | path

Searched refs:constructor (Results 1 – 25 of 642) sorted by relevance

12345678910>>...26

/external/v8/test/webkit/fast/js/
Dprimitive-property-access-edge-cases.js31 delete String.prototype.constructor; method in delete
66 function checkGet(x, constructor) argument
69 …Object.defineProperty(constructor.prototype, "foo", { get: function() { checkOkay = typeof this ==…
71 delete constructor.prototype.foo;
75 function checkSet(x, constructor) argument
78 …Object.defineProperty(constructor.prototype, "foo", { set: function() { checkOkay = typeof this ==…
80 delete constructor.prototype.foo;
84 function checkGetStrict(x, constructor) argument
87 …Object.defineProperty(constructor.prototype, "foo", { get: function() { "use strict"; checkOkay = …
89 delete constructor.prototype.foo;
[all …]
Dobject-prototype-constructor-expected.txt29 PASS f.constructor is Foo.Bar
30 PASS typeof f.constructor is "function"
31 PASS f2.constructor is Foo2.Bar
32 PASS typeof f2.constructor is "function"
33 PASS f3.constructor is Foo3.Bar
34 PASS typeof f3.constructor is "function"
/external/v8/test/mjsunit/es6/
Dtyped-array-iterator.js12 function TestTypedArrayPrototype(constructor) { argument
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.prototype.entries);
[all …]
/external/v8/test/mjsunit/compiler/
Dinline-construct.js32 function TestInlinedConstructor(constructor, closure) { argument
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) { argument
61 var obj = new constructor(val, deopt, counter);
65 function test_context(constructor, val, deopt, counter) { argument
66 if (!new constructor(val, deopt, counter)) {
[all …]
Descape-analysis.js33 function constructor() { function
37 var object = new constructor();
54 function constructor() { function
59 var object = new constructor();
76 function constructor() { function
82 var object = new constructor();
183 function constructor() { function
188 var o = new constructor();
199 constructor.prototype = monkey; class
207 function constructor() { function
[all …]
/external/guava/guava-tests/test/com/google/common/reflect/
DInvokableTest.java45 Prepender.constructor().getReturnType().getType()); in testConstructor_returnType()
57 Constructor<WithConstructorAndTypeParameter> constructor = type.getDeclaredConstructor(); in testConstructor_returnType_hasTypeParameter() local
58 Invokable<?, ?> factory = Invokable.from(constructor); in testConstructor_returnType_hasTypeParameter()
61 assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]); in testConstructor_returnType_hasTypeParameter()
70 Prepender.constructor(String.class, int.class).getExceptionTypes()); in testConstructor_exceptionTypes()
75 Prepender.constructor().getTypeParameters(); in testConstructor_typeParameters()
81 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_parameters()
95 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_call()
102 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class) in testConstructor_returning()
110 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_invalidReturning()
[all …]
/external/mockito/src/org/mockito/internal/util/reflection/
DFieldInitializer.java175 Constructor<?> constructor = null; in instantiate() local
177 constructor = field.getType().getDeclaredConstructor(); in instantiate()
178 changer.enableAccess(constructor); in instantiate()
181 Object newFieldInstance = constructor.newInstance(noArg); in instantiate()
194 if(constructor != null) { in instantiate()
195 changer.safelyDisableAccess(constructor); in instantiate()
233 Constructor<?> constructor = null; in instantiate() local
235 constructor = biggestConstructor(field.getType()); in instantiate()
236 changer.enableAccess(constructor); in instantiate()
238 … final Object[] args = argResolver.resolveTypeInstances(constructor.getParameterTypes()); in instantiate()
[all …]
/external/v8/test/mjsunit/harmony/
Dtypedarrays.js273 function SubarrayTestCase(constructor, item, expectedResultLen, expectedStartIndex, argument
275 var a = new constructor(initialLen);
277 assertSame(constructor, s.constructor);
285 function TestSubArray(constructor, item) { argument
286 SubarrayTestCase(constructor, item, 512, 512, 1024, 512, 1024);
287 SubarrayTestCase(constructor, item, 512, 512, 1024, 512);
289 SubarrayTestCase(constructor, item, 0, undefined, 0, 1, 20);
290 SubarrayTestCase(constructor, item, 100, 0, 100, 0, 100);
291 SubarrayTestCase(constructor, item, 100, 0, 100, 0, 1000);
292 SubarrayTestCase(constructor, item, 0, undefined, 100, 5, 1);
[all …]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
DPropertyBoxParserImpl.java165 String constructor; in invoke() local
170constructor = mapping.getProperty((parent) + "-uuid[" + Hex.encodeHex(userType).toUpperCase() + "]… in invoke()
171 if (constructor == null) { in invoke()
172constructor = mapping.getProperty("uuid[" + Hex.encodeHex(userType).toUpperCase() + "]"); in invoke()
174 if (constructor == null) { in invoke()
175 constructor = mapping.getProperty("uuid"); in invoke()
178 constructor = mapping.getProperty((parent) + "-" + (type)); in invoke()
179 if (constructor == null) { in invoke()
180 constructor = mapping.getProperty((type)); in invoke()
183 if (constructor == null) { in invoke()
[all …]
/external/guava/guava/src/com/google/common/reflect/
DInvokable.java72 public static <T> Invokable<T, T> from(Constructor<T> constructor) { in from() argument
73 return new ConstructorInvokable<T>(constructor); in from()
232 final Constructor<?> constructor; field in Invokable.ConstructorInvokable
234 ConstructorInvokable(Constructor<?> constructor) { in ConstructorInvokable() argument
235 super(constructor); in ConstructorInvokable()
236 this.constructor = constructor; in ConstructorInvokable()
242 return constructor.newInstance(args); in invokeInternal()
244 throw new RuntimeException(constructor + " failed.", e); in invokeInternal()
260 Type[] types = constructor.getGenericParameterTypes(); in getGenericParameterTypes()
262 Class<?>[] rawParamTypes = constructor.getParameterTypes(); in getGenericParameterTypes()
[all …]
/external/clang/test/Sema/
Dconstructor-attribute.c3 int x __attribute__((constructor)); // expected-warning {{'constructor' attribute only applies to f…
4 int f() __attribute__((constructor));
5 int f() __attribute__((constructor(1)));
6 int f() __attribute__((constructor(1,2))); // expected-error {{'constructor' attribute takes no mor…
7 int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires an …
8 int f() __attribute__((constructor(0x100000000))); // expected-error {{integer constant expression …
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/reflection/
DReflectionConstructor.java51 private final Constructor constructor; field in ReflectionConstructor
53 public ReflectionConstructor(Constructor constructor) { in ReflectionConstructor() argument
54 this.constructor = constructor; in ReflectionConstructor()
58 final Constructor method = this.constructor; in getParameters()
85 return constructor.getModifiers();
97 return ReflectionUtils.javaToDexName(constructor.getDeclaringClass().getName());
101 return constructor.getName();
/external/libcxxabi/src/
Dcxa_vector.cpp115 void (*constructor)(void*), void (*destructor)(void*) ) { in __cxa_vec_new()
118 constructor, destructor, &::operator new [], &::operator delete [] ); in __cxa_vec_new()
141 void (*constructor)(void*), void (*destructor)(void*), in __cxa_vec_new2()
158 __cxa_vec_ctor ( vec_base, element_count, element_size, constructor, destructor ); in __cxa_vec_new2()
170 void (*constructor)(void*), void (*destructor)(void*), in __cxa_vec_new3()
187 __cxa_vec_ctor ( vec_base, element_count, element_size, constructor, destructor ); in __cxa_vec_new3()
207 void (*constructor) (void*, void*), void (*destructor)(void*) ) { in __cxa_vec_cctor()
209 if ( NULL != constructor ) { in __cxa_vec_cctor()
217 constructor ( dest_ptr, src_ptr ); in __cxa_vec_cctor()
232 void (*constructor)(void*), void (*destructor)(void*) ) { in __cxa_vec_ctor()
[all …]
/external/doclava/src/com/google/doclava/
DSinceTagger.java157 for (MethodInfo constructor : doc.constructors()) { in versionConstructors()
158 if (constructor.getSince() == null in versionConstructors()
159 && spec.hasConstructor(constructor)) { in versionConstructors()
160 constructor.setSince(versionName); in versionConstructors()
164 if (constructor.isDeprecated() && constructor.getDeprecatedSince() == null) { in versionConstructors()
166 if (spec.allConstructorsMap().containsKey(constructor.getHashableName())) { in versionConstructors()
167 MethodInfo specConstructor = spec.allConstructorsMap().get(constructor.getHashableName()); in versionConstructors()
169 constructor.setDeprecatedSince(versionName); in versionConstructors()
250 for (MethodInfo constructor : missingVersions(claz.constructors())) { in warnForMissingVersions()
251 Errors.error(Errors.NO_SINCE_DATA, constructor.position(), "XML missing constructor " in warnForMissingVersions()
[all …]
/external/android-mock/tests/com/google/android/testing/mocking/
DConstructorCreationTests.java73 Constructor<TestClass> constructor = in hasConstructor() local
75 assertNotNull(constructor); in hasConstructor()
80 Constructor<TestClass> constructor = in doesNotHaveConstructor() local
82 fail("A constructor was found: " + constructor); in doesNotHaveConstructor()
101 Constructor<TestClass> constructor = in checkConstructor() local
103 assertNotNull(constructor); in checkConstructor()
104 Type[] types = constructor.getGenericParameterTypes(); in checkConstructor()
/external/v8/test/mjsunit/
Darray-functions-prototype.js36 function constructor() {}; function
37 constructor.prototype = proto; class
59 var nonArray = new constructor();
90 var nonArray = new constructor();
121 var nonArray = new constructor();
151 var nonArray = new constructor();
/external/objenesis/tck/src/org/objenesis/tck/candidates/
Dcandidates.properties54 # Different visibilities of constructor.
55 org.objenesis.tck.candidates.NoConstructor = No constructor
56 org.objenesis.tck.candidates.SerializableNoConstructor = No constructor (s…
57 …esis.tck.candidates.DefaultPublicConstructor = Default public constructor
58 …ates.SerializableDefaultPublicConstructor = Default public constructor (serializable)
59 …s.tck.candidates.DefaultProtectedConstructor = Default protected constructor
60 …s.SerializableDefaultProtectedConstructor = Default protected constructor (serializable)
61 …sis.tck.candidates.DefaultPackageConstructor = Default package constructor
62 …tes.SerializableDefaultPackageConstructor = Default package constructor (serializable)
63 …sis.tck.candidates.DefaultPrivateConstructor = Default private constructor
[all …]
/external/v8/test/webkit/
Dinstance-of-immediates.js31 function testSet(constructor, testMethod) argument
33 testMethod["1"]("(1 instanceof " + constructor + ")");
34 testMethod["{}"]("({} instanceof " + constructor + ")");
35 testMethod["obj"]("(obj instanceof " + constructor + ")");
/external/v8/src/compiler/arm/
Dinstruction-selector-arm-unittest.cc19 Constructor constructor; member
42 Constructor constructor; member
62 Constructor constructor; member
127 m.Return((m.*dpi.constructor)(m.Parameter(0), m.Parameter(1))); in TEST_P()
141 m.Return((m.*dpi.constructor)(m.Parameter(0), m.Int32Constant(imm))); in TEST_P()
152 m.Return((m.*dpi.constructor)(m.Int32Constant(imm), m.Parameter(0))); in TEST_P()
168 m.Return((m.*dpi.constructor)( in TEST_P()
170 (m.*shift.constructor)(m.Parameter(1), m.Parameter(2)))); in TEST_P()
180 m.Return((m.*dpi.constructor)( in TEST_P()
181 (m.*shift.constructor)(m.Parameter(0), m.Parameter(1)), in TEST_P()
[all …]
/external/libcxx/include/
Dcxxabi.h88 void (*constructor)(void*),
94 void (*constructor)(void*),
102 void (*constructor)(void*),
110 void (*constructor)(void*),
144 void (*constructor)(void*, void*),
/external/libcxxabi/include/
Dcxxabi.h88 void (*constructor)(void*),
94 void (*constructor)(void*),
102 void (*constructor)(void*),
110 void (*constructor)(void*),
144 void (*constructor)(void*, void*),
/external/v8/test/mjsunit/regress/
Dregress-357108.js7 function TestArray(constructor) { argument
16 Check(new constructor(1));
17 Check(new constructor(100));
/external/v8/src/compiler/
Dcommon-operator-unittest.cc24 const Operator* (CommonOperatorBuilder::*constructor)(); member
71 EXPECT_EQ((common1.*sop.constructor)(), (common2.*sop.constructor)()); in TEST_P()
78 const Operator* op = (common.*sop.constructor)(); in TEST_P()
100 const Operator* op = (common.*sop.constructor)(); in TEST_P()
108 const Operator* op = (common.*sop.constructor)(); in TEST_P()
/external/objenesis/main/src/org/objenesis/instantiator/basic/
DConstructorInstantiator.java32 protected Constructor constructor; field in ConstructorInstantiator
36 constructor = type.getDeclaredConstructor((Class[]) null); in ConstructorInstantiator()
45 return constructor.newInstance((Object[]) null); in newInstance()
/external/mockito/cglib-and-asm/src/org/mockito/cglib/reflect/
DFastConstructor.java23 FastConstructor(FastClass fc, Constructor constructor) { in FastConstructor() argument
24 super(fc, constructor, fc.getIndex(constructor.getParameterTypes())); in FastConstructor()

12345678910>>...26