Home
last modified time | relevance | path

Searched refs:callable (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/external/v8/src/compiler/
Djs-generic-lowering.cc56 Callable callable = CodeFactory::Name(isolate()); \
57 ReplaceWithStubCall(node, callable, flags); \
85 void JSGenericLowering::ReplaceWithStubCall(Node* node, Callable callable, in REPLACE_STUB_CALL()
87 ReplaceWithStubCall(node, callable, flags, node->op()->properties()); in REPLACE_STUB_CALL()
90 void JSGenericLowering::ReplaceWithStubCall(Node* node, Callable callable, in ReplaceWithStubCall() argument
94 const CallInterfaceDescriptor& descriptor = callable.descriptor(); in ReplaceWithStubCall()
98 Node* stub_code = jsgraph()->HeapConstant(callable.code()); in ReplaceWithStubCall()
124 Callable callable = CodeFactory::StrictEqual(isolate()); in LowerJSStrictEqual() local
126 ReplaceWithStubCall(node, callable, CallDescriptor::kNoFlags, in LowerJSStrictEqual()
133 Callable callable = CodeFactory::StrictNotEqual(isolate()); in LowerJSStrictNotEqual() local
[all …]
Dcode-assembler.h320 Node* CallStub(Callable const& callable, Node* context, TArgs... args) { in CallStub() argument
321 Node* target = HeapConstant(callable.code()); in CallStub()
322 return CallStub(callable.descriptor(), target, context, args...); in CallStub()
339 Node* TailCallStub(Callable const& callable, Node* context, TArgs... args) { in TailCallStub() argument
340 Node* target = HeapConstant(callable.code()); in TailCallStub()
341 return TailCallStub(callable.descriptor(), target, context, args...); in TailCallStub()
353 Node* CallJS(Callable const& callable, Node* context, Node* function, in CallJS() argument
357 return CallStub(callable, context, function, arity, receiver, args...); in CallJS()
361 Node* ConstructJS(Callable const& callable, Node* context, Node* new_target, in ConstructJS() argument
368 return CallStub(callable, context, new_target, new_target, arity, receiver, in ConstructJS()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCallablesTest.java38 Callable<Object> callable = Callables.returning(value); in testReturning() local
39 assertSame(value, callable.call()); in testReturning()
41 assertSame(value, callable.call()); in testReturning()
47 Callable<Void> callable = new Callable<Void>() { in testRenaming() local
53 Callables.threadRenaming(callable, newName).call(); in testRenaming()
61 Callable<Void> callable = new Callable<Void>() { in testRenaming_exceptionalReturn() local
68 Callables.threadRenaming(callable, newName).call(); in testRenaming_exceptionalReturn()
86 Callable<Void> callable = new Callable<Void>() { in testRenaming_noPermissions() local
92 Callables.threadRenaming(callable, newName).call(); in testRenaming_noPermissions()
DWrappingScheduledExecutorServiceTest.java51 testExecutor.schedule(Executors.callable(DO_NOTHING), 5, TimeUnit.SECONDS); in testSchedule()
97 protected <T> Callable<T> wrapTask(Callable<T> callable) { in wrapTask() argument
98 return new WrappedCallable<T>(callable); in wrapTask()
134 Callable<V> callable, long delay, TimeUnit unit) { in schedule() argument
135 assertTrue(callable instanceof WrappedCallable); in schedule()
/external/guice/extensions/servlet/src/com/google/inject/servlet/
DServletScopes.java214 public static <T> Callable<T> continueRequest(final Callable<T> callable, in continueRequest() argument
233 .call(callable); in continueRequest()
261 public static <T> Callable<T> transferRequest(Callable<T> callable) {
263 ? transferHttpRequest(callable)
264 : transferNonHttpRequest(callable);
267 private static <T> Callable<T> transferHttpRequest(final Callable<T> callable) {
274 return context.call(callable);
279 private static <T> Callable<T> transferNonHttpRequest(final Callable<T> callable) {
286 return context.call(callable);
323 public static <T> Callable<T> scopeRequest(final Callable<T> callable,
[all …]
/external/v8/src/builtins/
Dbuiltins-number.cc253 Callable callable = CodeFactory::ToString(isolate()); in TF_BUILTIN() local
254 var_input.Bind(CallStub(callable, context, input)); in TF_BUILTIN()
664 Callable callable = in TF_BUILTIN() local
666 var_rhs.Bind(CallStub(callable, context, rhs)); in TF_BUILTIN()
673 Callable callable = CodeFactory::NonNumberToNumber(isolate()); in TF_BUILTIN() local
674 var_rhs.Bind(CallStub(callable, context, rhs)); in TF_BUILTIN()
733 Callable callable = in TF_BUILTIN() local
735 var_lhs.Bind(CallStub(callable, context, lhs)); in TF_BUILTIN()
742 Callable callable = CodeFactory::NonNumberToNumber(isolate()); in TF_BUILTIN() local
743 var_lhs.Bind(CallStub(callable, context, lhs)); in TF_BUILTIN()
[all …]
Dbuiltins-conversion.cc40 Callable callable = CodeFactory::GetProperty(assembler->isolate()); in Generate_NonPrimitiveToPrimitive() local
44 assembler->CallStub(callable, context, input, to_primitive_symbol); in Generate_NonPrimitiveToPrimitive()
57 Callable callable = CodeFactory::Call( in Generate_NonPrimitiveToPrimitive() local
61 Node* result = assembler->CallJS(callable, context, exotic_to_prim, input, in Generate_NonPrimitiveToPrimitive()
92 Callable callable = CodeFactory::OrdinaryToPrimitive( in Generate_NonPrimitiveToPrimitive() local
96 assembler->TailCallStub(callable, context, input); in Generate_NonPrimitiveToPrimitive()
255 Callable callable = CodeFactory::GetProperty(assembler->isolate()); in Generate_OrdinaryToPrimitive() local
257 Node* method = assembler->CallStub(callable, context, input, name_string); in Generate_OrdinaryToPrimitive()
270 Callable callable = CodeFactory::Call( in Generate_OrdinaryToPrimitive() local
272 Node* result = assembler->CallJS(callable, context, method, input); in Generate_OrdinaryToPrimitive()
[all …]
/external/swiftshader/src/Reactor/
DMain.cpp66 int (*callable)(int*, int) = (int(*)(int*,int))routine->getEntry(); in TEST() local
68 int result = callable(&one[1], 2); in TEST()
104 int (*callable)() = (int(*)())routine->getEntry(); in TEST() local
105 int result = callable(); in TEST()
148 int (*callable)(void*, void*) = (int(*)(void*,void*))routine->getEntry(); in TEST() local
149 callable(in, out); in TEST()
204 int(*callable)(void*) = (int(*)(void*))routine->getEntry(); in TEST() local
205 callable(out); in TEST()
247 int (*callable)(void*) = (int(*)(void*))routine->getEntry(); in TEST() local
248 callable(out); in TEST()
[all …]
/external/guice/core/src/com/google/inject/internal/
DProvisionListenerStackCallback.java63 public T provision(Errors errors, InternalContext context, ProvisionCallback<T> callable) in provision() argument
65 Provision provision = new Provision(errors, context, callable); in provision()
97 final ProvisionCallback<T> callable; field in ProvisionListenerStackCallback.Provision
103 public Provision(Errors errors, InternalContext context, ProvisionCallback<T> callable) { in Provision() argument
104 this.callable = callable; in Provision()
115 result = callable.call(); in provision()
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DFuturesCombineBenchmark.java86 Callable<Integer> callable = Callables.returning(12);
89 sum += impl.combine(callable, INLINE_EXECUTOR, futures).get();
101 Callable<Integer> callable = Callables.returning(12);
104 sum += impl.combine(callable, INLINE_EXECUTOR, futures).get();
111 Callable<Integer> callable = Callables.returning(12);
115 ListenableFuture<Integer> combined = impl.combine(callable, INLINE_EXECUTOR, futures);
126 Callable<Integer> callable = Callables.returning(12);
131 ListenableFuture<Integer> combined = impl.combine(callable, INLINE_EXECUTOR, futures);
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DTransferRequestIntegrationTest.java73 Callable<Callable<Boolean>> callable = new Callable<Callable<Boolean>>() { in testTransferNonHttpRequest() local
85 Callable<Boolean> transfer = ServletScopes.scopeRequest(callable, seedMap).call(); in testTransferNonHttpRequest()
93 Callable<Boolean> callable = new Callable<Boolean>() { in testTransferNonHttpRequest_concurrentUseBlocks() local
110 assertTrue(ServletScopes.scopeRequest(callable, seedMap).call()); in testTransferNonHttpRequest_concurrentUseBlocks()
114 Callable<Boolean> callable = new Callable<Boolean>() { in testTransferNonHttpRequest_concurrentUseSameThreadOk() local
121 assertFalse(ServletScopes.scopeRequest(callable, seedMap).call()); in testTransferNonHttpRequest_concurrentUseSameThreadOk()
DScopeRequestIntegrationTest.java118 Callable<SomeObject> callable = injector.getInstance(Caller.class); in testNullReplacement() local
120 assertNotNull(callable.call()); in testNullReplacement()
129 callable = ServletScopes.scopeRequest(injector.getInstance(Caller.class), map); in testNullReplacement()
130 assertNull(callable.call()); in testNullReplacement()
/external/python/cpython2/Doc/c-api/
Diterator.rst10 method. The second works with a callable object and a sentinel value, calling
11 the callable for each item in the sequence, and ending the iteration when the
55 .. c:function:: PyObject* PyCallIter_New(PyObject *callable, PyObject *sentinel)
57 Return a new iterator. The first parameter, *callable*, can be any Python
58 callable object that can be called with no parameters; each call to it should
59 return the next item in the iteration. When *callable* returns a value equal to
/external/guava/guava/src/com/google/common/util/concurrent/
DListenableFutureTask.java52 public static <V> ListenableFutureTask<V> create(Callable<V> callable) { in create() argument
53 return new ListenableFutureTask<V>(callable); in create()
73 ListenableFutureTask(Callable<V> callable) { in ListenableFutureTask() argument
74 super(callable); in ListenableFutureTask()
DSimpleTimeLimiter.java100 Callable<Object> callable = new Callable<Object>() { in newProxy()
111 return callWithTimeout(callable, timeoutDuration, timeoutUnit, in newProxy()
120 public <T> T callWithTimeout(Callable<T> callable, long timeoutDuration, in callWithTimeout() argument
122 checkNotNull(callable); in callWithTimeout()
126 Future<T> future = executor.submit(callable); in callWithTimeout()
DCallables.java57 static <T> Callable<T> threadRenaming(final Callable<T> callable,
60 checkNotNull(callable);
67 return callable.call();
DFakeTimeLimiter.java48 public <T> T callWithTimeout(Callable<T> callable, long timeoutDuration, in callWithTimeout() argument
51 return callable.call(); // fooled you in callWithTimeout()
/external/python/cpython2/Modules/_ctypes/
Dcallbacks.c24 Py_XDECREF(self->callable); in CThunkObject_dealloc()
36 Py_VISIT(self->callable); in CThunkObject_traverse()
46 Py_CLEAR(self->callable); in CThunkObject_clear()
210 PyObject *callable, in _CallPythonObject() argument
315 result = PyObject_CallObject(callable, arglist); in _CallPythonObject()
352 PyErr_WriteUnraisable(callable); in _CallPythonObject()
358 PyErr_WriteUnraisable(callable); in _CallPythonObject()
379 p->callable, in closure_fcn()
401 p->callable = NULL; in CThunkObject_new()
412 CThunkObject *_ctypes_alloc_callback(PyObject *callable, in _ctypes_alloc_callback() argument
[all …]
/external/python/cpython2/Objects/
Dfuncobject.c654 PyObject *callable; in cm_init() local
656 if (!PyArg_UnpackTuple(args, "classmethod", 1, 1, &callable)) in cm_init()
660 Py_INCREF(callable); in cm_init()
661 cm->cm_callable = callable; in cm_init()
735 PyClassMethod_New(PyObject *callable) in PyClassMethod_New() argument
740 Py_INCREF(callable); in PyClassMethod_New()
741 cm->cm_callable = callable; in PyClassMethod_New()
809 PyObject *callable; in sm_init() local
811 if (!PyArg_UnpackTuple(args, "staticmethod", 1, 1, &callable)) in sm_init()
815 Py_INCREF(callable); in sm_init()
[all …]
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DInterceptedInvocation.java181 private final Callable<?> callable; field in InterceptedInvocation.SuperMethod.FromCallable
183 public FromCallable(Callable<?> callable) { in FromCallable() argument
184 this.callable = callable; in FromCallable()
195 return callable.call(); in invoke()
/external/droiddriver/src/io/appium/droiddriver/util/
DInstrumentationUtils.java144 public static <V> V runOnMainSyncWithTimeout(Callable<V> callable) { in runOnMainSyncWithTimeout() argument
146 final RunOnMainSyncFutureTask<V> futureTask = new RunOnMainSyncFutureTask<>(callable); in runOnMainSyncWithTimeout()
189 public RunOnMainSyncFutureTask(Callable<V> callable) { in RunOnMainSyncFutureTask() argument
190 super(callable); in RunOnMainSyncFutureTask()
/external/python/cpython2/Doc/library/
Dfunctools.rst1 :mod:`functools` --- Higher-order functions and operations on callable objects
5 :synopsis: Higher-order functions and operations on callable objects.
18 or return other functions. In general, any callable object can be treated as a
32 A comparison function is any callable that accept two arguments, compares them,
34 number for greater-than. A key function is a callable that accepts one
98 a callable that behaves like the :func:`int` function where the *base* argument
165 :class:`partial` objects are callable objects created by :func:`partial`. They
171 A callable object or function. Calls to the :class:`partial` object will be
187 callable, weak referencable, and can have attributes. There are some important
/external/python/cpython2/Lib/test/
Dtest_sys_setprofile.py93 def check_events(self, callable, expected): argument
94 events = capture_events(callable, self.new_watcher())
355 def capture_events(callable, p=None): argument
364 protect(callable, p)
372 def show_events(callable): argument
374 pprint.pprint(capture_events(callable))
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DSameThreadScheduledExecutorService.java142 return schedule(java.util.concurrent.Executors.callable(command), in schedule()
176 public <V> ListenableScheduledFuture<V> schedule(final Callable<V> callable, in schedule() argument
178 Preconditions.checkNotNull(callable, "callable must not be null!"); in schedule()
180 ListenableFuture<V> delegateFuture = submit(callable); in schedule()
/external/junit/src/main/java/org/junit/internal/runners/statements/
DFailOnTimeout.java98 CallableStatement callable = new CallableStatement(); in evaluate() local
99 FutureTask<Throwable> task = new FutureTask<Throwable>(callable); in evaluate()
103 callable.awaitStarted(); in evaluate()

12345678910>>...12