Home
last modified time | relevance | path

Searched refs:left (Results 1 – 25 of 521) sorted by relevance

12345678910>>...21

/arkcompiler/ets_runtime/ecmascript/compiler/
Doperations_stub_builder.h37 …GateRef Equal(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperat…
38 …GateRef NotEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOpe…
39 …GateRef StrictEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = Profile…
40 …GateRef StrictNotEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = Prof…
41 …GateRef Less(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperati…
42 …GateRef LessEq(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOpera…
43 …GateRef Greater(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOper…
44 …GateRef GreaterEq(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOp…
45 …GateRef Add(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperatio…
46 …GateRef Sub(GateRef glue, GateRef left, GateRef right, ProfileOperation callback = ProfileOperatio…
[all …]
Dnumber_speculative_lowering.cpp107 [[maybe_unused]] GateRef left = acc_.GetValueIn(gate, 0); in VisitTypedBinaryOp() local
109 ASSERT(acc_.IsConstantUndefined(left) || acc_.IsConstantUndefined(right)); in VisitTypedBinaryOp()
244 GateRef left = acc_.GetValueIn(gate, 0); in VisitNumberCalculate() local
257 result = CalculateInts<Op>(left, right); // int op int in VisitNumberCalculate()
261 result = CalculateDoubles<Op>(left, right); // float op float in VisitNumberCalculate()
271 GateRef left = acc_.GetValueIn(gate, 0); in VisitNumberCompare() local
287 result = CompareInts<Op>(left, right); // int op int in VisitNumberCompare()
289 result = CompareDoubles<Op>(left, right); // float op float in VisitNumberCompare()
299 GateRef left = acc_.GetValueIn(gate, 0); in VisitNumberShift() local
301 GateRef result = ShiftInts<Op>(left, right); // int op int in VisitNumberShift()
[all …]
Doperations_stub_builder.cpp22 GateRef OperationsStubBuilder::Equal(GateRef glue, GateRef left, GateRef right, ProfileOperation ca… in Equal() argument
30 result = FastEqual(left, right, callback); in Equal()
35 result = CallRuntime(glue, RTSTUB_ID(Eq), { left, right }); in Equal()
44 GateRef OperationsStubBuilder::NotEqual(GateRef glue, GateRef left, GateRef right, ProfileOperation… in NotEqual() argument
52 result = FastEqual(left, right, callback); in NotEqual()
59 result = CallRuntime(glue, RTSTUB_ID(NotEq), { left, right }); in NotEqual()
84 GateRef OperationsStubBuilder::StrictEqual(GateRef glue, GateRef left, GateRef right, ProfileOperat… in StrictEqual() argument
92 Branch(FastStrictEqual(glue, left, right, callback), &exit, &notStrictEqual); in StrictEqual()
104 GateRef OperationsStubBuilder::StrictNotEqual(GateRef glue, GateRef left, GateRef right, ProfileOpe… in StrictNotEqual() argument
112 Branch(FastStrictEqual(glue, left, right, callback), &strictEqual, &exit); in StrictNotEqual()
[all …]
Dnumber_speculative_lowering.h70 GateRef CalculateInts(GateRef left, GateRef right);
72 GateRef CalculateDoubles(GateRef left, GateRef right);
74 GateRef CompareInts(GateRef left, GateRef right);
76 GateRef CompareDoubles(GateRef left, GateRef right);
78 GateRef ShiftInts(GateRef left, GateRef right);
80 GateRef LogicalInts(GateRef left, GateRef right);
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dfast_runtime_stub-inl.h38 JSTaggedValue FastRuntimeStub::FastMul(JSTaggedValue left, JSTaggedValue right) in FastMul() argument
40 if (left.IsNumber() && right.IsNumber()) { in FastMul()
41 return JSTaggedValue(left.GetNumber() * right.GetNumber()); in FastMul()
47 JSTaggedValue FastRuntimeStub::FastDiv(JSTaggedValue left, JSTaggedValue right) in FastDiv() argument
49 if (left.IsNumber() && right.IsNumber()) { in FastDiv()
50 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastDiv()
66 JSTaggedValue FastRuntimeStub::FastMod(JSTaggedValue left, JSTaggedValue right) in FastMod() argument
68 if (right.IsInt() && left.IsInt()) { in FastMod()
70 int iLeft = left.GetInt(); in FastMod()
75 if (left.IsNumber() && right.IsNumber()) { in FastMod()
[all …]
Dfast_runtime_stub.h30 static inline JSTaggedValue FastMul(JSTaggedValue left, JSTaggedValue right);
31 static inline JSTaggedValue FastDiv(JSTaggedValue left, JSTaggedValue right);
32 static inline JSTaggedValue FastMod(JSTaggedValue left, JSTaggedValue right);
33 static inline JSTaggedValue FastEqual(JSTaggedValue left, JSTaggedValue right);
35 static inline JSTaggedValue FastStrictEqual(JSTaggedValue left, JSTaggedValue right);
Dslow_runtime_stub.h40 static JSTaggedValue Add2(JSThread *thread, JSTaggedValue left, JSTaggedValue right);
41 static JSTaggedValue Sub2(JSThread *thread, JSTaggedValue left, JSTaggedValue right);
42 static JSTaggedValue Mul2(JSThread *thread, JSTaggedValue left, JSTaggedValue right);
43 static JSTaggedValue Div2(JSThread *thread, JSTaggedValue left, JSTaggedValue right);
44 static JSTaggedValue Mod2(JSThread *thread, JSTaggedValue left, JSTaggedValue right);
45 static JSTaggedValue Eq(JSThread *thread, JSTaggedValue left, JSTaggedValue right);
46 static JSTaggedValue NotEq(JSThread *thread, JSTaggedValue left, JSTaggedValue right);
47 static JSTaggedValue Less(JSThread *thread, JSTaggedValue left, JSTaggedValue right);
48 static JSTaggedValue LessEq(JSThread *thread, JSTaggedValue left, JSTaggedValue right);
49 static JSTaggedValue Greater(JSThread *thread, JSTaggedValue left, JSTaggedValue right);
[all …]
/arkcompiler/ets_runtime/ecmascript/ic/
Dic_binary_op.h36 static inline JSTaggedValue AddWithTSType(JSThread *thread, JSTaggedValue left, in AddWithTSType() argument
44 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in AddWithTSType()
51 JSHandle<JSTaggedValue> leftValue(thread, left); in AddWithTSType()
68 … JSHandle<EcmaString> stringA0 = JSHandle<EcmaString>(JSHandle<JSTaggedValue>(thread, left)); in AddWithTSType()
76 JSHandle<JSTaggedValue> leftValue(thread, left); in AddWithTSType()
78 if (left.IsString()) { in AddWithTSType()
96 JSTaggedValue res = SlowRuntimeStub::Add2(thread, left, right); in AddWithTSType()
106 static inline JSTaggedValue SubWithTSType(JSThread *thread, JSTaggedValue left, in SubWithTSType() argument
114 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in SubWithTSType()
121 JSHandle<JSTaggedValue> leftValue(thread, left); in SubWithTSType()
[all …]
Dic_compare_op.cpp29 JSTaggedValue CompareOp::EqualWithIC(JSThread* thread, JSTaggedValue left, in EqualWithIC() argument
38 leftDouble = left.GetNumber(); in EqualWithIC()
44 JSTaggedValue temp = left; in EqualWithIC()
45 left = right; in EqualWithIC()
50 JSHandle<JSTaggedValue> leftHandle(thread, left); in EqualWithIC()
59 JSTaggedValue temp = left; in EqualWithIC()
60 left = right; in EqualWithIC()
65 leftDouble = left.GetNumber(); in EqualWithIC()
73 JSTaggedValue temp = left; in EqualWithIC()
74 left = right; in EqualWithIC()
[all …]
Dic_compare_op.h56 static JSTaggedValue EqualWithIC(JSThread* thread, JSTaggedValue left,
59 static JSTaggedValue NotEqualWithIC(JSThread *thread, JSTaggedValue left,
62 static ComparisonResult Compare(JSThread *thread, JSTaggedValue left,
65 static JSTaggedValue LessWithIC(JSThread *thread, JSTaggedValue left,
68 static JSTaggedValue LessEqWithIC(JSThread *thread, JSTaggedValue left,
71 static JSTaggedValue GreaterWithIC(JSThread *thread, JSTaggedValue left,
74 static JSTaggedValue GreaterEqWithIC(JSThread *thread, JSTaggedValue left,
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DnumberOnLeftSideOfInExpression.ts21 let left: number;
22 AssertType(left, "number");
27 left in right;
28 AssertType(left in right, "boolean");
29 AssertType(left, "number");
DgenericTypeAliases.ts21 type Tree<T> = T | { left: Tree<T>, right: Tree<T> };
25 AssertType({ left: { left: 0, right: { left: 1, right: 2 …
27 left: {
28 AssertType(left, "{ left: number; right: { left: number; right: number; }; }");
29 AssertType({ left: 0, right: { left: 1, right: 2 }, }…
31 left: 0,
32 AssertType(left, "number");
37 AssertType({ left: 1, right: 2 }, "{ left: number; right: number; }");
39 left: 1,
40 AssertType(left, "number");
DgenericFunctionsAndConditionalInference.ts60 left: A property
75 const left: Ops<"left"> = {} as any constant
76 AssertType(left, "Ops<"left">");
107 const leftOk = ok(left)
109 AssertType(ok(left), "{ lr: string; }");
111 AssertType(left, "Ops<"left">");
113 const leftOrphaned = orphaned(left)
115 AssertType(orphaned(left), "{ lr: string; }");
117 AssertType(left, "Ops<"left">");
/arkcompiler/ets_frontend/ts2panda/tests/utils/
Dbase.ts67 function isSameOperandType(left: OperandType, right: OperandType): boolean {
68 return (left.constructor === right.constructor);
78 function basicOperandsEqual(left: OperandType, right: OperandType): boolean {
79 if (!isSameOperandType(left, right)) {
83 if (isVReg(left) && isVReg(right)) {
87 if (isImm(left) && isImm(right)) {
88 return left.value === right.value;
91 if (isLabel(left) && isLabel(right)) {
95 if (isId(left) && isId(right)) {
97 return left === right;
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dtest-nullish-coalescing-expected.txt9 "left": {
12 "left": {
92 "left": {
95 "left": {
175 "left": {
192 "left": {
258 "left": {
275 "left": {
341 "left": {
344 "left": {
[all …]
Dtest-logical-expression-expected.txt9 "left": {
64 "left": {
119 "left": {
122 "left": {
202 "left": {
219 "left": {
285 "left": {
288 "left": {
291 "left": {
333 "left": {
[all …]
Dtest-binary-expression-expected.txt9 "left": {
64 "left": {
119 "left": {
174 "left": {
229 "left": {
284 "left": {
339 "left": {
394 "left": {
449 "left": {
504 "left": {
[all …]
Dtest-grouping-level-expected.txt9 "left": {
26 "left": {
43 "left": {
120 "left": {
123 "left": {
126 "left": {
143 "left": {
196 "left": {
287 "left": {
290 "left": {
[all …]
Dtest-assignment-expression-expected.txt9 "left": {
26 "left": {
92 "left": {
147 "left": {
202 "left": {
257 "left": {
312 "left": {
367 "left": {
422 "left": {
477 "left": {
[all …]
Dtest-do-while-expected.txt11 "left": {
64 "left": {
121 "left": {
174 "left": {
234 "left": {
299 "left": {
359 "left": {
424 "left": {
481 "left": {
607 "left": {
Dinvalid-left-hand-side-in-prefix-operation-expected.txt1 SyntaxError: Invalid left-hand side operator. [invalid-left-hand-side-in-prefix-operation.js:17:5]
/arkcompiler/runtime_core/libark_defect_scan_aux/tests/
Dtest_helper.h25 inline static void ExpectEqual(const T1 &left, const T2 &right) in ExpectEqual() argument
27 if (left != static_cast<T1>(right)) { in ExpectEqual()
34 inline static void ExpectNotEqual(const T1 &left, const T2 &right) in ExpectNotEqual() argument
36 if (left == static_cast<T2>(right)) { in ExpectNotEqual()
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsEnumDeclaration.cpp154 binder::EnumMemberResult left = in EvaluateBinaryExpression() local
158 if (std::holds_alternative<double>(left) && std::holds_alternative<double>(right)) { in EvaluateBinaryExpression()
161 … return static_cast<double>(ToUInt(std::get<double>(left)) | ToUInt(std::get<double>(right))); in EvaluateBinaryExpression()
164 … return static_cast<double>(ToUInt(std::get<double>(left)) & ToUInt(std::get<double>(right))); in EvaluateBinaryExpression()
167 … return static_cast<double>(ToUInt(std::get<double>(left)) ^ ToUInt(std::get<double>(right))); in EvaluateBinaryExpression()
170 … return static_cast<double>(ToInt(std::get<double>(left)) << ToUInt(std::get<double>(right))); in EvaluateBinaryExpression()
173 … return static_cast<double>(ToInt(std::get<double>(left)) >> ToUInt(std::get<double>(right))); in EvaluateBinaryExpression()
176 … return static_cast<double>(ToUInt(std::get<double>(left)) >> ToUInt(std::get<double>(right))); in EvaluateBinaryExpression()
179 return std::get<double>(left) + std::get<double>(right); in EvaluateBinaryExpression()
182 return std::get<double>(left) - std::get<double>(right); in EvaluateBinaryExpression()
[all …]
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DassignmentExpression.h35 …explicit AssignmentExpression(Expression *left, Expression *right, lexer::TokenType assignmentOper… in AssignmentExpression() argument
36 : AssignmentExpression(AstNodeType::ASSIGNMENT_EXPRESSION, left, right, assignmentOperator) in AssignmentExpression()
40 explicit AssignmentExpression(AstNodeType type, Expression *left, Expression *right, in AssignmentExpression() argument
42 : Expression(type), left_(left), right_(right), operator_(assignmentOperator) in AssignmentExpression()
/arkcompiler/runtime_core/scripts/
Dmemusage.py175 for left, right in zip(memusage, reports.pop(0)):
176 left.size = left.size + right.size
177 left.rss = left.rss + right.rss
178 left.pss = left.pss + right.pss

12345678910>>...21