/external/v8/src/runtime/ |
D | runtime-promise.cc | 23 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION() 47 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION() 57 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION() 67 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION() 110 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION() 118 CONVERT_ARG_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION() 127 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION() 135 Handle<JSPromise> AwaitPromisesInitCommon(Isolate* isolate, in AwaitPromisesInitCommon() 137 Handle<JSPromise> promise, in AwaitPromisesInitCommon() 138 Handle<JSPromise> outer_promise, in AwaitPromisesInitCommon() [all …]
|
D | runtime-debug.cc | 260 Handle<JSPromise> promise = Handle<JSPromise>::cast(object); in GetInternalProperties() 261 const char* status = JSPromise::Status(promise->status()); in GetInternalProperties() 767 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION() 777 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION() 786 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION() 795 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 1); in RUNTIME_FUNCTION()
|
/external/v8/src/objects/ |
D | js-promise.h | 30 class JSPromise : public TorqueGeneratedJSPromise<JSPromise, JSObject> { 53 V8_EXPORT_PRIVATE static Handle<Object> Fulfill(Handle<JSPromise> promise, 56 static Handle<Object> Reject(Handle<JSPromise> promise, Handle<Object> reason, 60 Handle<JSPromise> promise, Handle<Object> resolution); 63 DECL_PRINTER(JSPromise) 64 DECL_VERIFIER(JSPromise) 83 TQ_OBJECT_CONSTRUCTORS(JSPromise)
|
D | js-promise-inl.h | 21 TQ_OBJECT_CONSTRUCTORS_IMPL(JSPromise) 23 BOOL_ACCESSORS(JSPromise, flags, has_handler, HasHandlerBit::kShift) in BOOL_ACCESSORS() argument 24 BOOL_ACCESSORS(JSPromise, flags, handled_hint, HandledHintBit::kShift) in BOOL_ACCESSORS() 26 Object JSPromise::result() const { in BOOL_ACCESSORS() 31 Object JSPromise::reactions() const { in reactions()
|
D | promise.tq | 33 // Either a JSPromise (in case of native promises), a PromiseCapability 35 promise_or_capability: JSPromise|PromiseCapability|Undefined; 57 // Either a JSPromise (in case of native promises), a PromiseCapability 59 promise_or_capability: JSPromise|PromiseCapability|Undefined; 74 promise_to_resolve: JSPromise;
|
D | source-text-module.cc | 612 Handle<JSPromise> top_level_capability( in EvaluateMaybeAsync() 613 JSPromise::cast(module->top_level_capability()), isolate); in EvaluateMaybeAsync() 618 Handle<JSPromise> capability = isolate->factory()->NewJSPromise(); in EvaluateMaybeAsync() 619 JSPromise::Reject(capability, handle(module->exception(), isolate)); in EvaluateMaybeAsync() 636 return handle(JSPromise::cast(module->top_level_capability()), isolate); in EvaluateMaybeAsync() 641 Handle<JSPromise> capability = isolate->factory()->NewJSPromise(); in EvaluateMaybeAsync() 663 JSPromise::Reject(capability, handle(module->exception(), isolate)); in EvaluateMaybeAsync() 673 JSPromise::Resolve(capability, isolate->factory()->undefined_value()) in EvaluateMaybeAsync() 801 Handle<JSPromise> capability( in AsyncModuleExecutionFulfilled() 802 JSPromise::cast(module->top_level_capability()), isolate); in AsyncModuleExecutionFulfilled() [all …]
|
D | js-promise.tq | 13 extern class JSPromise extends JSObject { 33 // Smi 0 terminated list of PromiseReaction objects in case the JSPromise was
|
D | js-generator.tq | 31 promise: JSPromise; 48 promise: JSPromise;
|
D | js-generator.h | 18 class JSPromise; variable
|
/external/v8/src/builtins/ |
D | builtins-async-function-gen.cc | 47 TNode<JSPromise> promise = LoadObjectField<JSPromise>( in AsyncFunctionAwaitResumeClosure() 107 TNode<IntPtrT> size = IntPtrConstant(JSPromise::kSizeWithEmbedderFields + in TF_BUILTIN() 117 TNode<JSPromise> promise = UncheckedCast<JSPromise>( in TF_BUILTIN() 120 StoreObjectFieldRoot(promise, JSPromise::kPropertiesOrHashOffset, in TF_BUILTIN() 122 StoreObjectFieldRoot(promise, JSPromise::kElementsOffset, in TF_BUILTIN() 183 TNode<JSPromise> promise = LoadObjectField<JSPromise>( in TF_BUILTIN() 208 TNode<JSPromise> promise = LoadObjectField<JSPromise>( in TF_BUILTIN() 227 auto promise = Parameter<JSPromise>(Descriptor::kPromise); in TF_BUILTIN() 266 TNode<JSPromise> outer_promise = LoadObjectField<JSPromise>( in AsyncFunctionAwait()
|
D | builtins-promise-gen.cc | 24 TNode<JSPromise> promise) { in ZeroOutEmbedderOffsets() 25 for (int offset = JSPromise::kHeaderSize; in ZeroOutEmbedderOffsets() 26 offset < JSPromise::kSizeWithEmbedderFields; offset += kTaggedSize) { in ZeroOutEmbedderOffsets() 33 return Allocate(JSPromise::kSizeWithEmbedderFields); in AllocateJSPromise()
|
D | builtins-async-gen.h | 25 TNode<JSPromise> outer_promise, 31 TNode<JSPromise> outer_promise, in Await() 54 TNode<Object> value, TNode<JSPromise> outer_promise, 60 TNode<JSPromise> promise, 61 TNode<JSPromise> outer_promise,
|
D | promise-misc.tq | 15 extern macro PromiseBuiltinsAssembler::ZeroOutEmbedderOffsets(JSPromise): void; 24 macro PromiseHasHandler(promise: JSPromise): bool { 29 macro PromiseInit(promise: JSPromise): void { 40 macro InnerNewJSPromise(implicit context: Context)(): JSPromise { 46 const promise = UnsafeCast<JSPromise>(promiseHeapObject); 61 promiseOrCapability: JSPromise|PromiseCapability| 78 promiseOrCapability: JSPromise|PromiseCapability| 100 JSPromise { 112 transitioning macro NewJSPromise(implicit context: Context)(): JSPromise { 120 status: constexpr PromiseState, result: JSAny): JSPromise { [all …]
|
D | promise-jobs.tq | 14 promiseToResolve: JSPromise, thenable: JSReceiver, then: JSAny): JSAny { 16 // initial Promise.prototype.then method, and {thenable} is a JSPromise 20 // temporary JSPromise and the closures plus context. 30 // We know that the {thenable} is a JSPromise, which doesn't require 33 // JSPromise to connect the {thenable} with the {promise_to_resolve}, 36 // JSPromise allocation, but also avoids the allocation of the two 58 UnsafeCast<JSPromise>(thenable), UndefinedConstant(),
|
D | promise-reaction-job.tq | 12 promiseOrCapability: JSPromise|PromiseCapability|Undefined, reason: JSAny, 16 case (promise: JSPromise): { 45 promiseOrCapability: JSPromise|PromiseCapability|Undefined, result: JSAny, 48 case (promise: JSPromise): { 75 promiseOrCapability: JSPromise|PromiseCapability|Undefined, 111 promiseOrCapability: JSPromise|PromiseCapability|Undefined): JSAny { 119 promiseOrCapability: JSPromise|PromiseCapability|Undefined): JSAny {
|
D | builtins-async-gen.cc | 29 TNode<Object> value, TNode<JSPromise> outer_promise, in AwaitOld() 38 kWrappedPromiseOffset + JSPromise::kSizeWithEmbedderFields; in AwaitOld() 74 IntPtrConstant(JSPromise::kSizeWithEmbedderFields / in AwaitOld() 76 TNode<JSPromise> promise; in AwaitOld() 82 StoreObjectFieldRoot(wrapped_value, JSPromise::kPropertiesOrHashOffset, in AwaitOld() 84 StoreObjectFieldRoot(wrapped_value, JSPromise::kElementsOffset, in AwaitOld() 124 TNode<JSPromise> promise, TNode<JSPromise> outer_promise, in AwaitOptimized() 192 TNode<Object> value, TNode<JSPromise> outer_promise, in Await()
|
D | promise-abstract-operations.tq | 10 RejectPromise(implicit context: Context)(JSPromise, JSAny, Boolean): JSAny; 13 PromiseRevokeReject(implicit context: Context)(JSPromise): JSAny; 16 PromiseRejectAfterResolved(implicit context: Context)(JSPromise, JSAny): JSAny; 19 PromiseResolveAfterResolved(implicit context: Context)(JSPromise, JSAny): JSAny; 22 PromiseRejectEventFromStack(implicit context: Context)(JSPromise, JSAny): JSAny; 44 ResolvePromise(Context, JSPromise, JSAny): JSAny; 155 // JSPromise in the reverse order. 195 promise: JSPromise, value: JSAny): Undefined { 222 promise: JSPromise, reason: JSAny, debugEvent: Boolean): JSAny { 259 kPromiseSlot: Slot<PromiseResolvingFunctionContext, JSPromise>, [all …]
|
D | promise-resolve.tq | 9 ResolvePromise(implicit context: Context)(JSPromise, JSAny): JSAny; 35 // Check if {value} is a JSPromise. 36 const value = Cast<JSPromise>(value) otherwise NeedToAllocate; 41 // JSPromise instances which have the (initial) Promise.prototype. 91 promise: JSPromise, resolution: JSAny): JSAny { 99 // to be a JSPromise inside this function and thus is reference comparable. 123 // on JSPromise instances which have the (initial) %PromisePrototype%.
|
D | builtins-async-generator-gen.cc | 102 inline TNode<JSPromise> LoadPromiseFromAsyncGeneratorRequest( in LoadPromiseFromAsyncGeneratorRequest() 104 return LoadObjectField<JSPromise>(request, in LoadPromiseFromAsyncGeneratorRequest() 129 TNode<Object> resume_value, TNode<JSPromise> promise); 151 TNode<JSPromise> promise = NewJSPromise(context); in AsyncGeneratorEnqueue() 196 TNode<JSPromise> promise) { in AllocateAsyncGeneratorRequest() 242 TNode<JSPromise> outer_promise = LoadObjectField<JSPromise>( in AsyncGeneratorAwait() 494 const TNode<JSPromise> promise = LoadPromiseFromAsyncGeneratorRequest(next); in TF_BUILTIN() 556 TNode<JSPromise> promise = LoadPromiseFromAsyncGeneratorRequest(next); in TF_BUILTIN() 570 const TNode<JSPromise> outer_promise = in TF_BUILTIN() 637 const TNode<JSPromise> outer_promise = in TF_BUILTIN()
|
D | builtins-async-iterator-gen.cc | 34 const TNode<JSPromise> promise, Label* if_exception)>; 111 const TNode<JSPromise> promise = NewJSPromise(context); in Generate_AsyncFromSyncIteratorMethod() 307 const TNode<JSPromise> promise, in TF_BUILTIN() 339 const TNode<JSPromise> promise, in TF_BUILTIN()
|
D | promise-then.tq | 25 const promise = Cast<JSPromise>(receiver) otherwise ThrowTypeError( 33 let resultPromiseOrCapability: JSPromise|PromiseCapability;
|
D | builtins-promise-gen.h | 20 void ZeroOutEmbedderOffsets(TNode<JSPromise> promise);
|
D | promise-constructor.tq | 69 let result: JSPromise; 73 result = UnsafeCast<JSPromise>(
|
/external/v8/src/heap/ |
D | memory-measurement.cc | 97 Handle<JSPromise> promise, v8::MeasureMemoryMode mode); 109 Handle<JSPromise> promise_; 116 Handle<JSPromise> promise, in MeasureMemoryDelegate() 165 JSPromise::Resolve(promise_, result).ToHandleChecked(); in MeasurementComplete() 334 Isolate* isolate, Handle<NativeContext> context, Handle<JSPromise> promise, in DefaultDelegate()
|
/external/v8/src/execution/ |
D | isolate.cc | 899 void CaptureAsyncStackTrace(Isolate* isolate, Handle<JSPromise> promise, in CaptureAsyncStackTrace() 942 promise = handle(JSPromise::cast(async_generator_request->promise()), in CaptureAsyncStackTrace() 963 promise = handle(JSPromise::cast(capability->promise()), isolate); in CaptureAsyncStackTrace() 981 promise = handle(JSPromise::cast(capability->promise()), isolate); in CaptureAsyncStackTrace() 988 handle(JSPromise::cast(context->get(PromiseBuiltins::kPromiseSlot)), in CaptureAsyncStackTrace() 997 promise = Handle<JSPromise>::cast(promise_or_capability); in CaptureAsyncStackTrace() 1002 promise = handle(JSPromise::cast(capability->promise()), isolate); in CaptureAsyncStackTrace() 1123 Handle<JSPromise> promise(async_function_object->promise(), in CaptureStackTrace() 1133 Handle<JSPromise> promise( in CaptureStackTrace() 1134 JSPromise::cast(async_generator_request->promise()), isolate); in CaptureStackTrace() [all …]
|