| /ark/js_runtime/test/moduletest/promise/ |
| D | promise.js | 16 var p = new Promise((resolve, reject) => { 17 resolve(1479); 20 var p2 = Promise.resolve(2468); 24 print("resolve"); 41 print("resolve");
|
| D | expect_output.txt | 18 resolve
|
| /ark/js_runtime/ecmascript/builtins/ |
| D | builtins_promise_handler.cpp | 29 // 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 …]
|
| D | builtins_promise_handler.h | 24 // 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
|
| D | builtins_promise.cpp | 71 …// 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 …]
|
| D | builtins_promise.h | 37 // 25.4.4.5 Promise.resolve ( x ) 38 static JSTaggedValue Resolve(EcmaRuntimeCallInfo *argv);
|
| D | builtins_promise_job.cpp | 71 // 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/ |
| D | js_promise.cpp | 40 …// 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 …]
|
| D | js_async_function.cpp | 46 // 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()
|
| D | js_promise.h | 29 enum class PromiseType : uint8_t { RESOLVE = 0, REJECT }; enumerator 56 ACCESSORS(Resolve, RESOLVE_OFFSET, REJECT_OFFSET);
|
| /ark/js_runtime/ecmascript/tests/ |
| D | js_promise_test.cpp | 68 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/ |
| D | webpack.config.js | 24 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/ |
| D | builtins_promise_test.cpp | 109 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/ |
| D | job_fill_gen.h.erb | 114 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/ |
| D | isa.yaml | 208 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/ |
| D | asyncFunctionBuilder.ts | 93 // .resolve 98 resolve(node: ts.Node | NodeKind, value: VReg) { method in AsyncFunctionBuilder
|
| /ark/runtime_core/tests/cts-generator/cts-template/ |
| D | ldobj.obj.yaml | 215 …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
|
| D | stobj.obj.yaml | 225 …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
|
| D | newobj.yaml | 36 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 174 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 217 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 278 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their
|
| D | isinstance.yaml | 49 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved… 155 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved… 280 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved…
|
| /ark/runtime_core/tests/cts-generator/ |
| D | verifier.debug.config | 22 cflow, resolve-id, typing, absint
|
| /ark/ts2abc/ts2panda/src/ |
| D | scope.ts | 189 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/ |
| D | messages.yaml | 150 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/ |
| D | itable_builder.h | 34 virtual void Resolve(Class *klass) = 0;
|
| /ark/runtime_core/verification/debug/ |
| D | default_config.cpp | 45 " cflow, resolve-id, typing\n"
|