Lines Matching refs:JSHandle

69     inline static JSHandle<T> GetHArg(uintptr_t argv, [[maybe_unused]] uint32_t argc, uint32_t index)

72 return JSHandle<T>(&(reinterpret_cast<JSTaggedType *>(argv)[index]));
153 static JSTaggedValue RuntimeArraySort(JSThread *thread, JSHandle<JSTaggedValue> thisHandle);
161 static inline uint32_t RuntimeGetBytecodePcOfstForBaseline(const JSHandle<JSFunction> &func, uintptr_t nativePc);
165 static inline JSTaggedValue RuntimeInc(JSThread *thread, const JSHandle<JSTaggedValue> &value);
166 static inline JSTaggedValue RuntimeDec(JSThread *thread, const JSHandle<JSTaggedValue> &value);
168 static inline JSTaggedValue RuntimeIsIn(JSThread *thread, const JSHandle<JSTaggedValue> &prop,
169 const JSHandle<JSTaggedValue> &obj);
170 static inline JSTaggedValue RuntimeInstanceof(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
171 const JSHandle<JSTaggedValue> &target);
172 static inline JSTaggedValue RuntimeInstanceofByHandler(JSThread *thread, JSHandle<JSTaggedValue> target,
173 JSHandle<JSTaggedValue> object,
174 JSHandle<JSTaggedValue> instOfHandler);
175 static inline JSTaggedValue RuntimeCreateGeneratorObj(JSThread *thread, const JSHandle<JSTaggedValue> &genFunc);
178 const JSHandle<JSTaggedValue> &genFunc);
180 static inline JSTaggedValue RuntimeAsyncGeneratorResolve(JSThread *thread, JSHandle<JSTaggedValue> asyncFuncObj,
181 JSHandle<JSTaggedValue> value, JSTaggedValue flag);
182 static inline JSTaggedValue RuntimeAsyncGeneratorReject(JSThread *thread, JSHandle<JSTaggedValue> asyncFuncObj,
183 JSHandle<JSTaggedValue> value);
184 static inline JSTaggedValue RuntimeGetTemplateObject(JSThread *thread, const JSHandle<JSTaggedValue> &literal);
185 static inline JSTaggedValue RuntimeGetNextPropName(JSThread *thread, const JSHandle<JSTaggedValue> &iter);
186 static inline JSTaggedValue RuntimeIterNext(JSThread *thread, const JSHandle<JSTaggedValue> &iter);
187 static inline JSTaggedValue RuntimeCloseIterator(JSThread *thread, const JSHandle<JSTaggedValue> &iter);
188 static inline JSTaggedValue RuntimeSuperCallSpread(JSThread *thread, const JSHandle<JSTaggedValue> &func,
189 const JSHandle<JSTaggedValue> &newTarget,
190 const JSHandle<JSTaggedValue> &array);
191 static inline JSTaggedValue RuntimeOptSuperCallSpread(JSThread *thread, const JSHandle<JSTaggedValue> &func,
192 const JSHandle<JSTaggedValue> &newTarget,
193 const JSHandle<JSTaggedValue> &taggedArray);
195 const JSHandle<JSTaggedValue> &superFunc,
196 const JSHandle<JSTaggedValue> &newTarget,
198 static inline JSTaggedValue RuntimeDelObjProp(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
199 const JSHandle<JSTaggedValue> &prop);
200 static inline JSTaggedValue RuntimeNewObjApply(JSThread *thread, const JSHandle<JSTaggedValue> &func,
201 const JSHandle<JSTaggedValue> &array);
202 static inline JSTaggedValue RuntimeCreateIterResultObj(JSThread *thread, const JSHandle<JSTaggedValue> &value,
205 const JSHandle<JSTaggedValue> &asyncFuncObj,
206 const JSHandle<JSTaggedValue> &value);
208 const JSHandle<JSTaggedValue> &asyncFuncObj,
209 const JSHandle<JSTaggedValue> &value,
211 static inline JSTaggedValue RuntimeCopyDataProperties(JSThread *thread, const JSHandle<JSTaggedValue> &dst,
212 const JSHandle<JSTaggedValue> &src);
213 static inline JSTaggedValue RuntimeStArraySpread(JSThread *thread, const JSHandle<JSTaggedValue> &dst,
214 JSTaggedValue index, const JSHandle<JSTaggedValue> &src);
215 static inline JSTaggedValue RuntimeSetObjectWithProto(JSThread *thread, const JSHandle<JSTaggedValue> &proto,
216 const JSHandle<JSObject> &obj);
217 static inline JSTaggedValue RuntimeGetIteratorNext(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
218 const JSHandle<JSTaggedValue> &method);
219 static inline JSTaggedValue RuntimeLdObjByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
220 const JSHandle<JSTaggedValue> &prop, bool callGetter,
222 static inline JSTaggedValue RuntimeStObjByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
223 const JSHandle<JSTaggedValue> &prop,
224 const JSHandle<JSTaggedValue> &value);
225 static inline JSTaggedValue RuntimeStOwnByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
226 const JSHandle<JSTaggedValue> &key,
227 const JSHandle<JSTaggedValue> &value);
228 static inline JSTaggedValue RuntimeLdSuperByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
229 const JSHandle<JSTaggedValue> &key, JSTaggedValue thisFunc);
230 static inline JSTaggedValue RuntimeStSuperByValue(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
231 const JSHandle<JSTaggedValue> &key,
232 const JSHandle<JSTaggedValue> &value, JSTaggedValue thisFunc);
233 static inline JSTaggedValue RuntimeLdObjByIndex(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t idx,
235 static inline JSTaggedValue RuntimeStObjByIndex(JSThread *thread, const JSHandle<JSTaggedValue> &obj, uint32_t idx,
236 const JSHandle<JSTaggedValue> &value);
237 static inline JSTaggedValue RuntimeStOwnByIndex(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
238 const JSHandle<JSTaggedValue> &idx,
239 const JSHandle<JSTaggedValue> &value);
240 static inline JSTaggedValue RuntimeStGlobalRecord(JSThread *thread, const JSHandle<JSTaggedValue> &prop,
241 const JSHandle<JSTaggedValue> &value, bool isConst);
242 static inline JSTaggedValue RuntimeNeg(JSThread *thread, const JSHandle<JSTaggedValue> &value);
243 static inline JSTaggedValue RuntimeNot(JSThread *thread, const JSHandle<JSTaggedValue> &value);
244 static inline JSTaggedValue RuntimeResolveClass(JSThread *thread, const JSHandle<JSFunction> &ctor,
245 const JSHandle<TaggedArray> &literal,
246 const JSHandle<JSTaggedValue> &base,
247 const JSHandle<JSTaggedValue> &lexenv);
248 static inline JSTaggedValue RuntimeCloneClassFromTemplate(JSThread *thread, const JSHandle<JSFunction> &ctor,
249 const JSHandle<JSTaggedValue> &base,
250 const JSHandle<JSTaggedValue> &lexenv);
252 const JSHandle<JSTaggedValue> &base,
253 const JSHandle<JSTaggedValue> &lexenv,
254 const JSHandle<JSTaggedValue> &constpool,
256 const JSHandle<JSTaggedValue> &module,
257 const JSHandle<JSTaggedValue> &length);
258 static inline void SetProfileTypeInfoCellToFunction(JSThread *thread, const JSHandle<JSFunction> &jsFunc,
259 const JSHandle<JSFunction> &definedFunc, uint16_t slotId);
261 const JSHandle<JSTaggedValue> &base,
262 const JSHandle<JSTaggedValue> &constpool,
264 const JSHandle<JSTaggedValue> &module);
265 static inline JSTaggedValue RuntimeLdSendableClass(const JSHandle<JSTaggedValue> &env, uint16_t level);
267 const JSHandle<JSTaggedValue> &ctor,
268 const JSHandle<JSTaggedValue> &base,
272 static inline JSTaggedValue RuntimeNotifyInlineCache(JSThread *thread, const JSHandle<JSFunction> &function,
274 static inline JSTaggedValue RuntimeStOwnByValueWithNameSet(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
275 const JSHandle<JSTaggedValue> &key,
276 const JSHandle<JSTaggedValue> &value);
277 static inline JSTaggedValue RuntimeStOwnByName(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
278 const JSHandle<JSTaggedValue> &prop,
279 const JSHandle<JSTaggedValue> &value);
280 static inline JSTaggedValue RuntimeSuspendGenerator(JSThread *thread, const JSHandle<JSTaggedValue> &genObj,
281 const JSHandle<JSTaggedValue> &value);
296 JSHandle<JSTaggedValue> moduleHdl);
301 JSHandle<JSTaggedValue> moduleHdl);
313 static inline JSTaggedValue RuntimeGetPropIterator(JSThread *thread, const JSHandle<JSTaggedValue> &value);
315 static inline JSTaggedValue RuntimeGetIterator(JSThread *thread, const JSHandle<JSTaggedValue> &obj);
316 static inline JSTaggedValue RuntimeGetAsyncIterator(JSThread *thread, const JSHandle<JSTaggedValue> &obj);
317 static inline void RuntimeSetGeneratorState(JSThread *thread, const JSHandle<JSTaggedValue> &genObj,
323 static inline void RuntimeThrowUndefinedIfHole(JSThread *thread, const JSHandle<EcmaString> &obj);
325 static inline void RuntimeThrowConstAssignment(JSThread *thread, const JSHandle<EcmaString> &value);
327 static inline JSTaggedValue RuntimeTryLdGlobalByName(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
328 const JSHandle<JSTaggedValue> &prop);
330 static inline JSTaggedValue RuntimeThrowReferenceError(JSThread *thread, const JSHandle<JSTaggedValue> &prop,
332 static inline JSTaggedValue RuntimeLdGlobalVarFromProto(JSThread *thread, const JSHandle<JSTaggedValue> &globalObj,
333 const JSHandle<JSTaggedValue> &prop);
334 static inline JSTaggedValue RuntimeStGlobalVar(JSThread *thread, const JSHandle<JSTaggedValue> &prop,
335 const JSHandle<JSTaggedValue> &value);
336 static inline JSTaggedValue RuntimeToNumber(JSThread *thread, const JSHandle<JSTaggedValue> &value);
337 static inline JSTaggedValue RuntimeDynamicImport(JSThread *thread, const JSHandle<JSTaggedValue> &specifier,
338 const JSHandle<JSTaggedValue> &func);
339 static inline JSTaggedValue RuntimeToNumeric(JSThread *thread, const JSHandle<JSTaggedValue> &value);
340 static inline JSTaggedValue RuntimeEq(JSThread *thread, const JSHandle<JSTaggedValue> &left,
341 const JSHandle<JSTaggedValue> &right);
344 static inline JSTaggedValue RuntimeNotEq(JSThread *thread, const JSHandle<JSTaggedValue> &left,
345 const JSHandle<JSTaggedValue> &right);
346 static inline JSTaggedValue RuntimeLess(JSThread *thread, const JSHandle<JSTaggedValue> &left,
347 const JSHandle<JSTaggedValue> &right);
348 static inline JSTaggedValue RuntimeLessEq(JSThread *thread, const JSHandle<JSTaggedValue> &left,
349 const JSHandle<JSTaggedValue> &right);
350 static inline JSTaggedValue RuntimeGreater(JSThread *thread, const JSHandle<JSTaggedValue> &left,
351 const JSHandle<JSTaggedValue> &right);
352 static inline JSTaggedValue RuntimeGreaterEq(JSThread *thread, const JSHandle<JSTaggedValue> &left,
353 const JSHandle<JSTaggedValue> &right);
354 static inline JSTaggedValue RuntimeAdd2(JSThread *thread, const JSHandle<JSTaggedValue> &left,
355 const JSHandle<JSTaggedValue> &right);
356 static inline JSTaggedValue RuntimeShl2(JSThread *thread, const JSHandle<JSTaggedValue> &left,
357 const JSHandle<JSTaggedValue> &right);
358 static inline JSTaggedValue RuntimeShr2(JSThread *thread, const JSHandle<JSTaggedValue> &left,
359 const JSHandle<JSTaggedValue> &right);
360 static inline JSTaggedValue RuntimeSub2(JSThread *thread, const JSHandle<JSTaggedValue> &left,
361 const JSHandle<JSTaggedValue> &right);
362 static inline JSTaggedValue RuntimeMul2(JSThread *thread, const JSHandle<JSTaggedValue> &left,
363 const JSHandle<JSTaggedValue> &right);
364 static inline JSTaggedValue RuntimeDiv2(JSThread *thread, const JSHandle<JSTaggedValue> &left,
365 const JSHandle<JSTaggedValue> &right);
366 static inline JSTaggedValue RuntimeMod2(JSThread *thread, const JSHandle<JSTaggedValue> &left,
367 const JSHandle<JSTaggedValue> &right);
368 static inline JSTaggedValue RuntimeAshr2(JSThread *thread, const JSHandle<JSTaggedValue> &left,
369 const JSHandle<JSTaggedValue> &right);
370 static inline JSTaggedValue RuntimeAnd2(JSThread *thread, const JSHandle<JSTaggedValue> &left,
371 const JSHandle<JSTaggedValue> &right);
372 static inline JSTaggedValue RuntimeOr2(JSThread *thread, const JSHandle<JSTaggedValue> &left,
373 const JSHandle<JSTaggedValue> &right);
374 static inline JSTaggedValue RuntimeXor2(JSThread *thread, const JSHandle<JSTaggedValue> &left,
375 const JSHandle<JSTaggedValue> &right);
377 const JSHandle<JSTaggedValue> &obj,
378 const JSHandle<JSTaggedValue> &prop,
379 const JSHandle<JSTaggedValue> &value);
380 static inline JSTaggedValue RuntimeStObjByName(JSThread *thread, const JSHandle<JSTaggedValue> &obj,
381 const JSHandle<JSTaggedValue> &prop,
382 const JSHandle<JSTaggedValue> &value);
384 const JSHandle<JSTaggedValue> &value);
386 const JSHandle<JSTaggedValue> &value);
388 JSHandle<GlobalEnv> globalEnv);
390 JSHandle<GlobalEnv> globalEnv);
396 const JSHandle<JSTaggedValue> &literal);
398 const JSHandle<JSObject> &literal);
401 static inline JSTaggedValue RuntimeNewObjRange(JSThread *thread, const JSHandle<JSTaggedValue> &func,
402 const JSHandle<JSTaggedValue> &newTarget, uint16_t firstArgIdx,
404 static inline JSTaggedValue RuntimeDefinefunc(JSThread *thread, const JSHandle<JSTaggedValue> &constpool,
405 uint16_t methodId, const JSHandle<JSTaggedValue> &module,
406 uint16_t length, const JSHandle<JSTaggedValue> &envHandle,
407 const JSHandle<JSTaggedValue> &homeObject);
409 const JSHandle<JSFunction>& func,
410 const JSHandle<JSTaggedValue>& ihc,
411 const JSHandle<AOTLiteralInfo>& aotLiteralInfo);
412 static inline JSTaggedValue RuntimeCreateRegExpWithLiteral(JSThread *thread, const JSHandle<JSTaggedValue> &pattern,
417 const JSHandle<JSObject> &literal,
418 const JSHandle<JSTaggedValue> &env);
420 const JSHandle<JSTaggedValue> &objVal,
422 static inline JSTaggedValue RuntimeDefineMethod(JSThread *thread, const JSHandle<Method> &methodHandle,
423 const JSHandle<JSTaggedValue> &homeObject, uint16_t length,
424 const JSHandle<JSTaggedValue> &env,
425 const JSHandle<JSTaggedValue> &module);
426 static inline JSTaggedValue RuntimeCallSpread(JSThread *thread, const JSHandle<JSTaggedValue> &func,
427 const JSHandle<JSTaggedValue> &obj,
428 const JSHandle<JSTaggedValue> &array);
429 static inline JSTaggedValue RuntimeDefineGetterSetterByValue(JSThread *thread, const JSHandle<JSObject> &obj,
430 const JSHandle<JSTaggedValue> &prop,
431 const JSHandle<JSTaggedValue> &getter,
432 const JSHandle<JSTaggedValue> &setter, bool flag,
433 const JSHandle<JSTaggedValue> &func,
435 static inline JSTaggedValue RuntimeSuperCall(JSThread *thread, const JSHandle<JSTaggedValue> &func,
436 const JSHandle<JSTaggedValue> &newTarget, uint16_t firstVRegIdx,
438 static inline JSTaggedValue RuntimeOptSuperCall(JSThread *thread, const JSHandle<JSTaggedValue> &func,
439 const JSHandle<JSTaggedValue> &newTarget,
440 const JSHandle<TaggedArray> &argv,
443 static inline JSTaggedValue RuntimeGetCallSpreadArgs(JSThread *thread, const JSHandle<JSTaggedValue> &array);
446 static inline JSTaggedValue RuntimeLdBigInt(JSThread *thread, const JSHandle<JSTaggedValue> &numberBigInt);
452 const JSHandle<TaggedArray> &argumentsList);
454 JSHandle<JSTaggedValue> &currentLexEnv,
455 JSHandle<JSTaggedValue> &func);
457 static inline JSTaggedValue RuntimeOptSuspendGenerator(JSThread *thread, const JSHandle<JSTaggedValue> &genObj,
458 const JSHandle<JSTaggedValue> &value);
459 static inline JSTaggedValue RuntimeOptAsyncGeneratorResolve(JSThread *thread, JSHandle<JSTaggedValue> asyncFuncObj,
460 JSHandle<JSTaggedValue> value, JSTaggedValue flag);
462 const JSHandle<JSTaggedValue> &objVal,
464 JSHandle<TaggedArray> excludedKeys);
467 static inline JSTaggedValue RuntimeOptConstruct(JSThread *thread, JSHandle<JSTaggedValue> ctor,
468 JSHandle<JSTaggedValue> newTarget, JSHandle<JSTaggedValue> preArgs,
469 JSHandle<TaggedArray> args);
470 static inline JSTaggedValue RuntimeOptConstructProxy(JSThread *thread, JSHandle<JSProxy> ctor,
471 JSHandle<JSTaggedValue> newTgt,
472 JSHandle<JSTaggedValue> preArgs, JSHandle<TaggedArray> args);
473 static inline JSTaggedValue RuntimeOptConstructBoundFunction(JSThread *thread, JSHandle<JSBoundFunction> ctor,
474 JSHandle<JSTaggedValue> newTgt,
475 JSHandle<JSTaggedValue> preArgs,
476 JSHandle<TaggedArray> args);
477 static inline JSTaggedValue RuntimeOptConstructGeneric(JSThread *thread, JSHandle<JSFunction> ctor,
478 JSHandle<JSTaggedValue> newTgt,
479 JSHandle<JSTaggedValue> preArgs, JSHandle<TaggedArray> args);
480 static inline JSTaggedValue GetResultValue(JSThread *thread, bool isAotMethod, JSHandle<JSFunction> ctor,
481 CVector<JSTaggedType> &values, JSHandle<JSTaggedValue> newTgt, uint32_t &size, JSHandle<JSTaggedValue> obj);
489 static void SaveFrameToContext(JSThread *thread, JSHandle<GeneratorContext> context);
493 const JSHandle<JSTaggedValue> &value);
508 static inline JSTaggedValue RuntimeUpdateAOTHClass(JSThread *thread, const JSHandle<JSHClass> &oldhclass,
509 const JSHandle<JSHClass> &newhclass, JSTaggedValue key);
511 static inline bool CheckElementsNumber(JSHandle<TaggedArray> elements, uint32_t len);
512 static inline JSHandle<JSTaggedValue> GetOrCreateNumberString(JSThread *thread,
513 JSHandle<JSTaggedValue> presentValue, std::map<uint64_t, JSHandle<JSTaggedValue>> &cachedString);
514 static inline JSTaggedValue TryCopyCOWArray(JSThread *thread, JSHandle<JSArray> holderHandler, bool &isCOWArray);
515 static inline JSTaggedValue ArrayNumberSort(JSThread *thread, JSHandle<JSObject> thisObj, uint32_t len);
516 static inline bool ShouldUseAOTHClass(const JSHandle<JSTaggedValue> &ihc,
517 const JSHandle<JSTaggedValue> &chc,
518 const JSHandle<ClassLiteral> &classLiteral);
519 static inline JSTaggedType RuntimeTryGetInternString(uintptr_t argGlue, const JSHandle<EcmaString> &string);
520 static inline void RuntimeSetPatchModule(JSThread *thread, const JSHandle<JSFunction> &func);
522 static inline JSTaggedValue RuntimeDecodeURIComponent(JSThread *thread, const JSHandle<EcmaString> &str,
527 static inline JSTaggedValue DecodePercentEncoding(JSThread *thread, const JSHandle<EcmaString> &str, int32_t &k,
531 const JSHandle<EcmaString> &str, uint8_t &bb,
535 const JSHandle<EcmaString> &str, std::u16string &sStr);