Home
last modified time | relevance | path

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

123456

/arkcompiler/ets_runtime/test/moduletest/promise/
Dpromise.js22 var p = new Promise((resolve, reject) => {
23 resolve(1479);
26 var p2 = Promise.resolve(2468);
30 print("resolve");
47 print("resolve");
/arkcompiler/ets_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
107 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, resolve, undefined, undefi… in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_promise.cpp41 …// 2. Let resolve be a new built-in function object as defined in Promise Resolve Functions (25.4.… in CreateResolvingFunctions()
42 JSHandle<JSPromiseReactionsFunction> resolve = factory->CreateJSPromiseReactionsFunction( in CreateResolvingFunctions() local
44 // 3. Set the [[Promise]] internal slot of resolve to promise. in CreateResolvingFunctions()
45 resolve->SetPromise(thread, promise); in CreateResolvingFunctions()
46 // 4. Set the [[AlreadyResolved]] internal slot of resolve to alreadyResolved. in CreateResolvingFunctions()
47 resolve->SetAlreadyResolved(thread, record); in CreateResolvingFunctions()
55 // 8. Return a new Record { [[Resolve]]: resolve, [[Reject]]: reject }. in CreateResolvingFunctions()
57 reactions->SetResolveFunction(thread, resolve.GetTaggedValue()); in CreateResolvingFunctions()
92 …// 3. Let promiseCapability be a new PromiseCapability { [[Promise]]: undefined, [[Resolve]]: unde… in NewPromiseCapability()
109 // 8. If IsCallable(promiseCapability.[[Resolve]]) is false, throw a TypeError exception. in NewPromiseCapability()
[all …]
/arkcompiler/ets_frontend/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'),
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_promise_test.cpp109 auto expect = factory->NewFromASCII("resolve"); in TestPromiseThenOnResolved()
203 * @tc.desc: The resolve method receives a number.
214 * @tc.steps: step1. var p1 = Promise.resolve(12345) in HWTEST_F_L0()
222 JSTaggedValue result = BuiltinsPromise::Resolve(ecmaRuntimeCallInfo1); in HWTEST_F_L0()
231 * @tc.desc: The resolve method receives a promise object.
261 * @tc.steps: step2. var p2 = Promise.resolve(p1) in HWTEST_F_L0()
269 JSTaggedValue result1 = BuiltinsPromise::Resolve(ecmaRuntimeCallInfo1); in HWTEST_F_L0()
306 * @tc.steps: step2. var p2 = Promise.resolve(6789) in HWTEST_F_L0()
314 JSTaggedValue result2 = BuiltinsPromise::Resolve(ecmaRuntimeCallInfo2); in HWTEST_F_L0()
377 * @tc.steps: step2. var p2 = Promise.resolve(6789) in HWTEST_F_L0()
[all …]
/arkcompiler/ets_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_job.cpp84 // 8. Let status be Call(promiseCapability.[[Resolve]], undefined, «handlerResult.[[value]]»). in PromiseReactionJob()
102 …// 2. Let thenCallResult be Call(then, thenable, «resolvingFunctions.[[Resolve]], resolvingFunctio… in PromiseResolveThenableJob()
103 …const int32_t argsLength = 2; // 2: «resolvingFunctions.[[Resolve]], resolvingFunctions.[[Reject]]» in PromiseResolveThenableJob()
136 JSHandle<JSPromiseReactionsFunction> resolve(GetCallArg(argv, 0)); in DynamicImportJob() local
204 JSHandle<JSTaggedValue>(resolve), in DynamicImportJob()
Dbuiltins_async_iterator.cpp50 JSHandle<JSTaggedValue> resolve(thread, pcap->GetResolve()); in Return() local
52 …EcmaRuntimeCallInfo* info = EcmaInterpreter::NewRuntimeCallInfo(thread, resolve, undefined, undefi… in Return()
Dbuiltins_promise.h37 // 25.4.4.5 Promise.resolve ( x )
38 static JSTaggedValue Resolve(EcmaRuntimeCallInfo *argv);
Dbuiltins_async_from_sync_iterator.cpp91 JSHandle<JSTaggedValue> resolve(thread, pcap->GetResolve()); in Throw() local
93 EcmaInterpreter::NewRuntimeCallInfo(thread, resolve, undefined, undefined, 1); in Throw()
159 JSHandle<JSTaggedValue> resolve(thread, pcap->GetResolve()); in Return() local
161 EcmaInterpreter::NewRuntimeCallInfo(thread, resolve, undefined, undefined, 1); in Return()
Dbuiltins_promise.cpp72 …// 9. Let completion be Call(executor, undefined, «resolvingFunctions.[[Resolve]], resolvingFuncti… in PromiseConstructor()
76 …const int32_t argsLength = 2; // 2: «resolvingFunctions.[[Resolve]], resolvingFunctions.[[Reject]]» in PromiseConstructor()
234 // 25.4.4.5 Promise.resolve ( x )
235 JSTaggedValue BuiltinsPromise::Resolve(EcmaRuntimeCallInfo *argv) in Resolve() function in panda::ecmascript::builtins::BuiltinsPromise
238 BUILTINS_API_TRACE(argv->GetThread(), Promise, Resolve); in Resolve()
247 …THROW_TYPE_ERROR_AND_RETURN(thread, "Resolve: this value is not object", JSTaggedValue::Exception(… in Resolve()
268 // 6. Let resolveResult be Call(promiseCapability.[[Resolve]], undefined, «x»). in Resolve()
270 JSHandle<JSTaggedValue> resolve(thread, promiseCapability->GetResolve()); in Resolve() local
272 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, resolve, undefined, undefi… in Resolve()
488 … // 2. Let resolveResult be Call(resultCapability.[[Resolve]], undefined, «valuesArray»). in PerformPromiseAll()
[all …]
/arkcompiler/ets_frontend/test262/
Dmodule_tests.txt208 instn-resolve-empty-export_FIXTURE.js
209 instn-resolve-empty-export.js
210 instn-resolve-empty-import_FIXTURE.js
211 instn-resolve-empty-import.js
212 instn-resolve-err-syntax-1_FIXTURE.js
213 instn-resolve-err-syntax-1.js
214 instn-resolve-err-syntax-2_FIXTURE.js
215 instn-resolve-err-syntax-2.js
216 instn-resolve-order-depth-child_FIXTURE.js
217 instn-resolve-order-depth.js
[all …]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dreg_alloc_base.h88 // resolve graph
89 virtual bool Resolve();
128 // Post resolve actions
Dreg_alloc_base.cpp66 if (!Resolve()) { in RunImpl()
113 bool RegAllocBase::Resolve() in Resolve() function in panda::compiler::RegAllocBase
122 // Resolve Phi and SaveState in Resolve()
123 RegAllocResolver(GetGraph()).Resolve(); in Resolve()
128 // Resolve spill-fills overwriting in Resolve()
Dspill_fills_resolver.cpp54 void SpillFillsResolver::Resolve(SpillFillInst *spill_fill_inst) in Resolve() function in panda::compiler::SpillFillsResolver
63 Resolve(spill_fill_inst); in ResolveIfRequired()
82 resolver->Resolve(spill_fill_inst); in VisitSpillFill()
241 …* Check if the chain of moves is cyclically dependent (R3->R1, R2->R3, R1->R2) and resolve it with…
324 // There are no temp registers in the Arch::AARCH32, use stack slot to resolve in GetResolver()
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dobject_type_check_elimination.cpp77 // If we can't resolve klass in runtime we must throw exception, so we check NullPtr after in TryEliminateIsInstance()
78 // But we can't change the IsInstance to Deoptimize, because we can resolve after compilation in TryEliminateIsInstance()
112 // If we can't resolve klass in runtime we must throw exception, so we check NullPtr after in TryEliminateCheckCast()
113 // But we can't change the CheckCast to Deoptimize, because we can resolve after compilation in TryEliminateCheckCast()
/arkcompiler/runtime_core/runtime/include/
Ditable_builder.h33 virtual void Resolve(Class *klass) = 0;
54 void Resolve([[maybe_unused]] Class *klass) override {} in Resolve() function
/arkcompiler/toolchain/tooling/test/testcases/js/
Dstep.js19 return new Promise(resolve => {
20 resolve("test");
/arkcompiler/runtime_core/runtime/
Dloadable_agent.cpp42 … LOG(ERROR, RUNTIME) << "Couldn't resolve '" << load_callback_name_ << "' in '" << library_path_ in Load()
49 … LOG(ERROR, RUNTIME) << "Couldn't resolve '" << unload_callback_name_ << "' in '" << library_path_ in Load()
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dnewobj.yaml36Resolve class type from type_id, allocate memory for an object, initialize its fields with their
199Resolve class type from type_id, allocate memory for an object, initialize its fields with their
240Resolve class type from type_id, allocate memory for an object, initialize its fields with their
283Resolve class type from type_id, allocate memory for an object, initialize its fields with their
344Resolve class type from type_id, allocate memory for an object, initialize its fields with their
412Resolve class type from type_id, allocate memory for an object, initialize its fields with their
759Resolve class type from type_id, allocate memory for an object, initialize its fields with their
1133Resolve class type from type_id, allocate memory for an object, initialize its fields with their
1177Resolve class type from type_id, allocate memory for an object, initialize its fields with their
/arkcompiler/runtime_core/verification/gen/templates/
Djob_fill_gen.h.erb139 LOG(DEBUG, VERIFIER) << "JOBFILL: Cannot resolve method with id " << id << " in method "
148 LOG(DEBUG, VERIFIER) << "JOBFILL: Cannot resolve field with id " << id << " in method "
157 LOG(DEBUG, VERIFIER) << "JOBFILL: Cannot resolve class with id " << id << " in method "
167 …LOG(DEBUG, VERIFIER) << "JOBFILL: Cannot resolve string class in method " << cached_method_.GetNam…
/arkcompiler/runtime_core/tests/cts-generator/
Dverifier.config22 cflow, resolve-id, typing, absint
/arkcompiler/ets_runtime/ecmascript/jobs/tests/
Dmicro_job_queue_test.cpp190 JSHandle<JSTaggedValue> resolve(thread, capbility->GetResolve()); in HWTEST_F_L0() local
194 fulfillReaction->SetHandler(thread, resolve.GetTaggedValue()); in HWTEST_F_L0()
203 rejectReaction->SetHandler(thread, resolve.GetTaggedValue()); in HWTEST_F_L0()
233 JSHandle<JSTaggedValue> resolve(thread, capbility1->GetResolve()); in HWTEST_F_L0() local
237 fulfillReaction->SetHandler(thread, resolve.GetTaggedValue()); in HWTEST_F_L0()
/arkcompiler/runtime_core/compiler/docs/
Daot_resolve_string.md29 - `--resolve-string-aot-threshold` controls how many strings could be save to PLT-slots (option app…
38 - if amount of already filled PLT-slots is above `--resolve-string-aot-threshold` then the resolved…

123456