• Home
  • Raw
  • Download

Lines Matching full:thread

47 JSTaggedValue SlowRuntimeStub::CallSpread(JSThread *thread, JSTaggedValue func, JSTaggedValue obj,  in CallSpread()  argument
50 INTERPRETER_TRACE(thread, CallSpread); in CallSpread()
51 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CallSpread()
53 JSHandle<JSTaggedValue> jsFunc(thread, func); in CallSpread()
54 JSHandle<JSTaggedValue> jsArray(thread, array); in CallSpread()
55 JSHandle<JSTaggedValue> taggedObj(thread, obj); in CallSpread()
56 return RuntimeStubs::RuntimeCallSpread(thread, jsFunc, taggedObj, jsArray); in CallSpread()
59 JSTaggedValue SlowRuntimeStub::Neg(JSThread *thread, JSTaggedValue value) in Neg() argument
61 INTERPRETER_TRACE(thread, Neg); in Neg()
62 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Neg()
64 JSHandle<JSTaggedValue> inputTag(thread, value); in Neg()
65 return RuntimeStubs::RuntimeNeg(thread, inputTag); in Neg()
68 JSTaggedValue SlowRuntimeStub::AsyncFunctionEnter(JSThread *thread) in AsyncFunctionEnter() argument
70 INTERPRETER_TRACE(thread, AsyncFunctionEnter); in AsyncFunctionEnter()
71 [[maybe_unused]] EcmaHandleScope handleScope(thread); in AsyncFunctionEnter()
73 return RuntimeStubs::RuntimeAsyncFunctionEnter(thread); in AsyncFunctionEnter()
76 JSTaggedValue SlowRuntimeStub::ToNumber(JSThread *thread, JSTaggedValue value) in ToNumber() argument
78 INTERPRETER_TRACE(thread, Tonumber); in ToNumber()
79 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ToNumber()
81 JSHandle<JSTaggedValue> number(thread, value); in ToNumber()
83 return RuntimeStubs::RuntimeToNumber(thread, number); in ToNumber()
86 JSTaggedValue SlowRuntimeStub::ToNumeric(JSThread *thread, JSTaggedValue value) in ToNumeric() argument
88 INTERPRETER_TRACE(thread, Tonumeric); in ToNumeric()
89 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ToNumeric()
91 JSHandle<JSTaggedValue> numeric(thread, value); in ToNumeric()
93 return RuntimeStubs::RuntimeToNumeric(thread, numeric); in ToNumeric()
96 JSTaggedValue SlowRuntimeStub::Not(JSThread *thread, JSTaggedValue value) in Not() argument
98 INTERPRETER_TRACE(thread, Not); in Not()
99 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Not()
101 JSHandle<JSTaggedValue> inputTag(thread, value); in Not()
102 return RuntimeStubs::RuntimeNot(thread, inputTag); in Not()
105 JSTaggedValue SlowRuntimeStub::Inc(JSThread *thread, JSTaggedValue value) in Inc() argument
107 INTERPRETER_TRACE(thread, Inc); in Inc()
108 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Inc()
110 JSHandle<JSTaggedValue> inputTag(thread, value); in Inc()
111 return RuntimeStubs::RuntimeInc(thread, inputTag); in Inc()
114 JSTaggedValue SlowRuntimeStub::Dec(JSThread *thread, JSTaggedValue value) in Dec() argument
116 INTERPRETER_TRACE(thread, Dec); in Dec()
117 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Dec()
119 JSHandle<JSTaggedValue> inputTag(thread, value); in Dec()
120 return RuntimeStubs::RuntimeDec(thread, inputTag); in Dec()
123 void SlowRuntimeStub::Throw(JSThread *thread, JSTaggedValue value) in Throw() argument
125 INTERPRETER_TRACE(thread, Throw); in Throw()
126 RuntimeStubs::RuntimeThrow(thread, value); in Throw()
129 JSTaggedValue SlowRuntimeStub::GetPropIterator(JSThread *thread, JSTaggedValue value) in GetPropIterator() argument
131 INTERPRETER_TRACE(thread, GetPropIterator); in GetPropIterator()
132 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetPropIterator()
134 JSHandle<JSTaggedValue> objHandle(thread, value); in GetPropIterator()
135 return RuntimeStubs::RuntimeGetPropIterator(thread, objHandle); in GetPropIterator()
138 void SlowRuntimeStub::ThrowConstAssignment(JSThread *thread, JSTaggedValue value) in ThrowConstAssignment() argument
140 INTERPRETER_TRACE(thread, ThrowConstAssignment); in ThrowConstAssignment()
141 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ThrowConstAssignment()
143 JSHandle<EcmaString> name(thread, value.GetTaggedObject()); in ThrowConstAssignment()
144 return RuntimeStubs::RuntimeThrowConstAssignment(thread, name); in ThrowConstAssignment()
147 JSTaggedValue SlowRuntimeStub::Add2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Add2() argument
149 INTERPRETER_TRACE(thread, Add2); in Add2()
150 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Add2()
152 JSHandle<JSTaggedValue> leftValue(thread, left); in Add2()
153 JSHandle<JSTaggedValue> rightValue(thread, right); in Add2()
154 return RuntimeStubs::RuntimeAdd2(thread, leftValue, rightValue); in Add2()
157 JSTaggedValue SlowRuntimeStub::Sub2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Sub2() argument
159 INTERPRETER_TRACE(thread, Sub2); in Sub2()
160 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Sub2()
162 JSHandle<JSTaggedValue> leftTag(thread, left); in Sub2()
163 JSHandle<JSTaggedValue> rightTag(thread, right); in Sub2()
164 return RuntimeStubs::RuntimeSub2(thread, leftTag, rightTag); in Sub2()
167 JSTaggedValue SlowRuntimeStub::Mul2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Mul2() argument
169 INTERPRETER_TRACE(thread, Mul2); in Mul2()
170 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Mul2()
172 JSHandle<JSTaggedValue> leftTag(thread, left); in Mul2()
173 JSHandle<JSTaggedValue> rightTag(thread, right); in Mul2()
174 return RuntimeStubs::RuntimeMul2(thread, leftTag, rightTag); in Mul2()
177 JSTaggedValue SlowRuntimeStub::Div2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Div2() argument
179 INTERPRETER_TRACE(thread, Div2); in Div2()
180 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Div2()
182 JSHandle<JSTaggedValue> leftTag(thread, left); in Div2()
183 JSHandle<JSTaggedValue> rightTag(thread, right); in Div2()
184 return RuntimeStubs::RuntimeDiv2(thread, leftTag, rightTag); in Div2()
187 JSTaggedValue SlowRuntimeStub::Mod2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Mod2() argument
189 INTERPRETER_TRACE(thread, Mod2); in Mod2()
190 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Mod2()
192 JSHandle<JSTaggedValue> leftTag(thread, left); in Mod2()
193 JSHandle<JSTaggedValue> rightTag(thread, right); in Mod2()
194 return RuntimeStubs::RuntimeMod2(thread, leftTag, rightTag); in Mod2()
197 JSTaggedValue SlowRuntimeStub::Eq(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Eq() argument
199 INTERPRETER_TRACE(thread, Eq); in Eq()
200 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Eq()
202 JSHandle<JSTaggedValue> leftValue(thread, left); in Eq()
203 JSHandle<JSTaggedValue> rightValue(thread, right); in Eq()
204 return RuntimeStubs::RuntimeEq(thread, leftValue, rightValue); in Eq()
207 JSTaggedValue SlowRuntimeStub::NotEq(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in NotEq() argument
209 INTERPRETER_TRACE(thread, NotEq); in NotEq()
210 [[maybe_unused]] EcmaHandleScope handleScope(thread); in NotEq()
212 JSHandle<JSTaggedValue> leftValue(thread, left); in NotEq()
213 JSHandle<JSTaggedValue> rightValue(thread, right); in NotEq()
214 return RuntimeStubs::RuntimeNotEq(thread, leftValue, rightValue); in NotEq()
217 JSTaggedValue SlowRuntimeStub::Less(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Less() argument
219 INTERPRETER_TRACE(thread, Less); in Less()
220 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Less()
222 JSHandle<JSTaggedValue> leftValue(thread, left); in Less()
223 JSHandle<JSTaggedValue> rightValue(thread, right); in Less()
224 return RuntimeStubs::RuntimeLess(thread, leftValue, rightValue); in Less()
227 JSTaggedValue SlowRuntimeStub::LessEq(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in LessEq() argument
229 INTERPRETER_TRACE(thread, LessEq); in LessEq()
230 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LessEq()
232 JSHandle<JSTaggedValue> leftValue(thread, left); in LessEq()
233 JSHandle<JSTaggedValue> rightValue(thread, right); in LessEq()
234 return RuntimeStubs::RuntimeLessEq(thread, leftValue, rightValue); in LessEq()
237 JSTaggedValue SlowRuntimeStub::Greater(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Greater() argument
239 INTERPRETER_TRACE(thread, Greater); in Greater()
240 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Greater()
242 JSHandle<JSTaggedValue> leftValue(thread, left); in Greater()
243 JSHandle<JSTaggedValue> rightValue(thread, right); in Greater()
244 return RuntimeStubs::RuntimeGreater(thread, leftValue, rightValue); in Greater()
247 JSTaggedValue SlowRuntimeStub::GreaterEq(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in GreaterEq() argument
249 INTERPRETER_TRACE(thread, GreaterEq); in GreaterEq()
250 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GreaterEq()
252 JSHandle<JSTaggedValue> leftValue(thread, left); in GreaterEq()
253 JSHandle<JSTaggedValue> rightValue(thread, right); in GreaterEq()
254 return RuntimeStubs::RuntimeGreaterEq(thread, leftValue, rightValue); in GreaterEq()
257 JSTaggedValue SlowRuntimeStub::Shl2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Shl2() argument
259 INTERPRETER_TRACE(thread, Shl2); in Shl2()
260 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Shl2()
262 JSHandle<JSTaggedValue> leftTag(thread, left); in Shl2()
263 JSHandle<JSTaggedValue> rightTag(thread, right); in Shl2()
264 return RuntimeStubs::RuntimeShl2(thread, leftTag, rightTag); in Shl2()
267 JSTaggedValue SlowRuntimeStub::Shr2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Shr2() argument
269 INTERPRETER_TRACE(thread, Shr2); in Shr2()
270 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Shr2()
272 JSHandle<JSTaggedValue> leftTag(thread, left); in Shr2()
273 JSHandle<JSTaggedValue> rightTag(thread, right); in Shr2()
274 return RuntimeStubs::RuntimeShr2(thread, leftTag, rightTag); in Shr2()
277 JSTaggedValue SlowRuntimeStub::Ashr2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Ashr2() argument
279 INTERPRETER_TRACE(thread, Ashr2); in Ashr2()
280 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Ashr2()
282 JSHandle<JSTaggedValue> leftTag(thread, left); in Ashr2()
283 JSHandle<JSTaggedValue> rightTag(thread, right); in Ashr2()
284 return RuntimeStubs::RuntimeAshr2(thread, leftTag, rightTag); in Ashr2()
287 JSTaggedValue SlowRuntimeStub::And2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in And2() argument
289 INTERPRETER_TRACE(thread, And2); in And2()
290 [[maybe_unused]] EcmaHandleScope handleScope(thread); in And2()
291 JSHandle<JSTaggedValue> leftTag(thread, left); in And2()
292 JSHandle<JSTaggedValue> rightTag(thread, right); in And2()
293 return RuntimeStubs::RuntimeAnd2(thread, leftTag, rightTag); in And2()
296 JSTaggedValue SlowRuntimeStub::Or2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Or2() argument
298 INTERPRETER_TRACE(thread, Or2); in Or2()
299 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Or2()
301 JSHandle<JSTaggedValue> leftTag(thread, left); in Or2()
302 JSHandle<JSTaggedValue> rightTag(thread, right); in Or2()
303 return RuntimeStubs::RuntimeOr2(thread, leftTag, rightTag); in Or2()
306 JSTaggedValue SlowRuntimeStub::Xor2(JSThread *thread, JSTaggedValue left, JSTaggedValue right) in Xor2() argument
308 INTERPRETER_TRACE(thread, Xor2); in Xor2()
309 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Xor2()
311 JSHandle<JSTaggedValue> leftTag(thread, left); in Xor2()
312 JSHandle<JSTaggedValue> rightTag(thread, right); in Xor2()
313 return RuntimeStubs::RuntimeXor2(thread, leftTag, rightTag); in Xor2()
316 JSTaggedValue SlowRuntimeStub::ToJSTaggedValueWithInt32(JSThread *thread, JSTaggedValue value) in ToJSTaggedValueWithInt32() argument
318 INTERPRETER_TRACE(thread, ToJSTaggedValueWithInt32); in ToJSTaggedValueWithInt32()
319 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ToJSTaggedValueWithInt32()
320 JSHandle<JSTaggedValue> valueHandle(thread, value); in ToJSTaggedValueWithInt32()
321 return RuntimeStubs::RuntimeToJSTaggedValueWithInt32(thread, valueHandle); in ToJSTaggedValueWithInt32()
324 JSTaggedValue SlowRuntimeStub::ToJSTaggedValueWithUint32(JSThread *thread, JSTaggedValue value) in ToJSTaggedValueWithUint32() argument
326 INTERPRETER_TRACE(thread, ToJSTaggedValueWithUint32); in ToJSTaggedValueWithUint32()
327 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ToJSTaggedValueWithUint32()
328 JSHandle<JSTaggedValue> valueHandle(thread, value); in ToJSTaggedValueWithUint32()
329 return RuntimeStubs::RuntimeToJSTaggedValueWithUint32(thread, valueHandle); in ToJSTaggedValueWithUint32()
332 JSTaggedValue SlowRuntimeStub::DelObjProp(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop) in DelObjProp() argument
334 INTERPRETER_TRACE(thread, Delobjprop); in DelObjProp()
335 [[maybe_unused]] EcmaHandleScope handleScope(thread); in DelObjProp()
337 JSHandle<JSTaggedValue> objHandle(thread, obj); in DelObjProp()
338 JSHandle<JSTaggedValue> propHandle(thread, prop); in DelObjProp()
339 return RuntimeStubs::RuntimeDelObjProp(thread, objHandle, propHandle); in DelObjProp()
342 JSTaggedValue SlowRuntimeStub::NewObjRange(JSThread *thread, JSTaggedValue func, JSTaggedValue newT… in NewObjRange() argument
345 INTERPRETER_TRACE(thread, NewobjRange); in NewObjRange()
346 [[maybe_unused]] EcmaHandleScope handleScope(thread); in NewObjRange()
348 JSHandle<JSTaggedValue> funcHandle(thread, func); in NewObjRange()
349 JSHandle<JSTaggedValue> newTargetHandle(thread, newTarget); in NewObjRange()
350 … return RuntimeStubs::RuntimeNewObjRange(thread, funcHandle, newTargetHandle, firstArgIdx, length); in NewObjRange()
353 JSTaggedValue SlowRuntimeStub::CreateObjectWithExcludedKeys(JSThread *thread, uint16_t numKeys, JST… in CreateObjectWithExcludedKeys() argument
356 INTERPRETER_TRACE(thread, CreateObjectWithExcludedKeys); in CreateObjectWithExcludedKeys()
357 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CreateObjectWithExcludedKeys()
359 JSHandle<JSTaggedValue> obj(thread, objVal); in CreateObjectWithExcludedKeys()
360 return RuntimeStubs::RuntimeCreateObjectWithExcludedKeys(thread, numKeys, obj, firstArgRegIdx); in CreateObjectWithExcludedKeys()
363 JSTaggedValue SlowRuntimeStub::Exp(JSThread *thread, JSTaggedValue base, JSTaggedValue exponent) in Exp() argument
365 INTERPRETER_TRACE(thread, Exp); in Exp()
366 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Exp()
368 return RuntimeStubs::RuntimeExp(thread, base, exponent); in Exp()
371 JSTaggedValue SlowRuntimeStub::IsIn(JSThread *thread, JSTaggedValue prop, JSTaggedValue obj) in IsIn() argument
373 INTERPRETER_TRACE(thread, IsIn); in IsIn()
374 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IsIn()
376 JSHandle<JSTaggedValue> propHandle(thread, prop); in IsIn()
377 JSHandle<JSTaggedValue> objHandle(thread, obj); in IsIn()
378 return RuntimeStubs::RuntimeIsIn(thread, propHandle, objHandle); in IsIn()
381 JSTaggedValue SlowRuntimeStub::Instanceof(JSThread *thread, JSTaggedValue obj, JSTaggedValue target) in Instanceof() argument
383 INTERPRETER_TRACE(thread, Instanceof); in Instanceof()
384 [[maybe_unused]] EcmaHandleScope handleScope(thread); in Instanceof()
386 JSHandle<JSTaggedValue> objHandle(thread, obj); in Instanceof()
387 JSHandle<JSTaggedValue> targetHandle(thread, target); in Instanceof()
388 return RuntimeStubs::RuntimeInstanceof(thread, objHandle, targetHandle); in Instanceof()
391 JSTaggedValue SlowRuntimeStub::NewLexicalEnv(JSThread *thread, uint16_t numVars) in NewLexicalEnv() argument
393 INTERPRETER_TRACE(thread, Newlexenv); in NewLexicalEnv()
394 [[maybe_unused]] EcmaHandleScope handleScope(thread); in NewLexicalEnv()
396 return RuntimeStubs::RuntimeNewLexicalEnv(thread, numVars); in NewLexicalEnv()
399 JSTaggedValue SlowRuntimeStub::NewLexicalEnvWithName(JSThread *thread, uint16_t numVars, uint16_t s… in NewLexicalEnvWithName() argument
401 INTERPRETER_TRACE(thread, NewlexenvwithName); in NewLexicalEnvWithName()
402 [[maybe_unused]] EcmaHandleScope handleScope(thread); in NewLexicalEnvWithName()
404 return RuntimeStubs::RuntimeNewLexicalEnvWithName(thread, numVars, scopeId); in NewLexicalEnvWithName()
407 JSTaggedValue SlowRuntimeStub::CreateIterResultObj(JSThread *thread, JSTaggedValue value, JSTaggedV… in CreateIterResultObj() argument
409 INTERPRETER_TRACE(thread, CreateIterResultObj); in CreateIterResultObj()
410 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CreateIterResultObj()
412 JSHandle<JSTaggedValue> valueHandle(thread, value); in CreateIterResultObj()
413 return RuntimeStubs::RuntimeCreateIterResultObj(thread, valueHandle, flag); in CreateIterResultObj()
416 JSTaggedValue SlowRuntimeStub::CreateGeneratorObj(JSThread *thread, JSTaggedValue genFunc) in CreateGeneratorObj() argument
418 INTERPRETER_TRACE(thread, CreateGeneratorObj); in CreateGeneratorObj()
419 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CreateGeneratorObj()
421 JSHandle<JSTaggedValue> generatorFunction(thread, genFunc); in CreateGeneratorObj()
422 return RuntimeStubs::RuntimeCreateGeneratorObj(thread, generatorFunction); in CreateGeneratorObj()
425 JSTaggedValue SlowRuntimeStub::CreateAsyncGeneratorObj(JSThread *thread, JSTaggedValue genFunc) in CreateAsyncGeneratorObj() argument
427 INTERPRETER_TRACE(thread, CreateAsyncGeneratorObj); in CreateAsyncGeneratorObj()
428 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CreateAsyncGeneratorObj()
430 JSHandle<JSTaggedValue> asyncGeneratorFunction(thread, genFunc); in CreateAsyncGeneratorObj()
431 return RuntimeStubs::RuntimeCreateAsyncGeneratorObj(thread, asyncGeneratorFunction); in CreateAsyncGeneratorObj()
434 JSTaggedValue SlowRuntimeStub::SuspendGenerator(JSThread *thread, JSTaggedValue genObj, JSTaggedVal… in SuspendGenerator() argument
436 INTERPRETER_TRACE(thread, SuspendGenerator); in SuspendGenerator()
437 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SuspendGenerator()
439 JSHandle<JSTaggedValue> genObjHandle(thread, genObj); in SuspendGenerator()
440 JSHandle<JSTaggedValue> valueHandle(thread, value); in SuspendGenerator()
441 return RuntimeStubs::RuntimeSuspendGenerator(thread, genObjHandle, valueHandle); in SuspendGenerator()
444 void SlowRuntimeStub::SetGeneratorState(JSThread *thread, JSTaggedValue genObj, int32_t index) in SetGeneratorState() argument
446 INTERPRETER_TRACE(thread, SetGeneratorState); in SetGeneratorState()
447 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SetGeneratorState()
449 JSHandle<JSTaggedValue> genObjHandle(thread, genObj); in SetGeneratorState()
450 return RuntimeStubs::RuntimeSetGeneratorState(thread, genObjHandle, index); in SetGeneratorState()
453 JSTaggedValue SlowRuntimeStub::AsyncFunctionAwaitUncaught(JSThread *thread, JSTaggedValue asyncFunc… in AsyncFunctionAwaitUncaught() argument
456 INTERPRETER_TRACE(thread, AsyncFunctionAwaitUncaught); in AsyncFunctionAwaitUncaught()
457 [[maybe_unused]] EcmaHandleScope handleScope(thread); in AsyncFunctionAwaitUncaught()
458 JSHandle<JSTaggedValue> asyncFuncObjHandle(thread, asyncFuncObj); in AsyncFunctionAwaitUncaught()
459 JSHandle<JSTaggedValue> valueHandle(thread, value); in AsyncFunctionAwaitUncaught()
461 return RuntimeStubs::RuntimeAsyncFunctionAwaitUncaught(thread, asyncFuncObjHandle, valueHandle); in AsyncFunctionAwaitUncaught()
464 JSTaggedValue SlowRuntimeStub::AsyncFunctionResolveOrReject(JSThread *thread, JSTaggedValue asyncFu… in AsyncFunctionResolveOrReject() argument
467 INTERPRETER_TRACE(thread, AsyncFunctionResolveOrReject); in AsyncFunctionResolveOrReject()
468 [[maybe_unused]] EcmaHandleScope handleScope(thread); in AsyncFunctionResolveOrReject()
470 JSHandle<JSTaggedValue> asyncFuncObjHandle(thread, asyncFuncObj); in AsyncFunctionResolveOrReject()
471 JSHandle<JSTaggedValue> valueHandle(thread, value); in AsyncFunctionResolveOrReject()
472 …return RuntimeStubs::RuntimeAsyncFunctionResolveOrReject(thread, asyncFuncObjHandle, valueHandle, … in AsyncFunctionResolveOrReject()
475 JSTaggedValue SlowRuntimeStub::NewObjApply(JSThread *thread, JSTaggedValue func, JSTaggedValue arra… in NewObjApply() argument
477 INTERPRETER_TRACE(thread, NewObjApply); in NewObjApply()
478 [[maybe_unused]] EcmaHandleScope handleScope(thread); in NewObjApply()
480 JSHandle<JSTaggedValue> funcHandle(thread, func); in NewObjApply()
481 JSHandle<JSTaggedValue> jsArray(thread, array); in NewObjApply()
482 return RuntimeStubs::RuntimeNewObjApply(thread, funcHandle, jsArray); in NewObjApply()
485 void SlowRuntimeStub::ThrowUndefinedIfHole(JSThread *thread, JSTaggedValue obj) in ThrowUndefinedIfHole() argument
487 INTERPRETER_TRACE(thread, ThrowUndefinedIfHole); in ThrowUndefinedIfHole()
488 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ThrowUndefinedIfHole()
490 JSHandle<EcmaString> name(thread, obj); in ThrowUndefinedIfHole()
491 return RuntimeStubs::RuntimeThrowUndefinedIfHole(thread, name); in ThrowUndefinedIfHole()
494 JSTaggedValue SlowRuntimeStub::ThrowIfSuperNotCorrectCall(JSThread *thread, uint16_t index, JSTagge… in ThrowIfSuperNotCorrectCall() argument
496 INTERPRETER_TRACE(thread, ThrowIfSuperNotCorrectCall); in ThrowIfSuperNotCorrectCall()
497 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ThrowIfSuperNotCorrectCall()
499 return RuntimeStubs::RuntimeThrowIfSuperNotCorrectCall(thread, index, thisValue); in ThrowIfSuperNotCorrectCall()
502 void SlowRuntimeStub::ThrowIfNotObject(JSThread *thread) in ThrowIfNotObject() argument
504 INTERPRETER_TRACE(thread, ThrowIfNotObject); in ThrowIfNotObject()
505 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ThrowIfNotObject()
507 THROW_TYPE_ERROR(thread, "Inner return result is not object"); in ThrowIfNotObject()
510 void SlowRuntimeStub::ThrowThrowNotExists(JSThread *thread) in ThrowThrowNotExists() argument
512 INTERPRETER_TRACE(thread, ThrowThrowNotExists); in ThrowThrowNotExists()
513 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ThrowThrowNotExists()
515 return RuntimeStubs::RuntimeThrowIfNotObject(thread); in ThrowThrowNotExists()
518 void SlowRuntimeStub::ThrowPatternNonCoercible(JSThread *thread) in ThrowPatternNonCoercible() argument
520 INTERPRETER_TRACE(thread, ThrowPatternNonCoercible); in ThrowPatternNonCoercible()
521 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ThrowPatternNonCoercible()
523 return RuntimeStubs::RuntimeThrowPatternNonCoercible(thread); in ThrowPatternNonCoercible()
526 JSTaggedValue SlowRuntimeStub::StOwnByName(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop,… in StOwnByName() argument
528 INTERPRETER_TRACE(thread, StOwnByName); in StOwnByName()
529 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StOwnByName()
531 JSHandle<JSTaggedValue> objHandle(thread, obj); in StOwnByName()
532 JSHandle<JSTaggedValue> propHandle(thread, prop); in StOwnByName()
533 JSHandle<JSTaggedValue> valueHandle(thread, value); in StOwnByName()
534 return RuntimeStubs::RuntimeStOwnByName(thread, objHandle, propHandle, valueHandle); in StOwnByName()
537 JSTaggedValue SlowRuntimeStub::StOwnByNameWithNameSet(JSThread *thread, JSTaggedValue obj, JSTagged… in StOwnByNameWithNameSet() argument
540 INTERPRETER_TRACE(thread, StOwnByName); in StOwnByNameWithNameSet()
541 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StOwnByNameWithNameSet()
543 JSHandle<JSTaggedValue> objHandle(thread, obj); in StOwnByNameWithNameSet()
544 JSHandle<JSTaggedValue> propHandle(thread, prop); in StOwnByNameWithNameSet()
545 JSHandle<JSTaggedValue> valueHandle(thread, value); in StOwnByNameWithNameSet()
546 return RuntimeStubs::RuntimeStOwnByNameWithNameSet(thread, objHandle, propHandle, valueHandle); in StOwnByNameWithNameSet()
549 JSTaggedValue SlowRuntimeStub::StOwnByIndex(JSThread *thread, JSTaggedValue obj, uint32_t idx, JSTa… in StOwnByIndex() argument
551 INTERPRETER_TRACE(thread, StOwnById); in StOwnByIndex()
552 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StOwnByIndex()
554 JSHandle<JSTaggedValue> objHandle(thread, obj); in StOwnByIndex()
555 JSHandle<JSTaggedValue> idxHandle(thread, JSTaggedValue(idx)); in StOwnByIndex()
556 JSHandle<JSTaggedValue> valueHandle(thread, value); in StOwnByIndex()
557 return RuntimeStubs::RuntimeStOwnByIndex(thread, objHandle, idxHandle, valueHandle); in StOwnByIndex()
560 JSTaggedValue SlowRuntimeStub::StOwnByValue(JSThread *thread, JSTaggedValue obj, JSTaggedValue key,… in StOwnByValue() argument
562 INTERPRETER_TRACE(thread, StOwnByValue); in StOwnByValue()
563 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StOwnByValue()
565 JSHandle<JSTaggedValue> objHandle(thread, obj); in StOwnByValue()
566 JSHandle<JSTaggedValue> keyHandle(thread, key); in StOwnByValue()
567 JSHandle<JSTaggedValue> valueHandle(thread, value); in StOwnByValue()
568 return RuntimeStubs::RuntimeStOwnByValue(thread, objHandle, keyHandle, valueHandle); in StOwnByValue()
571 JSTaggedValue SlowRuntimeStub::StOwnByValueWithNameSet(JSThread *thread, JSTaggedValue obj, JSTagge… in StOwnByValueWithNameSet() argument
574 INTERPRETER_TRACE(thread, StOwnByValue); in StOwnByValueWithNameSet()
575 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StOwnByValueWithNameSet()
577 JSHandle<JSTaggedValue> objHandle(thread, obj); in StOwnByValueWithNameSet()
578 JSHandle<JSTaggedValue> keyHandle(thread, key); in StOwnByValueWithNameSet()
579 JSHandle<JSTaggedValue> valueHandle(thread, value); in StOwnByValueWithNameSet()
580 return RuntimeStubs::RuntimeStOwnByValueWithNameSet(thread, objHandle, keyHandle, valueHandle); in StOwnByValueWithNameSet()
583 JSTaggedValue SlowRuntimeStub::CreateEmptyArray(JSThread *thread, ObjectFactory *factory, JSHandle<… in CreateEmptyArray() argument
585 INTERPRETER_TRACE(thread, CreateEmptyArray); in CreateEmptyArray()
586 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CreateEmptyArray()
587 return RuntimeStubs::RuntimeCreateEmptyArray(thread, factory, globalEnv); in CreateEmptyArray()
590 JSTaggedValue SlowRuntimeStub::CreateEmptyObject(JSThread *thread, ObjectFactory *factory, in CreateEmptyObject() argument
593 INTERPRETER_TRACE(thread, CreateEmptyObject); in CreateEmptyObject()
594 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CreateEmptyObject()
596 return RuntimeStubs::RuntimeCreateEmptyObject(thread, factory, globalEnv); in CreateEmptyObject()
599 JSTaggedValue SlowRuntimeStub::CreateObjectWithBuffer(JSThread *thread, ObjectFactory *factory, JSO… in CreateObjectWithBuffer() argument
601 INTERPRETER_TRACE(thread, CreateObjectWithBuffer); in CreateObjectWithBuffer()
602 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CreateObjectWithBuffer()
604 JSHandle<JSObject> obj(thread, literal); in CreateObjectWithBuffer()
605 return RuntimeStubs::RuntimeCreateObjectWithBuffer(thread, factory, obj); in CreateObjectWithBuffer()
608 JSTaggedValue SlowRuntimeStub::CreateObjectHavingMethod(JSThread *thread, ObjectFactory *factory, J… in CreateObjectHavingMethod() argument
611 INTERPRETER_TRACE(thread, CreateObjectHavingMethod); in CreateObjectHavingMethod()
612 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CreateObjectHavingMethod()
614 JSHandle<JSObject> obj(thread, literal); in CreateObjectHavingMethod()
615 JSHandle<JSTaggedValue> envi(thread, env); in CreateObjectHavingMethod()
616 return RuntimeStubs::RuntimeCreateObjectHavingMethod(thread, factory, obj, envi); in CreateObjectHavingMethod()
619 JSTaggedValue SlowRuntimeStub::SetObjectWithProto(JSThread *thread, JSTaggedValue proto, JSTaggedVa… in SetObjectWithProto() argument
621 INTERPRETER_TRACE(thread, SetObjectWithProto); in SetObjectWithProto()
622 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SetObjectWithProto()
624 JSHandle<JSTaggedValue> protoHandle(thread, proto); in SetObjectWithProto()
625 JSHandle<JSObject> objHandle(thread, obj); in SetObjectWithProto()
626 return RuntimeStubs::RuntimeSetObjectWithProto(thread, protoHandle, objHandle); in SetObjectWithProto()
629 JSTaggedValue SlowRuntimeStub::IterNext(JSThread *thread, JSTaggedValue iter) in IterNext() argument
631 INTERPRETER_TRACE(thread, IterNext); in IterNext()
632 [[maybe_unused]] EcmaHandleScope handleScope(thread); in IterNext()
634 JSHandle<JSTaggedValue> iterHandle(thread, iter); in IterNext()
635 return RuntimeStubs::RuntimeIterNext(thread, iterHandle); in IterNext()
638 JSTaggedValue SlowRuntimeStub::CloseIterator(JSThread *thread, JSTaggedValue iter) in CloseIterator() argument
640 INTERPRETER_TRACE(thread, CloseIterator); in CloseIterator()
641 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CloseIterator()
643 JSHandle<JSTaggedValue> iterHandle(thread, iter); in CloseIterator()
644 return RuntimeStubs::RuntimeCloseIterator(thread, iterHandle); in CloseIterator()
647 void SlowRuntimeStub::StModuleVar(JSThread *thread, int32_t index, JSTaggedValue value) in StModuleVar() argument
649 INTERPRETER_TRACE(thread, StModuleVar); in StModuleVar()
650 [[maybe_unused]] EcmaHandleScope scope(thread); in StModuleVar()
652 return RuntimeStubs::RuntimeStModuleVar(thread, index, value); in StModuleVar()
655 void SlowRuntimeStub::StModuleVar(JSThread *thread, JSTaggedValue key, JSTaggedValue value) in StModuleVar() argument
657 INTERPRETER_TRACE(thread, StModuleVar); in StModuleVar()
658 [[maybe_unused]] EcmaHandleScope scope(thread); in StModuleVar()
660 return RuntimeStubs::RuntimeStModuleVar(thread, key, value); in StModuleVar()
663 JSTaggedValue SlowRuntimeStub::LdLocalModuleVar(JSThread *thread, int32_t index) in LdLocalModuleVar() argument
665 RUNTIME_TRACE(thread, LdLocalModuleVarByIndex); in LdLocalModuleVar()
666 [[maybe_unused]] EcmaHandleScope scope(thread); in LdLocalModuleVar()
668 return RuntimeStubs::RuntimeLdLocalModuleVar(thread, index); in LdLocalModuleVar()
671 JSTaggedValue SlowRuntimeStub::LdExternalModuleVar(JSThread *thread, int32_t index) in LdExternalModuleVar() argument
673 RUNTIME_TRACE(thread, LdExternalModuleVarByIndex); in LdExternalModuleVar()
674 [[maybe_unused]] EcmaHandleScope scope(thread); in LdExternalModuleVar()
676 return RuntimeStubs::RuntimeLdExternalModuleVar(thread, index); in LdExternalModuleVar()
679 JSTaggedValue SlowRuntimeStub::LdModuleVar(JSThread *thread, JSTaggedValue key, bool inner) in LdModuleVar() argument
681 INTERPRETER_TRACE(thread, LdModuleVar); in LdModuleVar()
682 [[maybe_unused]] EcmaHandleScope scope(thread); in LdModuleVar()
684 return RuntimeStubs::RuntimeLdModuleVar(thread, key, inner); in LdModuleVar()
687 JSTaggedValue SlowRuntimeStub::CreateRegExpWithLiteral(JSThread *thread, JSTaggedValue pattern, uin… in CreateRegExpWithLiteral() argument
689 INTERPRETER_TRACE(thread, CreateRegExpWithLiteral); in CreateRegExpWithLiteral()
690 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CreateRegExpWithLiteral()
692 JSHandle<JSTaggedValue> patternHandle(thread, pattern); in CreateRegExpWithLiteral()
693 return RuntimeStubs::RuntimeCreateRegExpWithLiteral(thread, patternHandle, flags); in CreateRegExpWithLiteral()
696 JSTaggedValue SlowRuntimeStub::CreateArrayWithBuffer(JSThread *thread, ObjectFactory *factory, JSAr… in CreateArrayWithBuffer() argument
698 INTERPRETER_TRACE(thread, CreateArrayWithBuffer); in CreateArrayWithBuffer()
699 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CreateArrayWithBuffer()
701 JSHandle<JSTaggedValue> array(thread, literal); in CreateArrayWithBuffer()
702 return RuntimeStubs::RuntimeCreateArrayWithBuffer(thread, factory, array); in CreateArrayWithBuffer()
705 JSTaggedValue SlowRuntimeStub::GetTemplateObject(JSThread *thread, JSTaggedValue literal) in GetTemplateObject() argument
707 INTERPRETER_TRACE(thread, GetTemplateObject); in GetTemplateObject()
708 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetTemplateObject()
710 JSHandle<JSTaggedValue> templateLiteral(thread, literal); in GetTemplateObject()
711 return RuntimeStubs::RuntimeGetTemplateObject(thread, templateLiteral); in GetTemplateObject()
714 JSTaggedValue SlowRuntimeStub::GetNextPropName(JSThread *thread, JSTaggedValue iter) in GetNextPropName() argument
716 INTERPRETER_TRACE(thread, GetNextPropName); in GetNextPropName()
717 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetNextPropName()
719 JSHandle<JSTaggedValue> iterator(thread, iter); in GetNextPropName()
720 return RuntimeStubs::RuntimeGetNextPropName(thread, iterator); in GetNextPropName()
723 JSTaggedValue SlowRuntimeStub::CopyDataProperties(JSThread *thread, JSTaggedValue dst, JSTaggedValu… in CopyDataProperties() argument
725 INTERPRETER_TRACE(thread, CopyDataProperties); in CopyDataProperties()
726 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CopyDataProperties()
728 JSHandle<JSTaggedValue> dstHandle(thread, dst); in CopyDataProperties()
729 JSHandle<JSTaggedValue> srcHandle(thread, src); in CopyDataProperties()
730 return RuntimeStubs::RuntimeCopyDataProperties(thread, dstHandle, srcHandle); in CopyDataProperties()
733 JSTaggedValue SlowRuntimeStub::GetIteratorNext(JSThread *thread, JSTaggedValue obj, JSTaggedValue m… in GetIteratorNext() argument
735 RUNTIME_TRACE(thread, GetIteratorNext); in GetIteratorNext()
736 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIteratorNext()
738 JSHandle<JSTaggedValue> iter(thread, obj); in GetIteratorNext()
739 JSHandle<JSTaggedValue> next(thread, method); in GetIteratorNext()
740 return RuntimeStubs::RuntimeGetIteratorNext(thread, iter, next); in GetIteratorNext()
743 JSTaggedValue SlowRuntimeStub::GetUnmapedArgs(JSThread *thread, JSTaggedType *sp, uint32_t actualNu… in GetUnmapedArgs() argument
746 INTERPRETER_TRACE(thread, GetUnmapedArgs); in GetUnmapedArgs()
747 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetUnmapedArgs()
748 return RuntimeStubs::RuntimeGetUnmapedArgs(thread, sp, actualNumArgs, startIdx); in GetUnmapedArgs()
751 JSTaggedValue SlowRuntimeStub::CopyRestArgs(JSThread *thread, JSTaggedType *sp, uint32_t restNumArg… in CopyRestArgs() argument
753 INTERPRETER_TRACE(thread, Copyrestargs); in CopyRestArgs()
754 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CopyRestArgs()
755 return RuntimeStubs::RuntimeCopyRestArgs(thread, sp, restNumArgs, startIdx); in CopyRestArgs()
758 JSTaggedValue SlowRuntimeStub::GetIterator(JSThread *thread, JSTaggedValue obj) in GetIterator() argument
760 INTERPRETER_TRACE(thread, GetIterator); in GetIterator()
761 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetIterator()
763 JSHandle<JSTaggedValue> objHandle(thread, obj); in GetIterator()
764 return RuntimeStubs::RuntimeGetIterator(thread, objHandle); in GetIterator()
767 JSTaggedValue SlowRuntimeStub::GetAsyncIterator(JSThread *thread, JSTaggedValue obj) in GetAsyncIterator() argument
769 INTERPRETER_TRACE(thread, GetAsyncIterator); in GetAsyncIterator()
770 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetAsyncIterator()
772 JSHandle<JSTaggedValue> objHandle(thread, obj); in GetAsyncIterator()
773 return RuntimeStubs::RuntimeGetAsyncIterator(thread, objHandle); in GetAsyncIterator()
776 JSTaggedValue SlowRuntimeStub::DefineGetterSetterByValue(JSThread *thread, JSTaggedValue obj, JSTag… in DefineGetterSetterByValue() argument
779 INTERPRETER_TRACE(thread, DefineGetterSetterByValue); in DefineGetterSetterByValue()
780 [[maybe_unused]] EcmaHandleScope handleScope(thread); in DefineGetterSetterByValue()
782 JSHandle<JSObject> objHandle(thread, obj); in DefineGetterSetterByValue()
783 JSHandle<JSTaggedValue> propHandle(thread, prop); in DefineGetterSetterByValue()
784 JSHandle<JSTaggedValue> getterHandle(thread, getter); in DefineGetterSetterByValue()
785 JSHandle<JSTaggedValue> setterHandle(thread, setter); in DefineGetterSetterByValue()
786 return RuntimeStubs::RuntimeDefineGetterSetterByValue(thread, objHandle, propHandle, in DefineGetterSetterByValue()
790 JSTaggedValue SlowRuntimeStub::LdObjByIndex(JSThread *thread, JSTaggedValue obj, uint32_t idx, bool… in LdObjByIndex() argument
793 INTERPRETER_TRACE(thread, LdObjByIndex); in LdObjByIndex()
794 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LdObjByIndex()
796 JSHandle<JSTaggedValue> objHandle(thread, obj); in LdObjByIndex()
797 return RuntimeStubs::RuntimeLdObjByIndex(thread, objHandle, idx, callGetter, receiver); in LdObjByIndex()
800 JSTaggedValue SlowRuntimeStub::StObjByIndex(JSThread *thread, JSTaggedValue obj, uint32_t idx, JSTa… in StObjByIndex() argument
802 INTERPRETER_TRACE(thread, StObjByIndex); in StObjByIndex()
803 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StObjByIndex()
805 JSHandle<JSTaggedValue> objHandle(thread, obj); in StObjByIndex()
806 JSHandle<JSTaggedValue> valueHandle(thread, value); in StObjByIndex()
807 return RuntimeStubs::RuntimeStObjByIndex(thread, objHandle, idx, valueHandle); in StObjByIndex()
810 JSTaggedValue SlowRuntimeStub::LdObjByName(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop,… in LdObjByName() argument
813 INTERPRETER_TRACE(thread, LdObjByName); in LdObjByName()
814 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LdObjByName()
815 return RuntimeStubs::RuntimeLdObjByName(thread, obj, prop, callGetter, receiver); in LdObjByName()
818 JSTaggedValue SlowRuntimeStub::StObjByName(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop,… in StObjByName() argument
820 INTERPRETER_TRACE(thread, StObjByName); in StObjByName()
821 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StObjByName()
823 JSHandle<JSTaggedValue> objHandle(thread, obj); in StObjByName()
824 JSHandle<JSTaggedValue> propHandle(thread, prop); in StObjByName()
825 JSHandle<JSTaggedValue> valueHandle(thread, value); in StObjByName()
826 return RuntimeStubs::RuntimeStObjByName(thread, objHandle, propHandle, valueHandle); in StObjByName()
829 JSTaggedValue SlowRuntimeStub::LdObjByValue(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop… in LdObjByValue() argument
832 INTERPRETER_TRACE(thread, LdObjByValue); in LdObjByValue()
833 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LdObjByValue()
835 JSHandle<JSTaggedValue> objHandle(thread, obj); in LdObjByValue()
836 JSHandle<JSTaggedValue> propHandle(thread, prop); in LdObjByValue()
837 return RuntimeStubs::RuntimeLdObjByValue(thread, objHandle, propHandle, callGetter, receiver); in LdObjByValue()
840 JSTaggedValue SlowRuntimeStub::StObjByValue(JSThread *thread, JSTaggedValue obj, JSTaggedValue prop, in StObjByValue() argument
843 INTERPRETER_TRACE(thread, StObjByValue); in StObjByValue()
844 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StObjByValue()
846 JSHandle<JSTaggedValue> objHandle(thread, obj); in StObjByValue()
847 JSHandle<JSTaggedValue> propHandle(thread, prop); in StObjByValue()
848 JSHandle<JSTaggedValue> valueHandle(thread, value); in StObjByValue()
849 return RuntimeStubs::RuntimeStObjByValue(thread, objHandle, propHandle, valueHandle); in StObjByValue()
852 JSTaggedValue SlowRuntimeStub::TryLdGlobalByNameFromGlobalProto(JSThread *thread, JSTaggedValue glo… in TryLdGlobalByNameFromGlobalProto() argument
855 INTERPRETER_TRACE(thread, Trygetobjprop); in TryLdGlobalByNameFromGlobalProto()
856 [[maybe_unused]] EcmaHandleScope handleScope(thread); in TryLdGlobalByNameFromGlobalProto()
858 JSHandle<JSTaggedValue> obj(thread, global.GetTaggedObject()->GetClass()->GetPrototype()); in TryLdGlobalByNameFromGlobalProto()
859 JSHandle<JSTaggedValue> propHandle(thread, prop); in TryLdGlobalByNameFromGlobalProto()
860 return RuntimeStubs::RuntimeTryLdGlobalByName(thread, obj, propHandle); in TryLdGlobalByNameFromGlobalProto()
863 JSTaggedValue SlowRuntimeStub::TryStGlobalByName(JSThread *thread, JSTaggedValue prop) in TryStGlobalByName() argument
865 INTERPRETER_TRACE(thread, TryStGlobalByName); in TryStGlobalByName()
867 return ThrowReferenceError(thread, prop, " is not defined"); in TryStGlobalByName()
870 JSTaggedValue SlowRuntimeStub::LdGlobalVarFromGlobalProto(JSThread *thread, JSTaggedValue global, J… in LdGlobalVarFromGlobalProto() argument
872 INTERPRETER_TRACE(thread, LdGlobalVar); in LdGlobalVarFromGlobalProto()
873 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LdGlobalVarFromGlobalProto()
875 JSHandle<JSTaggedValue> objHandle(thread, global); in LdGlobalVarFromGlobalProto()
876 JSHandle<JSTaggedValue> propHandle(thread, prop); in LdGlobalVarFromGlobalProto()
877 …return RuntimeStubs::RuntimeLdGlobalVarFromProto(thread, objHandle, propHandle); // After checked … in LdGlobalVarFromGlobalProto()
880 JSTaggedValue SlowRuntimeStub::StGlobalVar(JSThread *thread, JSTaggedValue prop, JSTaggedValue valu… in StGlobalVar() argument
882 INTERPRETER_TRACE(thread, StGlobalVar); in StGlobalVar()
883 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StGlobalVar()
885 JSHandle<JSTaggedValue> propHandle(thread, prop); in StGlobalVar()
886 JSHandle<JSTaggedValue> valueHandle(thread, value); in StGlobalVar()
887 return RuntimeStubs::RuntimeStGlobalVar(thread, propHandle, valueHandle); in StGlobalVar()
890 JSTaggedValue SlowRuntimeStub::TryUpdateGlobalRecord(JSThread *thread, JSTaggedValue prop, JSTagged… in TryUpdateGlobalRecord() argument
892 INTERPRETER_TRACE(thread, TryUpdateGlobalRecord); in TryUpdateGlobalRecord()
893 [[maybe_unused]] EcmaHandleScope handleScope(thread); in TryUpdateGlobalRecord()
895 return RuntimeStubs::RuntimeTryUpdateGlobalRecord(thread, prop, value); in TryUpdateGlobalRecord()
899 JSTaggedValue SlowRuntimeStub::LdGlobalRecord(JSThread *thread, JSTaggedValue key) in LdGlobalRecord() argument
901 INTERPRETER_TRACE(thread, LdGlobalRecord); in LdGlobalRecord()
902 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LdGlobalRecord()
904 return RuntimeStubs::RuntimeLdGlobalRecord(thread, key); in LdGlobalRecord()
907 JSTaggedValue SlowRuntimeStub::StGlobalRecord(JSThread *thread, JSTaggedValue prop, JSTaggedValue v… in StGlobalRecord() argument
909 INTERPRETER_TRACE(thread, StGlobalRecord); in StGlobalRecord()
910 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StGlobalRecord()
912 JSHandle<JSTaggedValue> propHandle(thread, prop); in StGlobalRecord()
913 JSHandle<JSTaggedValue> valueHandle(thread, value); in StGlobalRecord()
914 return RuntimeStubs::RuntimeStGlobalRecord(thread, propHandle, valueHandle, isConst); in StGlobalRecord()
917 JSTaggedValue SlowRuntimeStub::ThrowReferenceError(JSThread *thread, JSTaggedValue prop, const char… in ThrowReferenceError() argument
919 INTERPRETER_TRACE(thread, ThrowReferenceError); in ThrowReferenceError()
920 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ThrowReferenceError()
922 JSHandle<JSTaggedValue> propHandle(thread, prop); in ThrowReferenceError()
923 return RuntimeStubs::RuntimeThrowReferenceError(thread, propHandle, desc); in ThrowReferenceError()
926 JSTaggedValue SlowRuntimeStub::ThrowTypeError(JSThread *thread, const char *message) in ThrowTypeError() argument
928 INTERPRETER_TRACE(thread, ThrowTypeError); in ThrowTypeError()
929 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ThrowTypeError()
931 return RuntimeStubs::RuntimeThrowTypeError(thread, message); in ThrowTypeError()
934 JSTaggedValue SlowRuntimeStub::ThrowSyntaxError(JSThread *thread, const char *message) in ThrowSyntaxError() argument
936 INTERPRETER_TRACE(thread, ThrowSyntaxError); in ThrowSyntaxError()
937 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ThrowSyntaxError()
939 return RuntimeStubs::RuntimeThrowSyntaxError(thread, message); in ThrowSyntaxError()
942 JSTaggedValue SlowRuntimeStub::StArraySpread(JSThread *thread, JSTaggedValue dst, JSTaggedValue ind… in StArraySpread() argument
945 INTERPRETER_TRACE(thread, StArraySpread); in StArraySpread()
946 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StArraySpread()
948 JSHandle<JSTaggedValue> dstHandle(thread, dst); in StArraySpread()
949 JSHandle<JSTaggedValue> srcHandle(thread, src); in StArraySpread()
950 return RuntimeStubs::RuntimeStArraySpread(thread, dstHandle, index, srcHandle); in StArraySpread()
953 JSTaggedValue SlowRuntimeStub::DefineFunc(JSThread *thread, Method *method) in DefineFunc() argument
955 INTERPRETER_TRACE(thread, DefineFunc); in DefineFunc()
956 [[maybe_unused]] EcmaHandleScope handleScope(thread); in DefineFunc()
957 JSHandle<Method> methodHandle(thread, method); in DefineFunc()
958 return RuntimeStubs::RuntimeDefinefunc(thread, methodHandle); in DefineFunc()
961 JSTaggedValue SlowRuntimeStub::GetSuperConstructor(JSThread *thread, JSTaggedValue ctor) in GetSuperConstructor() argument
963 INTERPRETER_TRACE(thread, GetSuperConstructor); in GetSuperConstructor()
964 JSHandle<JSTaggedValue> ctorHandle(thread, ctor); in GetSuperConstructor()
965 … JSHandle<JSTaggedValue> superConstructor(thread, JSTaggedValue::GetPrototype(thread, ctorHandle)); in GetSuperConstructor()
966 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread); in GetSuperConstructor()
970 JSTaggedValue SlowRuntimeStub::SuperCall(JSThread *thread, JSTaggedValue func, JSTaggedValue newTar… in SuperCall() argument
973 INTERPRETER_TRACE(thread, SuperCall); in SuperCall()
974 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SuperCall()
976 JSHandle<JSTaggedValue> funcHandle(thread, func); in SuperCall()
977 JSHandle<JSTaggedValue> newTargetHandle(thread, newTarget); in SuperCall()
978 … return RuntimeStubs::RuntimeSuperCall(thread, funcHandle, newTargetHandle, firstVRegIdx, length); in SuperCall()
981 JSTaggedValue SlowRuntimeStub::DynamicImport(JSThread *thread, JSTaggedValue specifier, JSTaggedVal… in DynamicImport() argument
983 INTERPRETER_TRACE(thread, DynamicImport); in DynamicImport()
984 [[maybe_unused]] EcmaHandleScope handleScope(thread); in DynamicImport()
986 JSHandle<JSTaggedValue> specifierHandle(thread, specifier); in DynamicImport()
987 JSHandle<JSTaggedValue> currentFuncHandle(thread, currentFunc); in DynamicImport()
988 return RuntimeStubs::RuntimeDynamicImport(thread, specifierHandle, currentFuncHandle); in DynamicImport()
991 JSTaggedValue SlowRuntimeStub::SuperCallSpread(JSThread *thread, JSTaggedValue func, JSTaggedValue … in SuperCallSpread() argument
994 INTERPRETER_TRACE(thread, SuperCallSpread); in SuperCallSpread()
995 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SuperCallSpread()
997 JSHandle<JSTaggedValue> funcHandle(thread, func); in SuperCallSpread()
998 JSHandle<JSTaggedValue> newTargetHandle(thread, newTarget); in SuperCallSpread()
999 JSHandle<JSTaggedValue> jsArray(thread, array); in SuperCallSpread()
1000 return RuntimeStubs::RuntimeSuperCallSpread(thread, funcHandle, newTargetHandle, jsArray); in SuperCallSpread()
1003 JSTaggedValue SlowRuntimeStub::DefineMethod(JSThread *thread, Method *method, JSTaggedValue homeObj… in DefineMethod() argument
1005 INTERPRETER_TRACE(thread, DefineMethod); in DefineMethod()
1006 [[maybe_unused]] EcmaHandleScope handleScope(thread); in DefineMethod()
1007 JSHandle<Method> methodHandle(thread, method); in DefineMethod()
1008 JSHandle<JSTaggedValue> homeObjectHandle(thread, homeObject); in DefineMethod()
1009 return RuntimeStubs::RuntimeDefineMethod(thread, methodHandle, homeObjectHandle); in DefineMethod()
1012 JSTaggedValue SlowRuntimeStub::LdSuperByValue(JSThread *thread, JSTaggedValue obj, JSTaggedValue ke… in LdSuperByValue() argument
1015 INTERPRETER_TRACE(thread, LdSuperByValue); in LdSuperByValue()
1016 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LdSuperByValue()
1018 JSHandle<JSTaggedValue> objHandle(thread, obj); in LdSuperByValue()
1019 JSHandle<JSTaggedValue> propHandle(thread, key); in LdSuperByValue()
1020 return RuntimeStubs::RuntimeLdSuperByValue(thread, objHandle, propHandle, thisFunc); in LdSuperByValue()
1023 JSTaggedValue SlowRuntimeStub::StSuperByValue(JSThread *thread, JSTaggedValue obj, JSTaggedValue ke… in StSuperByValue() argument
1026 INTERPRETER_TRACE(thread, StSuperByValue); in StSuperByValue()
1027 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StSuperByValue()
1029 JSHandle<JSTaggedValue> objHandle(thread, obj); in StSuperByValue()
1030 JSHandle<JSTaggedValue> propHandle(thread, key); in StSuperByValue()
1031 JSHandle<JSTaggedValue> valueHandle(thread, value); in StSuperByValue()
1032 … return RuntimeStubs::RuntimeStSuperByValue(thread, objHandle, propHandle, valueHandle, thisFunc); in StSuperByValue()
1035 JSTaggedValue SlowRuntimeStub::GetCallSpreadArgs(JSThread *thread, JSTaggedValue array) in GetCallSpreadArgs() argument
1037 INTERPRETER_TRACE(thread, GetCallSpreadArgs); in GetCallSpreadArgs()
1038 [[maybe_unused]] EcmaHandleScope handleScope(thread); in GetCallSpreadArgs()
1040 JSHandle<JSTaggedValue> jsArray(thread, array); in GetCallSpreadArgs()
1041 return RuntimeStubs::RuntimeGetCallSpreadArgs(thread, jsArray); in GetCallSpreadArgs()
1044 void SlowRuntimeStub::ThrowDeleteSuperProperty(JSThread *thread) in ThrowDeleteSuperProperty() argument
1046 INTERPRETER_TRACE(thread, ThrowDeleteSuperProperty); in ThrowDeleteSuperProperty()
1047 [[maybe_unused]] EcmaHandleScope handleScope(thread); in ThrowDeleteSuperProperty()
1049 return RuntimeStubs::RuntimeThrowDeleteSuperProperty(thread); in ThrowDeleteSuperProperty()
1052 JSTaggedValue SlowRuntimeStub::NotifyInlineCache(JSThread *thread, Method *method) in NotifyInlineCache() argument
1054 INTERPRETER_TRACE(thread, NotifyInlineCache); in NotifyInlineCache()
1055 [[maybe_unused]] EcmaHandleScope handleScope(thread); in NotifyInlineCache()
1057 JSHandle<Method> methodHandle(thread, method); in NotifyInlineCache()
1059 return RuntimeStubs::RuntimeNotifyInlineCache(thread, methodHandle, slotSize); in NotifyInlineCache()
1062 JSTaggedValue SlowRuntimeStub::ResolveClass(JSThread *thread, JSTaggedValue ctor, TaggedArray *lite… in ResolveClass() argument
1065 JSHandle<JSFunction> cls(thread, ctor); in ResolveClass()
1066 JSHandle<TaggedArray> literalBuffer(thread, literal); in ResolveClass()
1067 JSHandle<JSTaggedValue> baseHandle(thread, base); in ResolveClass()
1068 JSHandle<JSTaggedValue> lexicalEnv(thread, lexenv); in ResolveClass()
1069 return RuntimeStubs::RuntimeResolveClass(thread, cls, literalBuffer, baseHandle, lexicalEnv); in ResolveClass()
1073 JSTaggedValue SlowRuntimeStub::CloneClassFromTemplate(JSThread *thread, JSTaggedValue ctor, JSTagge… in CloneClassFromTemplate() argument
1076 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CloneClassFromTemplate()
1078 JSHandle<JSTaggedValue> lexenvHandle(thread, lexenv); in CloneClassFromTemplate()
1079 JSHandle<JSTaggedValue> baseHandle(thread, base); in CloneClassFromTemplate()
1080 JSHandle<JSFunction> cls(thread, ctor); in CloneClassFromTemplate()
1081 return RuntimeStubs::RuntimeCloneClassFromTemplate(thread, cls, baseHandle, lexenvHandle); in CloneClassFromTemplate()
1085 JSTaggedValue SlowRuntimeStub::CreateClassWithBuffer(JSThread *thread, JSTaggedValue base, in CreateClassWithBuffer() argument
1089 [[maybe_unused]] EcmaHandleScope handleScope(thread); in CreateClassWithBuffer()
1090 JSHandle<JSTaggedValue> baseHandle(thread, base); in CreateClassWithBuffer()
1091 JSHandle<JSTaggedValue> lexenvHandle(thread, lexenv); in CreateClassWithBuffer()
1092 JSHandle<JSTaggedValue> constpoolHandle(thread, constpool); in CreateClassWithBuffer()
1093 JSHandle<JSTaggedValue> moduleHandle(thread, module); in CreateClassWithBuffer()
1094 return RuntimeStubs::RuntimeCreateClassWithBuffer(thread, baseHandle, lexenvHandle, in CreateClassWithBuffer()
1098 JSTaggedValue SlowRuntimeStub::SetClassInheritanceRelationship(JSThread *thread, JSTaggedValue ctor… in SetClassInheritanceRelationship() argument
1100 [[maybe_unused]] EcmaHandleScope handleScope(thread); in SetClassInheritanceRelationship()
1102 JSHandle<JSTaggedValue> cls(thread, ctor); in SetClassInheritanceRelationship()
1103 JSHandle<JSTaggedValue> parent(thread, base); in SetClassInheritanceRelationship()
1104 return RuntimeStubs::RuntimeSetClassInheritanceRelationship(thread, cls, parent); in SetClassInheritanceRelationship()
1107 JSTaggedValue SlowRuntimeStub::SetClassConstructorLength(JSThread *thread, JSTaggedValue ctor, JSTa… in SetClassConstructorLength() argument
1109 return RuntimeStubs::RuntimeSetClassConstructorLength(thread, ctor, length); in SetClassConstructorLength()
1112 JSTaggedValue SlowRuntimeStub::GetModuleNamespace(JSThread *thread, int32_t index) in GetModuleNamespace() argument
1114 return RuntimeStubs::RuntimeGetModuleNamespace(thread, index); in GetModuleNamespace()
1117 JSTaggedValue SlowRuntimeStub::GetModuleNamespace(JSThread *thread, JSTaggedValue localName) in GetModuleNamespace() argument
1119 return RuntimeStubs::RuntimeGetModuleNamespace(thread, localName); in GetModuleNamespace()
1122 JSTaggedValue SlowRuntimeStub::LdBigInt(JSThread *thread, JSTaggedValue numberBigInt) in LdBigInt() argument
1124 INTERPRETER_TRACE(thread, LdBigInt); in LdBigInt()
1125 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LdBigInt()
1126 JSHandle<JSTaggedValue> bigint(thread, numberBigInt); in LdBigInt()
1127 return RuntimeStubs::RuntimeLdBigInt(thread, bigint); in LdBigInt()
1129 JSTaggedValue SlowRuntimeStub::AsyncGeneratorResolve(JSThread *thread, JSTaggedValue asyncFuncObj, in AsyncGeneratorResolve() argument
1132 INTERPRETER_TRACE(thread, AsyncGeneratorResolve); in AsyncGeneratorResolve()
1133 [[maybe_unused]] EcmaHandleScope handleScope(thread); in AsyncGeneratorResolve()
1135 JSHandle<JSTaggedValue> genObjHandle(thread, asyncFuncObj); in AsyncGeneratorResolve()
1136 JSHandle<JSTaggedValue> valueHandle(thread, value); in AsyncGeneratorResolve()
1138 return RuntimeStubs::RuntimeAsyncGeneratorResolve(thread, genObjHandle, valueHandle, flag); in AsyncGeneratorResolve()
1141 JSTaggedValue SlowRuntimeStub::AsyncGeneratorReject(JSThread *thread, JSTaggedValue asyncFuncObj, in AsyncGeneratorReject() argument
1144 INTERPRETER_TRACE(thread, AsyncGeneratorReject); in AsyncGeneratorReject()
1145 [[maybe_unused]] EcmaHandleScope handleScope(thread); in AsyncGeneratorReject()
1147 JSHandle<JSAsyncGeneratorObject> asyncFuncObjHandle(thread, asyncFuncObj); in AsyncGeneratorReject()
1148 JSHandle<JSTaggedValue> valueHandle(thread, value); in AsyncGeneratorReject()
1150 return JSAsyncGeneratorObject::AsyncGeneratorReject(thread, asyncFuncObjHandle, valueHandle); in AsyncGeneratorReject()
1153 JSTaggedValue SlowRuntimeStub::LdPatchVar(JSThread *thread, uint32_t index) in LdPatchVar() argument
1155 INTERPRETER_TRACE(thread, LdPatchVar); in LdPatchVar()
1156 [[maybe_unused]] EcmaHandleScope handleScope(thread); in LdPatchVar()
1158 return RuntimeStubs::RuntimeLdPatchVar(thread, index); in LdPatchVar()
1161 JSTaggedValue SlowRuntimeStub::StPatchVar(JSThread *thread, uint32_t index, JSTaggedValue value) in StPatchVar() argument
1163 INTERPRETER_TRACE(thread, StPatchVar); in StPatchVar()
1164 [[maybe_unused]] EcmaHandleScope handleScope(thread); in StPatchVar()
1166 JSHandle<JSTaggedValue> valueHandle(thread, value); in StPatchVar()
1167 return RuntimeStubs::RuntimeStPatchVar(thread, index, valueHandle); in StPatchVar()
1170 JSTaggedValue SlowRuntimeStub::NotifyConcurrentResult(JSThread *thread, JSTaggedValue result, JSTag… in NotifyConcurrentResult() argument
1172 INTERPRETER_TRACE(thread, NotifyConcurrentResult); in NotifyConcurrentResult()
1173 return RuntimeStubs::RuntimeNotifyConcurrentResult(thread, result, hint); in NotifyConcurrentResult()