Lines Matching defs:thread

36     static inline JSTaggedValue AddWithTSType(JSThread *thread, JSTaggedValue left,
39 INTERPRETER_TRACE(thread, AddWithTSType);
51 JSHandle<JSTaggedValue> leftValue(thread, left);
52 JSHandle<JSTaggedValue> rightValue(thread, right);
53 JSHandle<JSTaggedValue> primitiveA0(thread, JSTaggedValue::ToPrimitive(thread, leftValue));
54 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
55 JSHandle<JSTaggedValue> primitiveA1(thread, JSTaggedValue::ToPrimitive(thread, rightValue));
56 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
58 JSTaggedNumber taggedValueA0 = JSTaggedValue::ToNumber(thread, primitiveA0);
59 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
60 JSTaggedNumber taggedValueA1 = JSTaggedValue::ToNumber(thread, primitiveA1);
61 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
68 JSHandle<EcmaString> stringA0 = JSHandle<EcmaString>(JSHandle<JSTaggedValue>(thread, left));
69 JSHandle<EcmaString> stringA1 = JSHandle<EcmaString>(JSHandle<JSTaggedValue>(thread, right));
70 EcmaString *ret = EcmaStringAccessor::Concat(thread->GetEcmaVM(), stringA0, stringA1);
71 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
76 JSHandle<JSTaggedValue> leftValue(thread, left);
77 JSHandle<JSTaggedValue> rightValue(thread, right);
80 JSHandle<EcmaString> stringA1 = JSTaggedValue::ToString(thread, rightValue);
81 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
82 EcmaString *ret = EcmaStringAccessor::Concat(thread->GetEcmaVM(), stringA0, stringA1);
83 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
86 JSHandle<EcmaString> stringA0 = JSTaggedValue::ToString(thread, leftValue);
87 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
89 EcmaString *ret = EcmaStringAccessor::Concat(thread->GetEcmaVM(), stringA0, stringA1);
90 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
96 JSTaggedValue res = SlowRuntimeStub::Add2(thread, left, right);
106 static inline JSTaggedValue SubWithTSType(JSThread *thread, JSTaggedValue left,
109 INTERPRETER_TRACE(thread, SubWithTSType);
121 JSHandle<JSTaggedValue> leftValue(thread, left);
122 JSHandle<JSTaggedValue> rightValue(thread, right);
123 JSTaggedNumber number0 = JSTaggedValue::ToNumber(thread, leftValue);
124 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
125 JSTaggedNumber number1 = JSTaggedValue::ToNumber(thread, rightValue);
126 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
139 static inline JSTaggedValue MulWithTSType(JSThread *thread, JSTaggedValue left,
142 INTERPRETER_TRACE(thread, MulWithTSType);
151 JSHandle<JSTaggedValue> leftValue(thread, left);
152 JSHandle<JSTaggedValue> rightValue(thread, right);
154 JSTaggedNumber primitiveA = JSTaggedValue::ToNumber(thread, leftValue);
156 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
158 JSTaggedNumber primitiveB = JSTaggedValue::ToNumber(thread, rightValue);
160 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
174 static inline JSTaggedValue DivWithTSType(JSThread *thread, JSTaggedValue left,
177 INTERPRETER_TRACE(thread, DivWithTSType);
197 auto res = SlowRuntimeStub::Div2(thread, left, right);
210 static inline JSTaggedValue ModWithTSType(JSThread *thread, JSTaggedValue left,
213 INTERPRETER_TRACE(thread, ModWithTSType);
230 JSHandle<JSTaggedValue> leftValue(thread, left);
231 JSHandle<JSTaggedValue> rightValue(thread, right);
232 JSTaggedNumber leftNumber = JSTaggedValue::ToNumber(thread, leftValue);
233 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
235 JSTaggedNumber rightNumber = JSTaggedValue::ToNumber(thread, rightValue);
236 RETURN_EXCEPTION_IF_ABRUPT_COMPLETION(thread);
257 static inline void GetBitOPDate(JSThread *thread, JSTaggedValue left, JSTaggedValue right,
260 INTERPRETER_TRACE(thread, GetBitOPDate);
273 JSHandle<JSTaggedValue> leftValue(thread, left);
274 JSHandle<JSTaggedValue> rightValue(thread, right);
275 JSTaggedValue taggedNumber0 = SlowRuntimeStub::ToJSTaggedValueWithInt32(thread,
277 JSTaggedValue taggedNumber1 = SlowRuntimeStub::ToJSTaggedValueWithUint32(thread,
294 static inline JSTaggedValue ShlWithTSType(JSThread *thread, JSTaggedValue left,
297 INTERPRETER_TRACE(thread, ShlWithTSType);
301 GetBitOPDate(thread, left, right, opNumber0, opNumber1, shlType);
310 static inline JSTaggedValue ShrWithTSType(JSThread *thread, JSTaggedValue left,
313 INTERPRETER_TRACE(thread, ShrWithTSType);
317 GetBitOPDate(thread, left, right, opNumber0, opNumber1, shrType);
324 static inline JSTaggedValue AshrWithTSType(JSThread *thread, JSTaggedValue left,
327 INTERPRETER_TRACE(thread, AshrWithTSType);
331 GetBitOPDate(thread, left, right, opNumber0, opNumber1, ashrType);
340 static inline JSTaggedValue AndWithTSType(JSThread *thread, JSTaggedValue left,
343 INTERPRETER_TRACE(thread, AndWithTSType);
347 GetBitOPDate(thread, left, right, opNumber0, opNumber1, andType);
353 static inline JSTaggedValue OrWithTSType(JSThread *thread, JSTaggedValue left,
356 INTERPRETER_TRACE(thread, OrWithTSType);
360 GetBitOPDate(thread, left, right, opNumber0, opNumber1, orType);
366 static inline JSTaggedValue XorWithTSType(JSThread *thread, JSTaggedValue left,
369 INTERPRETER_TRACE(thread, XorWithTSType);
373 GetBitOPDate(thread, left, right, opNumber0, opNumber1, xorType);