Home
last modified time | relevance | path

Searched refs:factory (Results 1 – 25 of 939) sorted by relevance

12345678910>>...38

/external/v8/test/cctest/compiler/
Dtest-run-bytecode-graph-builder.cc33 isolate->factory()->undefined_value(), 0, nullptr); in CallFunction()
43 isolate->factory()->undefined_value(), sizeof...(args), in CallFunction()
189 Factory* factory = isolate->factory(); in TEST() local
192 {"return;", {factory->undefined_value()}}, in TEST()
193 {"return null;", {factory->null_value()}}, in TEST()
194 {"return true;", {factory->true_value()}}, in TEST()
195 {"return false;", {factory->false_value()}}, in TEST()
196 {"return 0;", {factory->NewNumberFromInt(0)}}, in TEST()
197 {"return +1;", {factory->NewNumberFromInt(1)}}, in TEST()
198 {"return -1;", {factory->NewNumberFromInt(-1)}}, in TEST()
[all …]
/external/libchrome/base/message_loop/
Dmessage_loop_test.h21 void RunTest_PostTask(MessagePumpFactory factory);
22 void RunTest_PostDelayedTask_Basic(MessagePumpFactory factory);
23 void RunTest_PostDelayedTask_InDelayOrder(MessagePumpFactory factory);
24 void RunTest_PostDelayedTask_InPostOrder(MessagePumpFactory factory);
25 void RunTest_PostDelayedTask_InPostOrder_2(MessagePumpFactory factory);
26 void RunTest_PostDelayedTask_InPostOrder_3(MessagePumpFactory factory);
27 void RunTest_PostDelayedTask_SharedTimer(MessagePumpFactory factory);
28 void RunTest_EnsureDeletion(MessagePumpFactory factory);
29 void RunTest_EnsureDeletion_Chain(MessagePumpFactory factory);
30 void RunTest_Nesting(MessagePumpFactory factory);
[all …]
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3commontree.c58 static void newPool (pANTLR3_ARBORETUM factory);
59 static pANTLR3_BASE_TREE newPoolTree (pANTLR3_ARBORETUM factory);
60 static pANTLR3_BASE_TREE newFromTree (pANTLR3_ARBORETUM factory, pANTLR3_COMMON_TREE tree);
61 static pANTLR3_BASE_TREE newFromToken (pANTLR3_ARBORETUM factory, pANTLR3_COMMON_TOKEN token);
62 static void factoryClose (pANTLR3_ARBORETUM factory);
67 pANTLR3_ARBORETUM factory; in antlr3ArboretumNew() local
71 factory = (pANTLR3_ARBORETUM) ANTLR3_MALLOC((size_t)sizeof(ANTLR3_ARBORETUM)); in antlr3ArboretumNew()
72 if (factory == NULL) in antlr3ArboretumNew()
80 factory->vFactory = antlr3VectorFactoryNew(0); in antlr3ArboretumNew()
81 if (factory->vFactory == NULL) in antlr3ArboretumNew()
[all …]
Dantlr3commontoken.c61 static void factoryClose (pANTLR3_TOKEN_FACTORY factory);
63 static void setInputStream (pANTLR3_TOKEN_FACTORY factory, pANTLR3_INPUT_STREAM input);
64 static void factoryReset (pANTLR3_TOKEN_FACTORY factory);
68 static void newPool (pANTLR3_TOKEN_FACTORY factory);
69 static pANTLR3_COMMON_TOKEN newPoolToken (pANTLR3_TOKEN_FACTORY factory);
94 pANTLR3_TOKEN_FACTORY factory; in antlr3TokenFactoryNew() local
98 factory = (pANTLR3_TOKEN_FACTORY) ANTLR3_MALLOC((size_t)sizeof(ANTLR3_TOKEN_FACTORY)); in antlr3TokenFactoryNew()
100 if (factory == NULL) in antlr3TokenFactoryNew()
107 factory->newToken = newPoolToken; in antlr3TokenFactoryNew()
108 factory->close = factoryClose; in antlr3TokenFactoryNew()
[all …]
Dantlr3string.c38 static pANTLR3_STRING newRaw8 (pANTLR3_STRING_FACTORY factory);
39 static pANTLR3_STRING newRawUTF16 (pANTLR3_STRING_FACTORY factory);
40 static pANTLR3_STRING newSize8 (pANTLR3_STRING_FACTORY factory, ANTLR3_UINT32 size);
41 static pANTLR3_STRING newSizeUTF16 (pANTLR3_STRING_FACTORY factory, ANTLR3_UINT32 size);
42 static pANTLR3_STRING newPtr8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string, ANTLR3_U…
43 static pANTLR3_STRING newPtrUTF16_8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string, AN…
44 static pANTLR3_STRING newPtrUTF16_UTF16 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string…
45 static pANTLR3_STRING newStr8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string);
46 static pANTLR3_STRING newStrUTF16_8 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string);
47 static pANTLR3_STRING newStrUTF16_UTF16 (pANTLR3_STRING_FACTORY factory, pANTLR3_UINT8 string…
[all …]
/external/libweave/third_party/chromium/base/memory/
Dweak_ptr_unittest.cc32 TargetWithFactory() : factory(this) {} in TargetWithFactory()
33 WeakPtrFactory<Target> factory; member
40 WeakPtrFactory<int> factory(&data); in TEST() local
41 WeakPtr<int> ptr = factory.GetWeakPtr(); in TEST()
47 WeakPtrFactory<int> factory(&data); in TEST() local
48 WeakPtr<int> ptr = factory.GetWeakPtr(); in TEST()
58 WeakPtrFactory<int> factory(&data); in TEST() local
59 ptr = factory.GetWeakPtr(); in TEST()
68 WeakPtrFactory<int> factory(&data); in TEST() local
69 a = factory.GetWeakPtr(); in TEST()
[all …]
/external/v8/src/parsing/
Dpattern-rewriter.cc62 parser->factory()->NewRewritableAssignmentExpression(assignment); in RewriteDestructuringAssignment()
119 Assignment* assignment = factory()->NewAssignment( in VisitVariableProxy()
122 factory()->NewExpressionStatement(assignment, pattern->position()), in VisitVariableProxy()
146 Declaration* declaration = factory()->NewVariableDeclaration( in VisitVariableProxy()
228 factory()->NewStringLiteral(name, descriptor_->declaration_pos), in VisitVariableProxy()
241 factory()->NewCallRuntime(Runtime::kInitializeConstGlobal, arguments, in VisitVariableProxy()
247 arguments->Add(factory()->NewNumberLiteral(language_mode, in VisitVariableProxy()
261 factory()->NewCallRuntime(Runtime::kInitializeVarGlobal, arguments, in VisitVariableProxy()
270 factory()->NewExpressionStatement(initialize, RelocInfo::kNoPosition), in VisitVariableProxy()
288 factory()->NewAssignment(Token::INIT, proxy, value, pos); in VisitVariableProxy()
[all …]
Dparser.cc213 factory(), ast_value_factory()->this_function_string(), in DefaultConstructor()
218 Expression* super_constructor = factory()->NewCallRuntime( in DefaultConstructor()
222 factory(), ast_value_factory()->arguments_string(), Variable::NORMAL, in DefaultConstructor()
226 factory(), ast_value_factory()->new_target_string(), Variable::NORMAL, in DefaultConstructor()
229 CallRuntime* call = factory()->NewCallRuntime( in DefaultConstructor()
231 body->Add(factory()->NewReturnStatement(call, pos), zone()); in DefaultConstructor()
238 FunctionLiteral* function_literal = factory()->NewFunctionLiteral( in DefaultConstructor()
388 AstNodeFactory* factory) { in ShortcutNumericLiteralBinaryExpression() argument
398 *x = factory->NewNumberLiteral(x_val + y_val, pos, has_dot); in ShortcutNumericLiteralBinaryExpression()
401 *x = factory->NewNumberLiteral(x_val - y_val, pos, has_dot); in ShortcutNumericLiteralBinaryExpression()
[all …]
/external/webrtc/webrtc/base/
Dreferencecountedsingletonfactory_unittest.cc42 ReferenceCountedSingletonFactory<MyExistenceWatcher> *factory) { in DoCreateAndGoOutOfScope() argument
43 rcsf_ptr<MyExistenceWatcher> ptr(factory); in DoCreateAndGoOutOfScope()
49 TestReferenceCountedSingletonFactory factory; in TEST() local
51 DoCreateAndGoOutOfScope(&factory); in TEST()
56 TestReferenceCountedSingletonFactory factory; in TEST() local
57 rcsf_ptr<MyExistenceWatcher> ptr(&factory); in TEST()
60 DoCreateAndGoOutOfScope(&factory); in TEST()
65 TestReferenceCountedSingletonFactory factory; in TEST() local
66 rcsf_ptr<MyExistenceWatcher> one(&factory), two(&factory); in TEST()
72 TestReferenceCountedSingletonFactory factory; in TEST() local
[all …]
/external/v8/src/
Di18n.cc41 Handle<String> str = isolate->factory()->NewStringFromAsciiChecked(key); in ExtractStringSetting()
57 Handle<String> str = isolate->factory()->NewStringFromAsciiChecked(key); in ExtractIntegerSetting()
71 Handle<String> str = isolate->factory()->NewStringFromAsciiChecked(key); in ExtractBooleanSetting()
143 Factory* factory = isolate->factory(); in SetResolvedDateSettings() local
148 resolved, factory->intl_pattern_symbol(), in SetResolvedDateSettings()
149 factory->NewStringFromTwoByte( in SetResolvedDateSettings()
158 JSObject::SetProperty(resolved, factory->NewStringFromStaticChars("calendar"), in SetResolvedDateSettings()
159 factory->NewStringFromAsciiChecked(calendar_name), in SetResolvedDateSettings()
171 resolved, factory->NewStringFromStaticChars("timeZone"), in SetResolvedDateSettings()
172 factory->NewStringFromStaticChars("UTC"), SLOPPY).Assert(); in SetResolvedDateSettings()
[all …]
Dproperty-descriptor.cc116 Factory* factory = isolate->factory(); in ToObject() local
117 Handle<JSObject> result = factory->NewJSObject(isolate->object_function()); in ToObject()
119 CreateDataProperty(isolate, result, factory->value_string(), value()); in ToObject()
122 CreateDataProperty(isolate, result, factory->writable_string(), in ToObject()
123 factory->ToBoolean(writable())); in ToObject()
126 CreateDataProperty(isolate, result, factory->get_string(), get()); in ToObject()
129 CreateDataProperty(isolate, result, factory->set_string(), set()); in ToObject()
132 CreateDataProperty(isolate, result, factory->enumerable_string(), in ToObject()
133 factory->ToBoolean(enumerable())); in ToObject()
136 CreateDataProperty(isolate, result, factory->configurable_string(), in ToObject()
[all …]
/external/v8/src/runtime/
Druntime-i18n.cc45 Factory* factory = isolate->factory(); in RUNTIME_FUNCTION() local
62 return *factory->NewStringFromAsciiChecked(kInvalidTag); in RUNTIME_FUNCTION()
71 return *factory->NewStringFromAsciiChecked(kInvalidTag); in RUNTIME_FUNCTION()
74 return *factory->NewStringFromAsciiChecked(result); in RUNTIME_FUNCTION()
80 Factory* factory = isolate->factory(); in RUNTIME_FUNCTION() local
100 Handle<JSObject> locales = factory->NewJSObject(isolate->object_function()); in RUNTIME_FUNCTION()
115 locales, factory->NewStringFromAsciiChecked(result), in RUNTIME_FUNCTION()
116 factory->NewNumber(i), NONE)); in RUNTIME_FUNCTION()
125 Factory* factory = isolate->factory(); in RUNTIME_FUNCTION() local
137 return *factory->NewStringFromAsciiChecked(result); in RUNTIME_FUNCTION()
[all …]
/external/v8/test/cctest/interpreter/
Dtest-interpreter.cc22 isolate->factory()->undefined_value(), 0, nullptr); in CallInterpreter()
32 isolate->factory()->undefined_value(), sizeof...(args), in CallInterpreter()
106 Handle<String> result = isolate->factory()->NewStringFromAsciiChecked(name); in GetName()
107 return isolate->factory()->string_table()->LookupString(isolate, result); in GetName()
166 handles.main_isolate()->factory()->undefined_value(); in TEST()
185 handles.main_isolate()->factory()->undefined_value(); in TEST()
203 Handle<Object> null_value = handles.main_isolate()->factory()->null_value(); in TEST()
222 handles.main_isolate()->factory()->the_hole_value(); in TEST()
240 Handle<Object> true_value = handles.main_isolate()->factory()->true_value(); in TEST()
258 Handle<Object> false_value = handles.main_isolate()->factory()->false_value(); in TEST()
[all …]
/external/guava/guava-testlib/src/com/google/common/testing/
DClassSanityTester.java320 for (Invokable<?, ?> factory : factories) { in doTestEquals()
321 if (factory.getParameters().size() == numberOfParameters) { in doTestEquals()
323 testEqualsUsing(factory); in doTestEquals()
364 for (Invokable<?, ? extends T> factory : getFactories(type)) { in instantiate()
367 instance = instantiate(factory); in instantiate()
376 nullErrors.add(new FactoryMethodReturnsNullException(factory)); in instantiate()
441 for (Invokable<?, ?> factory : getFactoriesToTest()) { in testNulls()
442 Object instance = instantiate(factory); in testNulls()
449 "Null check failed on return value of " + factory); in testNulls()
469 for (Invokable<?, ?> factory : getFactoriesToTest()) { in testEquals()
[all …]
/external/sfntly/cpp/src/test/
Dname_editing_test.cc38 void LoadTestFile(FontFactory* factory, FontBuilderArray* font_builders) { in LoadTestFile() argument
39 assert(factory); in LoadTestFile()
44 factory->LoadFontsForBuilding(&input_buffer, font_builders); in LoadTestFile()
48 FontFactoryPtr factory; in TestChangeOneName() local
49 factory.Attach(FontFactory::GetInstance()); in TestChangeOneName()
51 LoadTestFile(factory, &font_builder_array); in TestChangeOneName()
72 factory->SerializeFont(font, &os); in TestChangeOneName()
76 factory->LoadFonts(&is, &font_array); in TestChangeOneName()
92 FontFactoryPtr factory; in TestModifyNameTableAndRevert() local
93 factory.Attach(FontFactory::GetInstance()); in TestModifyNameTableAndRevert()
[all …]
Dtest_font_utils.cc27 void BuilderForFontFile(const char* font_path, FontFactory* factory, in BuilderForFontFile() argument
29 assert(factory); in BuilderForFontFile()
32 factory->LoadFontsForBuilding(&is, builders); in BuilderForFontFile()
36 void SerializeFont(const char* font_path, FontFactory* factory, Font* font) { in SerializeFont() argument
38 assert(factory); in SerializeFont()
41 factory->SerializeFont(font, &output_stream); in SerializeFont()
45 void LoadFont(const char* font_path, FontFactory* factory, FontArray* fonts) { in LoadFont() argument
48 factory->LoadFonts(&is, fonts); in LoadFont()
57 FontFactoryPtr factory; in LoadFontUsingByteVector() local
58 factory.Attach(FontFactory::GetInstance()); in LoadFontUsingByteVector()
[all …]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
DCertificateFactory_ImplTest.java258 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in testGenerateCRLs() local
264 Collection crls = factory.generateCRLs(bais); in testGenerateCRLs()
283 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in testGenerateCRL() local
288 factory.generateCRL(bais); in testGenerateCRL()
294 factory.generateCertificate(bais); in testGenerateCRL()
304 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in testGenerateBase64CRL() local
311 X509CRL crl = (X509CRL) factory.generateCRL(bais); in testGenerateBase64CRL()
324 factory.generateCRL(bais); in testGenerateBase64CRL()
335 factory.generateCRL(bais); in testGenerateBase64CRL()
370 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in testGenerateBase64CRLs() local
[all …]
/external/v8/test/cctest/
Dtest-weaksets.cc44 Factory* factory = isolate->factory(); in AllocateJSWeakSet() local
45 Handle<Map> map = factory->NewMap(JS_WEAK_SET_TYPE, JSWeakSet::kSize); in AllocateJSWeakSet()
46 Handle<JSObject> weakset_obj = factory->NewJSObjectFromMap(map); in AllocateJSWeakSet()
73 Factory* factory = isolate->factory(); in TEST() local
83 Handle<Map> map = factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); in TEST()
84 Handle<JSObject> object = factory->NewJSObjectFromMap(map); in TEST()
134 Factory* factory = isolate->factory(); in TEST() local
145 Handle<Map> map = factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); in TEST()
147 Handle<JSObject> object = factory->NewJSObjectFromMap(map); in TEST()
178 Factory* factory = isolate->factory(); in TEST() local
[all …]
Dtest-weakmaps.cc44 Handle<JSWeakMap> weakmap = isolate->factory()->NewJSWeakMap(); in AllocateJSWeakMap()
70 Factory* factory = isolate->factory(); in TEST() local
80 Handle<Map> map = factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); in TEST()
81 Handle<JSObject> object = factory->NewJSObjectFromMap(map); in TEST()
89 Handle<Map> map = factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); in TEST()
90 Handle<JSObject> object = factory->NewJSObjectFromMap(map); in TEST()
135 Factory* factory = isolate->factory(); in TEST() local
146 Handle<Map> map = factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); in TEST()
148 Handle<JSObject> object = factory->NewJSObjectFromMap(map); in TEST()
179 Factory* factory = isolate->factory(); in TEST() local
[all …]
/external/slf4j/slf4j-api/src/test/java/org/slf4j/
DBasicMarkerTest.java49 final IMarkerFactory factory; field in BasicMarkerTest
59 factory = new BasicMarkerFactory(); in BasicMarkerTest()
61 blue = factory.getMarker(BLUE_STR); in BasicMarkerTest()
62 red = factory.getMarker(RED_STR); in BasicMarkerTest()
63 green = factory.getMarker(GREEN_STR); in BasicMarkerTest()
64 comp = factory.getMarker(COMP_STR); in BasicMarkerTest()
67 multiComp = factory.getMarker(MULTI_COMP_STR); in BasicMarkerTest()
76 Marker blue2 = factory.getMarker(BLUE_STR); in testPrimitive()
112 Marker parent = factory.getMarker(PARENT_MARKER_STR); in testMultiAdd()
113 Marker child = factory.getMarker(CHILD_MARKER_STR); in testMultiAdd()
[all …]
/external/dagger2/core/src/main/java/dagger/internal/
DScopedProvider.java30 private final Factory<T> factory; field in ScopedProvider
33 private ScopedProvider(Factory<T> factory) { in ScopedProvider() argument
34 assert factory != null; in ScopedProvider()
35 this.factory = factory; in ScopedProvider()
47 instance = result = factory.get(); in get()
55 public static <T> Provider<T> create(Factory<T> factory) { in create() argument
56 if (factory == null) { in create()
59 return new ScopedProvider<T>(factory); in create()
/external/libchrome/base/memory/
Dweak_ptr_unittest.cc54 TargetWithFactory() : factory(this) {} in TargetWithFactory()
55 WeakPtrFactory<Target> factory; member
181 WeakPtrFactory<int> factory(&data); in TEST() local
182 WeakPtr<int> ptr = factory.GetWeakPtr(); in TEST()
188 WeakPtrFactory<int> factory(&data); in TEST() local
189 WeakPtr<int> ptr = factory.GetWeakPtr(); in TEST()
199 WeakPtrFactory<int> factory(&data); in TEST() local
200 ptr = factory.GetWeakPtr(); in TEST()
209 WeakPtrFactory<int> factory(&data); in TEST() local
210 a = factory.GetWeakPtr(); in TEST()
[all …]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/ui/
DPerformanceResultsPerspective.java22 private IPageLayout factory; field in PerformanceResultsPerspective
29 this.factory = layout; in createInitialLayout()
40 this.factory.createFolder( in addViews()
44 this.factory.getEditorArea()); in addViews()
49 this.factory.createFolder( in addViews()
53 this.factory.getEditorArea()); in addViews()
59 this.factory.createFolder( in addViews()
63 this.factory.getEditorArea()); in addViews()
66 this.factory.setEditorAreaVisible(false); in addViews()
/external/guice/core/src/com/google/inject/internal/
DConstructorBindingImpl.java46 private final Factory<T> factory; field in ConstructorBindingImpl
50 InternalFactory<? extends T> scopedFactory, Scoping scoping, Factory<T> factory, in ConstructorBindingImpl() argument
53 this.factory = factory; in ConstructorBindingImpl()
60 this.factory = new Factory<T>(false, key); in ConstructorBindingImpl()
64 factory.constructorInjector = new ConstructorInjector<T>( in ConstructorBindingImpl()
136 factory.constructorInjector = in initialize()
138 factory.provisionCallback = in initialize()
144 return factory.constructorInjector != null; in isInitialized()
149 if(factory.constructorInjector != null) { in getInternalConstructor()
150 return factory.constructorInjector.getConstructionProxy().getInjectionPoint(); in getInternalConstructor()
[all …]
/external/v8/test/unittests/runtime/
Druntime-interpreter-unittest.cc49 Handle<Object> x = isolate()->factory()->NewNumberFromInt(lhs); in TestOperator()
50 Handle<Object> y = isolate()->factory()->NewNumberFromInt(rhs); in TestOperator()
57 Handle<Object> x = isolate()->factory()->NewNumber(lhs); in TestOperator()
58 Handle<Object> y = isolate()->factory()->NewNumber(rhs); in TestOperator()
67 Handle<Object> x = isolate()->factory()->NewStringFromAsciiChecked(lhs); in TestOperator()
68 Handle<Object> y = isolate()->factory()->NewStringFromAsciiChecked(rhs); in TestOperator()
143 std::make_pair(isolate()->factory()->NewNumberFromInt(0), false), in TEST_F()
144 std::make_pair(isolate()->factory()->NewNumberFromInt(1), true), in TEST_F()
145 std::make_pair(isolate()->factory()->NewNumberFromInt(100), true), in TEST_F()
146 std::make_pair(isolate()->factory()->NewNumberFromInt(-1), true), in TEST_F()
[all …]

12345678910>>...38