Home
last modified time | relevance | path

Searched refs:condition (Results 1 – 25 of 51) sorted by relevance

123

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DparserModule1.ts53 export function assert(condition: boolean, s: string) {
57 if (!condition) {
58 AssertType(!condition, "boolean");
59 AssertType(condition, "boolean");
/arkcompiler/ets_frontend/ts2panda/src/function/
DgeneratorFunctionBuilder.ts115 pandaGen.condition(expr, ts.SyntaxKind.EqualsEqualsToken, modeType, callreturnLabel);
124 pandaGen.condition(expr, ts.SyntaxKind.EqualsEqualsToken, modeType, callthrowLabel);
130 …pandaGen.condition(expr, ts.SyntaxKind.ExclamationEqualsEqualsToken, getVregisterCache(pandaGen, C…
154 …pandaGen.condition(expr, ts.SyntaxKind.ExclamationEqualsEqualsToken, getVregisterCache(pandaGen, C…
166 …pandaGen.condition(expr, ts.SyntaxKind.ExclamationEqualsEqualsToken, getVregisterCache(pandaGen, C…
204 pandaGen.condition(expr, ts.SyntaxKind.EqualsEqualsToken, modeType, outputLabel);
233 pandaGen.condition(node, ts.SyntaxKind.EqualsEqualsToken, modeType, notRetLabel);
252 pandaGen.condition(node, ts.SyntaxKind.EqualsEqualsToken, modeType, notThrowLabel);
DasyncGeneratorFunctionBuilder.ts159 pg.condition(node, ts.SyntaxKind.EqualsEqualsEqualsToken, this.resumeType, throwCompletion);
166 … pg.condition(node, ts.SyntaxKind.EqualsEqualsEqualsToken, this.resumeType, returnCompletion);
231 pg.condition(node, ts.SyntaxKind.EqualsEqualsToken, this.resumeType, loopStart);
240 pg.condition(node, ts.SyntaxKind.EqualsEqualsToken, this.resumeType, returnCompletion);
275 pg.condition(node, ts.SyntaxKind.EqualsEqualsEqualsToken, this.resumeType, notRet);
285 … pg.condition(node, ts.SyntaxKind.EqualsEqualsEqualsToken, this.resumeType, normalCompletion);
305 pg.condition(node, ts.SyntaxKind.EqualsEqualsEqualsToken, this.resumeType, notThrow);
324 pandaGen.condition(node, ts.SyntaxKind.EqualsEqualsToken, this.resumeType, notThrowLabel);
DasyncFunctionBuilder.ts87 pandaGen.condition(node, ts.SyntaxKind.EqualsEqualsToken, modeType, notThrowLabel);
/arkcompiler/ets_runtime/ecmascript/compiler/
Dnumber_speculative_lowering.cpp426 GateRef condition = acc_.GetValueIn(gate, 0); in VisitBooleanJump() local
428 condition = builder_.BoolNot(condition); in VisitBooleanJump()
430 GateRef ifBranch = builder_.Branch(acc_.GetState(gate), condition); in VisitBooleanJump()
627 GateRef condition = Circuit::NullGate(); in CompareInts() local
630 condition = builder_.Int32LessThan(left, right); in CompareInts()
633 condition = builder_.Int32LessThanOrEqual(left, right); in CompareInts()
636 condition = builder_.Int32GreaterThan(left, right); in CompareInts()
639 condition = builder_.Int32GreaterThanOrEqual(left, right); in CompareInts()
643 condition = builder_.Int32Equal(left, right); in CompareInts()
646 condition = builder_.Int32NotEqual(left, right); in CompareInts()
[all …]
Drange_analysis.cpp229 auto condition = acc_.GetValueIn(jmp); in TryGetRangeOfBranch() local
231 if (acc_.GetOpCode(condition) != OpCode::TYPED_BINARY_OP) { in TryGetRangeOfBranch()
234 if ((acc_.GetValueIn(condition, 0) != value) && (acc_.GetValueIn(condition, 1) != value)) { in TryGetRangeOfBranch()
243 return range.intersection(GetRangeOfCompare(condition, value, flag)); in TryGetRangeOfBranch()
Dstub_builder.h30 #define SUBENTRY(messageId, condition) \ argument
36 Assert(messageId, __LINE__, glueArg, condition, &nextLabel); \
38 #define SUBENTRY_WITH_GLUE(messageId, condition, glueArg) \ argument
43 Assert(messageId, __LINE__, glueArg, condition, &nextLabel); \
47 #define ASM_ASSERT(messageId, condition) \ argument
48 SUBENTRY(messageId, condition)
49 #define ASM_ASSERT_WITH_GLUE(messageId, condition, glue) \ argument
50 SUBENTRY_WITH_GLUE(messageId, condition, glue)
52 #define ASM_ASSERT(messageId, condition) \ argument
53 SUBENTRY(messageId, condition)
[all …]
Dasync_function_lowering.cpp85 GateRef condition = builder_.Equal(offsetConstantGate, restoreOffsetGate); in RebuildGeneratorCfg() local
86 … GateRef ifBranch = circuit_->NewGate(circuit_->IfBranch(), { ifFalseCondition, condition }); in RebuildGeneratorCfg()
126 GateRef condition = builder_.Equal(offsetConstantGate, bcOffsetPhiGate); in RebuildGeneratorCfg() local
127 … GateRef ifBranch = circuit_->NewGate(circuit_->IfBranch(), {stateInGate, condition}); in RebuildGeneratorCfg()
Dlcr_lowering.cpp653 …GateRef condition = builder_.BoolNot(builder_.ExtractValue(MachineType::I1, result, builder_.Int32… in LowerOverflowCheck() local
654 builder_.DeoptCheck(condition, frameState, DeoptType::NOTINT); in LowerOverflowCheck()
664 GateRef condition = builder_.Int32UnsignedLessThanOrEqual(value, upperBound); in LowerInt32UnsignedUpperBoundCheck() local
665 builder_.DeoptCheck(condition, frameState, DeoptType::NOTINT); in LowerInt32UnsignedUpperBoundCheck()
679 …GateRef condition = builder_.BoolOr(rightGreaterZero, builder_.BoolAnd(rightLessZero, leftNotZero)… in LowerInt32DivWithCheck() local
680 builder_.DeoptCheck(condition, frameState, DeoptType::DIVZERO); in LowerInt32DivWithCheck()
Dbuiltins_lowering.cpp69 GateRef condition = builder_.DoubleIsNAN(value); in TypedTrigonometric() local
70 builder_.Branch(condition, &IsNan, &NotNan); in TypedTrigonometric()
Dtyped_array_stub_builder.cpp284 auto condition = Int32UnsignedGreaterThan(re, Int32(INT32_MAX)); in GetValueFromBuffer() local
285 Branch(condition, &overflow, &notOverflow); in GetValueFromBuffer()
/arkcompiler/ets_frontend/ts2panda/src/statement/
DloopStatement.ts147 if (stmt.condition) {
148 compiler.compileCondition(stmt.condition, loopEndLabel);
219 if (stmt.condition) {
220 compiler.compileCondition(stmt.condition, loopEndLabel);
290 …pandaGen.condition(stmt, ts.SyntaxKind.ExclamationEqualsEqualsToken, getVregisterCache(pandaGen, C…
DreturnStatement.ts64 …pandaGen.condition(stmt, ts.SyntaxKind.ExclamationEqualsEqualsToken, getVregisterCache(pandaGen, C…
92 …pandaGen.condition(stmt, ts.SyntaxKind.ExclamationEqualsEqualsToken, getVregisterCache(pandaGen, C…
DtryStatement.ts322 pandaGen.condition(
330 …pandaGen.condition(this.stmt, ts.SyntaxKind.ExclamationEqualsEqualsToken, getVregisterCache(pandaG…
349 …this.pandaGen.condition(this.stmt, ts.SyntaxKind.ExclamationEqualsEqualsToken, getVregisterCache(t…
DswitchStatement.ts71 …pandaGen.condition(caseTarget, ts.SyntaxKind.ExclamationEqualsEqualsToken, tag, this.caseLabels[in…
/arkcompiler/ets_frontend/ts2panda/src/
DcompilerUtils.ts134 pandaGen.condition(
145 pandaGen.condition(
173 pandaGen.condition(
223 pandaGen.condition(
266 …pandaGen.condition(obj, ts.SyntaxKind.ExclamationEqualsEqualsToken, getVregisterCache(pandaGen, Ca…
268 …pandaGen.condition(obj, ts.SyntaxKind.ExclamationEqualsEqualsToken, getVregisterCache(pandaGen, Ca…
367 pandaGen.condition(
Dcompiler.ts314 pandaGen.condition(
764 pandaGen.condition(binExpr, binExpr.operatorToken.kind, lhs, ifFalseLabel);
1204 …pandaGen.condition(expr, ts.SyntaxKind.ExclamationEqualsEqualsToken, getVregisterCache(pandaGen, C…
1207 …pandaGen.condition(expr, ts.SyntaxKind.ExclamationEqualsEqualsToken, getVregisterCache(pandaGen, C…
1252 this.compileCondition(expr.condition, falseLabel);
/arkcompiler/runtime_core/tests/checked/
DREADME.md37 * **TRUE** (condition) ensure the condition is correct
38 * **SKIP_IF** (condition) if condition is `true`, skip all commands from that to end of this checker
Dchecker.rb297 def TRUE(condition) argument
300 raise_error "Not true condition: \"#{condition}\"" unless condition
306 def SKIP_IF(condition) argument
308 raise SkipException if condition
/arkcompiler/runtime_core/compiler/docs/
Ddeoptimize_elimination_doc.md45 5. Some condition
62 5. Some condition
/arkcompiler/runtime_core/bytecode_optimizer/
Dbytecode_optimizer_isapi.rb168 def case_switch(types, condition, inner_cases) argument
169 prefixed_case("compiler::DataType::", types, switch(condition, inner_cases))
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_stubs.h147 GateRef condition = BoolAnd(TaggedIsNumber(year), TaggedIsNumber(month)); in IsNumberYearMonthDay() local
148 return BoolAnd(condition, TaggedIsNumber(day)); in IsNumberYearMonthDay()
/arkcompiler/toolchain/tooling/agent/
Ddebugger_impl.cpp779 auto condition = params.HasCondition() ? params.GetCondition() : std::optional<std::string> {}; in SetBreakpointByUrl()
799 auto callbackFunc = [this, &condition](const JSPtLocation &location) -> bool { in SetBreakpointByUrl()
802 if (condition.has_value() && !condition.value().empty()) { in SetBreakpointByUrl()
804 if (!DecodeAndCheckBase64(condition.value(), dest)) { in SetBreakpointByUrl()
862 …auto condition = breakpoint.HasCondition() ? breakpoint.GetCondition() : std::optional<std::string… in ProcessSingleBreakpoint()
884 if (condition.has_value() && !condition.value().empty()) { in ProcessSingleBreakpoint()
886 if (!DecodeAndCheckBase64(condition.value(), dest)) { in ProcessSingleBreakpoint()
/arkcompiler/ets_frontend/ts2panda/src/base/
Diterator.ts150 pg.condition(this.node, ts.SyntaxKind.ExclamationEqualsToken, exception, skipThrow);
/arkcompiler/ets_frontend/test/scripts/auto_xts_test/
Dreadme.md11 Double click the run.bat or in the cmd condition input the path of run.bat

123