Home
last modified time | relevance | path

Searched full:resolve (Results 1 – 25 of 78) sorted by relevance

1234

/ark/js_runtime/test/moduletest/promise/
Dpromise.js16 var p = new Promise((resolve, reject) => {
17 resolve(1479);
20 var p2 = Promise.resolve(2468);
24 print("resolve");
41 print("resolve");
Dexpect_output.txt18 resolve
/ark/js_runtime/ecmascript/builtins/
Dbuiltins_promise_handler.cpp29 // es6 25.4.1.3.2 Promise Resolve Functions
30 JSTaggedValue BuiltinsPromiseHandler::Resolve(EcmaRuntimeCallInfo *argv) in Resolve() function in panda::ecmascript::builtins::BuiltinsPromiseHandler
33 BUILTINS_API_TRACE(argv->GetThread(), PromiseHandler, Resolve); in Resolve()
41 …JSHandle<JSPromiseReactionsFunction> resolve = JSHandle<JSPromiseReactionsFunction>::Cast(GetConst… in Resolve() local
42 ASSERT_PRINT(resolve->GetPromise().IsECMAObject(), "Resolve: promise must be js object"); in Resolve()
48 JSHandle<JSPromise> resolvePromise(thread, resolve->GetPromise()); in Resolve()
49 JSHandle<PromiseRecord> alreadyResolved(thread, resolve->GetAlreadyResolved()); in Resolve()
61 …factory->GetJSError(ErrorType::TYPE_ERROR, "Resolve: The promise and resolution cannot be the same… in Resolve()
147 // 3. If promiseCapability.[[Resolve]] is not undefined, throw a TypeError exception. in Executor()
150 …THROW_TYPE_ERROR_AND_RETURN(thread, "Executor: resolve should be undefine!", JSTaggedValue::Undefi… in Executor()
[all …]
Dbuiltins_promise_handler.h24 // es6 26.6.1.3.1 Promise Resolve Functions
25 static JSTaggedValue Resolve(EcmaRuntimeCallInfo *argv);
39 // es6 25.4.4.1.2 Promise.all Resolve Element Functions
Dbuiltins_promise.cpp71 …// 9. Let completion be Call(executor, undefined, «resolvingFunctions.[[Resolve]], resolvingFuncti… in PromiseConstructor()
228 // 25.4.4.5 Promise.resolve ( x )
229 JSTaggedValue BuiltinsPromise::Resolve(EcmaRuntimeCallInfo *argv) in Resolve() function in panda::ecmascript::builtins::BuiltinsPromise
232 BUILTINS_API_TRACE(argv->GetThread(), Promise, Resolve); in Resolve()
241 …THROW_TYPE_ERROR_AND_RETURN(thread, "Resolve: this value is not object", JSTaggedValue::Exception(… in Resolve()
262 // 6. Let resolveResult be Call(promiseCapability.[[Resolve]], undefined, «x»). in Resolve()
264 JSHandle<JSTaggedValue> resolve(thread, promiseCapability->GetResolve()); in Resolve() local
268 JSFunction::Call(thread, resolve, undefined, 1, arguments->GetArgv()); in Resolve()
477 … // 2. Let resolveResult be Call(resultCapability.[[Resolve]], undefined, «valuesArray»). in PerformPromiseAll()
508 // i. Let nextPromise be Invoke(constructor, "resolve", «‍nextValue»). in PerformPromiseAll()
[all …]
Dbuiltins_promise.h37 // 25.4.4.5 Promise.resolve ( x )
38 static JSTaggedValue Resolve(EcmaRuntimeCallInfo *argv);
Dbuiltins_promise_job.cpp71 // 8. Let status be Call(promiseCapability.[[Resolve]], undefined, «handlerResult.[[value]]»). in PromiseReactionJob()
90 …// 2. Let thenCallResult be Call(then, thenable, «resolvingFunctions.[[Resolve]], resolvingFunctio… in PromiseResolveThenableJob()
/ark/js_runtime/ecmascript/
Djs_promise.cpp40 …// 2. Let resolve be a new built-in function object as defined in Promise Resolve Functions (25.4.… in CreateResolvingFunctions()
41 JSHandle<JSPromiseReactionsFunction> resolve = in CreateResolvingFunctions() local
42 …ctory->CreateJSPromiseReactionsFunction(reinterpret_cast<void *>(BuiltinsPromiseHandler::Resolve)); in CreateResolvingFunctions()
43 // 3. Set the [[Promise]] internal slot of resolve to promise. in CreateResolvingFunctions()
44 resolve->SetPromise(thread, promise); in CreateResolvingFunctions()
45 // 4. Set the [[AlreadyResolved]] internal slot of resolve to alreadyResolved. in CreateResolvingFunctions()
46 resolve->SetAlreadyResolved(thread, record); in CreateResolvingFunctions()
54 // 8. Return a new Record { [[Resolve]]: resolve, [[Reject]]: reject }. in CreateResolvingFunctions()
56 reactions->SetResolveFunction(thread, resolve.GetTaggedValue()); in CreateResolvingFunctions()
91 …// 3. Let promiseCapability be a new PromiseCapability { [[Promise]]: undefined, [[Resolve]]: unde… in NewPromiseCapability()
[all …]
Djs_async_function.cpp46 // 3.Let resolveResult be ! Call(promiseCapability.[[Resolve]], undefined, « value »). in AsyncFunctionAwait()
47 JSHandle<JSTaggedValue> resolve(thread, pcap->GetResolve()); in AsyncFunctionAwait() local
51 …[[maybe_unused]] JSTaggedValue res = JSFunction::Call(thread, resolve, thisArg, 1, arguments->GetA… in AsyncFunctionAwait()
Djs_promise.h29 enum class PromiseType : uint8_t { RESOLVE = 0, REJECT }; enumerator
56 ACCESSORS(Resolve, RESOLVE_OFFSET, REJECT_OFFSET);
/ark/js_runtime/ecmascript/tests/
Djs_promise_test.cpp68 JSHandle<JSTaggedValue> resolve(thread, reactions->GetResolveFunction()); in HWTEST_F_L0() local
70 EXPECT_EQ(resolve->IsCallable(), true); in HWTEST_F_L0()
84 JSHandle<JSPromiseReactionsFunction> resolve(thread, capbility->GetResolve()); in HWTEST_F_L0() local
86 EXPECT_EQ(resolve.GetTaggedValue().IsCallable(), true); in HWTEST_F_L0()
87 EXPECT_EQ(resolve.GetTaggedValue().IsCallable(), true); in HWTEST_F_L0()
89 JSHandle<JSPromise> resolve_promise(thread, resolve->GetPromise()); in HWTEST_F_L0()
105 JSHandle<JSTaggedValue> resolve(thread, capbility->GetResolve()); in HWTEST_F_L0() local
109 JSFunction::Call(thread, resolve, undefined, 1, arguments->GetArgv()); in HWTEST_F_L0()
/ark/ts2abc/ts2panda/
Dwebpack.config.js24 root: path.resolve(__dirname),
35 resolve: { property
45 path: path.resolve(__dirname, 'dist/src'),
56 configFile: path.resolve(__dirname, './tsconfig.json'),
/ark/js_runtime/ecmascript/builtins/tests/
Dbuiltins_promise_test.cpp109 auto expect = factory->NewFromCanBeCompressString("resolve"); in TestPromiseThenOnResolved()
200 * @tc.desc: The resolve method receives a number.
211 * @tc.steps: step1. var p1 = Promise.resolve(12345) in HWTEST_F_L0()
219 JSTaggedValue result = BuiltinsPromise::Resolve(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
227 * @tc.desc: The resolve method receives a promise object.
256 * @tc.steps: step2. var p2 = Promise.resolve(p1) in HWTEST_F_L0()
264 JSTaggedValue result1 = BuiltinsPromise::Resolve(ecmaRuntimeCallInfo1.get()); in HWTEST_F_L0()
299 * @tc.steps: step2. var p2 = Promise.resolve(6789) in HWTEST_F_L0()
307 JSTaggedValue result2 = BuiltinsPromise::Resolve(ecmaRuntimeCallInfo2.get()); in HWTEST_F_L0()
367 * @tc.steps: step2. var p2 = Promise.resolve(6789) in HWTEST_F_L0()
[all …]
/ark/runtime_core/verification/gen/templates/
Djob_fill_gen.h.erb114 LOG(DEBUG, VERIFIER) << "JOBFILL: Cannot resolve method";
124 LOG(DEBUG, VERIFIER) << "JOBFILL: Cannot resolve field";
134 LOG(DEBUG, VERIFIER) << "JOBFILL: Cannot resolve field";
143 LOG(DEBUG, VERIFIER) << "JOBFILL: Cannot resolve string class";
/ark/runtime_core/isa/
Disa.yaml208 description: Method_id must resolve to a static method.
210 description: Method_id must resolve to a non-static method.
212 description: Method_id must resolve to a method that has implementation.
214 description: Method_id must resolve to a method which is accessible.
216 description: Id must resolve into a constant-pool string.
218 description: Id must resolve into a constant literalarray.
222 description: Method_id must resolve into initializer for a type other than array.
226 description: Field_id must resolve to a non-static object field.
228 description: Field_id must resolve to a static field.
230 description: Field_id must resolve to a field of size corresponding to bytecode.
[all …]
/ark/ts2abc/ts2panda/src/function/
DasyncFunctionBuilder.ts93 // .resolve
98 resolve(node: ts.Node | NodeKind, value: VReg) { method in AsyncFunctionBuilder
/ark/runtime_core/tests/cts-generator/cts-template/
Dldobj.obj.yaml215 …description: Check that verifier reports error when the field doesn't resolve to a non-static obje…
283 # cannot resolve, because it's a i32 number
287 # cannot resolve, because it's a f64 number
291 # cannot resolve, because it's a "null" string
Dstobj.obj.yaml225 …description: Check that verifier reports error when the field doesn't resolve to a non-static obje…
291 # cannot resolve, because it's a i32 number
295 # cannot resolve, because it's a f64 number
299 # cannot resolve, because it's a "null" string
Dnewobj.yaml36Resolve class type from type_id, allocate memory for an object, initialize its fields with their
174Resolve class type from type_id, allocate memory for an object, initialize its fields with their
217Resolve class type from type_id, allocate memory for an object, initialize its fields with their
278Resolve class type from type_id, allocate memory for an object, initialize its fields with their
Disinstance.yaml49Resolve object type by specified id and if an object in accumulator is an instance of the resolved…
155Resolve object type by specified id and if an object in accumulator is an instance of the resolved…
280Resolve object type by specified id and if an object in accumulator is an instance of the resolved…
/ark/runtime_core/tests/cts-generator/
Dverifier.debug.config22 cflow, resolve-id, typing, absint
/ark/ts2abc/ts2panda/src/
Dscope.ts189 let resolve = null;
194 resolve = curScope.findLocal(name);
195 if (resolve) {
197 LOGD(undefined, resolve);
198 return { scope: curScope, level: tmpLevel, v: resolve };
/ark/runtime_core/verification/
Dmessages.yaml150 message: Cannot resolve ${#kind} with id=${std::hex << id << std::dec}.
210 Cannot resolve field type. Field is '%{field}'
491 Cannot resolve class id 0x${class_id}
502 Cannot resolve method id 0x${method_id}
513 Cannot resolve field id 0x${field_id}
/ark/runtime_core/runtime/include/
Ditable_builder.h34 virtual void Resolve(Class *klass) = 0;
/ark/runtime_core/verification/debug/
Ddefault_config.cpp45 " cflow, resolve-id, typing\n"

1234