| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/05.if_statements/ |
| D | if2.params.yaml | 18 return retcode("T"); 20 return i; 24 return retcode("TTT"); 26 return i; 32 return retcode("F"); 33 return 1; 39 return retcode("F"); 40 return 1; 47 return 0; 52 return j; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/ |
| D | old_instruction.h | 35 return static_cast<Opcode>((secondary << 8U) | primary); in GetOpcode() 37 return static_cast<Opcode>(primary); in GetOpcode() 42 return OldBytecodeInst(OldBytecodeInstBase::GetPointer(offset)); in JumpTo() 47 return JumpTo(GetSize()); in GetNext() 52 return OldBytecodeInstBase::GetAddress(); in GetAddress() 57 return Size(GetFormat(GetOpcode())); in GetSize() 64 return static_cast<uint32_t>(Read<8, 16>()); in GetId() 67 return static_cast<uint32_t>(Read<8, 32>()); in GetId() 70 return static_cast<uint32_t>(Read<16, 16>()); in GetId() 73 return static_cast<uint32_t>(Read<16, 16>()); in GetId() [all …]
|
| /arkcompiler/ets_frontend/es2panda/lexer/token/ |
| D | token.cpp | 24 return (type_ == TokenType::LITERAL_IDENT && in IsAccessability() 32 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_ASYNC && in IsAsyncModifier() 38 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_STATIC && in IsStaticModifier() 44 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_DECLARE && in IsDeclareModifier() 50 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_READONLY && in IsReadonlyModifier() 56 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_ACCESSOR && in IsAccessorModifier() 62 return (type_ == TokenType::PUNCTUATOR_MINUS_MINUS || type_ == TokenType::PUNCTUATOR_PLUS_PLUS); in IsUpdate() 67 return (type_ == TokenType::PUNCTUATOR_MINUS || type_ == TokenType::PUNCTUATOR_PLUS || in IsUnary() 76 return (type_ == TokenType::LITERAL_STRING || type_ == TokenType::LITERAL_NUMBER || in IsPropNameLiteral() 82 …return (type_ == TokenType::LITERAL_NULL || type_ == TokenType::LITERAL_TRUE || type_ == TokenType… in IsBooleanOrNullLiteral() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/03.operator_precedence/ |
| D | unary.ets | 25 i = + t2 * t4; if (i != 8) return 1; 26 i = + + t2 * t4; if (i != 8) return 1; 27 i = - t2 * t4; if (i != -8) return 1; 28 i = - - t2 * t4; if (i != 8) return 1; 29 i = ~ t2 * t4; if (i != -12) return 1; 30 i = ~ ~ t2 * t4; if (i != 8) return 1; 31 i = + - t2 * t4; if (i != -8) return 1; 32 i = + ~ t2 * t4; if (i != -12) return 1; 33 i = - + t2 * t4; if (i != -8) return 1; 34 i = - ~ t2 * t4; if (i != 12) return 1; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | enum_conversion.h | 28 return GlobalEnvField::UINT8_CLAMPED_ARRAY_FUNCTION_PROTO_INDEX; in ToGlobalEnvPrototypeField() 30 return GlobalEnvField::UINT8_ARRAY_FUNCTION_PROTOTYPE_INDEX; in ToGlobalEnvPrototypeField() 32 return GlobalEnvField::TYPED_ARRAY_PROTOTYPE_INDEX; in ToGlobalEnvPrototypeField() 34 return GlobalEnvField::INT8_ARRAY_FUNCTION_PROTOTYPE_INDEX; in ToGlobalEnvPrototypeField() 36 return GlobalEnvField::UINT16_ARRAY_FUNCTION_PROTOTYPE_INDEX; in ToGlobalEnvPrototypeField() 38 return GlobalEnvField::UINT32_ARRAY_FUNCTION_PROTOTYPE_INDEX; in ToGlobalEnvPrototypeField() 40 return GlobalEnvField::INT16_ARRAY_FUNCTION_PROTOTYPE_INDEX; in ToGlobalEnvPrototypeField() 42 return GlobalEnvField::INT32_ARRAY_FUNCTION_PROTOTYPE_INDEX; in ToGlobalEnvPrototypeField() 44 return GlobalEnvField::FLOAT32_ARRAY_FUNCTION_PROTOTYPE_INDEX; in ToGlobalEnvPrototypeField() 46 return GlobalEnvField::FLOAT64_ARRAY_FUNCTION_PROTOTYPE_INDEX; in ToGlobalEnvPrototypeField() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_as_parameter/ts_to_sts/ |
| D | generic_as_parameter.js | 25 return arg; 28 return anyTypeParameter(tsNumber); 31 return anyTypeParameter(tsString); 34 return anyTypeParameter(tsBool); 37 return anyTypeParameter(tsArr); 40 return anyTypeParameter(tsObj); 43 return anyTypeParameter(tsUnion); 46 return anyTypeParameter(tsTuple); 49 return anyTypeParameter(tsLiteral); 52 return arg; [all …]
|
| /arkcompiler/runtime_core/tests/cts-assembly/ |
| D | tst-select.pa | 22 return 25 return 33 return 36 return 44 return 47 return 55 return 58 return 66 return 69 return [all …]
|
| D | tst-compare.pa | 22 return 25 return 33 return 36 return 44 return 47 return 55 return 58 return 66 return 69 return [all …]
|
| D | tst-branch.pa | 20 return 25 return 33 return 36 return 44 return 47 return 55 return 58 return 66 return 69 return [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-assembly/ |
| D | tst-compare.pa | 22 return 25 return 33 return 36 return 44 return 47 return 55 return 58 return 66 return 69 return [all …]
|
| D | tst-select.pa | 22 return 25 return 33 return 36 return 44 return 47 return 55 return 58 return 66 return 69 return [all …]
|
| D | tst-branch.pa | 20 return 25 return 33 return 36 return 44 return 47 return 55 return 58 return 66 return 69 return [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/06.callable_types/01.callable_types_with_invoke_method/ |
| D | ct_invoke.params.yaml | 18 static $_invoke(): number { return 42.0 } 22 if (x != 42.0) return 1 27 static $_invoke(): number { return 42.0 } 30 if (C.$_invoke() != 42.0) return 1 36 static $_invoke(): number { return 42.0 } 40 if (x != 42.0) return 1 46 static $_invoke(): number { return 42.0 } 50 if (x != 42.0) return 1 53 // void return, implicit type 61 if (C.res != 1) return 1 [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/constructor_as_arg/error/ |
| D | error.ets | 34 return false; 36 return true; 44 return false; 46 return true; 54 return false; 56 return true; 64 return false; 66 return true; 74 return false; 76 return true; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | typed_array_helper-inl.h | 45 return JSHandle<JSHClass>(env->Get##Type##RootHclassOnHeap()); \ 49 return result; \ 62 … return JSHandle<JSHClass>(env->Get##Type##RootHclass()); \ 66 …return result; … 85 return GetType(type); 93 return DataViewType::INT8; 96 return DataViewType::UINT8; 99 return DataViewType::UINT8_CLAMPED; 102 return DataViewType::INT16; 105 return DataViewType::UINT16; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/ |
| D | aarch64_isa.cpp | 28 return MOP_xldp; in GetMopPair() 30 return MOP_wldp; in GetMopPair() 32 return MOP_xstp; in GetMopPair() 34 return MOP_wstp; in GetMopPair() 36 return MOP_dldp; in GetMopPair() 38 return MOP_qldp; in GetMopPair() 40 return MOP_sldp; in GetMopPair() 42 return MOP_dstp; in GetMopPair() 44 return MOP_sstp; in GetMopPair() 46 return MOP_qstp; in GetMopPair() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/class_ops/ |
| D | class_find_method_test.ets | 20 return [a, b] 29 return a0 + a1; 34 return a0 * a0; 39 return 1 44 return 1 49 return 1 54 return 1 63 return a1 * a1; 68 return 1 73 return 1 [all …]
|
| /arkcompiler/toolchain/tooling/dynamic/base/ |
| D | pt_events.h | 49 return "Debugger.breakpointResolved"; in GetName() 54 return breakpointId_; in GetBreakpointId() 60 return *this; in SetBreakpointId() 65 return location_.get(); in GetLocation() 71 return *this; in SetLocation() 92 return "Debugger.paused"; in GetName() 97 return &callFrames_; in GetCallFrames() 102 return &asyncStack_; in GetAsyncStack() 108 return *this; in SetAysncStack() 114 return *this; in SetCallFrames() [all …]
|
| D | pt_json.cpp | 21 return std::make_unique<PtJson>(cJSON_CreateObject()); in CreateObject() 26 return std::make_unique<PtJson>(cJSON_CreateArray()); in CreateArray() 40 return std::make_unique<PtJson>(value); in Parse() 46 return ""; in Stringify() 51 return ""; in Stringify() 56 return result; in Stringify() 62 return false; in Add() 67 return false; in Add() 73 return false; in Add() 76 return true; in Add() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
| D | runtime_interface.h | 105 return nullptr; in GetCha() 110 return nullptr; in GetInlineCaches() 115 return nullptr; in GetUnresolvedTypes() 120 return nullptr; in GetRuntimeEntry() 125 return 0; in GetReturnReasonOk() 129 return 1; in GetReturnReasonDeopt() 135 return 0; in ResolveMethodIndex() 140 return 0; in ResolveFieldIndex() 145 return 0; in ResolveTypeIndex() 150 return 0; in GetStackOverflowCheckOffset() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/08.function_method_and_constructor_overloading/01.function_overloading/ |
| D | fn_overloading.ets | 27 return 1; 30 return 2; 33 return 3; 36 return 4; 39 return 5; 42 return 6; 45 return 7; 48 return 8; 51 return 21; 54 return 22; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/ |
| D | typ.ets | 25 return 1; 28 return 2; 31 return 3; 34 return 4; 37 return 5; 40 return 6; 43 return 7; 46 return 8; 49 return 21; 52 return 22; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | ArrayTest3.ets | 21 failures += check((): int => { return everyFuncArg3ArrayNumber() }, "everyFuncArg3ArrayNumber"); 22 failures += check((): int => { return everyFuncArg2() }, "everyFuncArg2"); 23 failures += check((): int => { return everyFuncArg1() }, "everyFuncArg1"); 24 failures += check((): int => { return someFuncArg2() }, "someFuncArg2"); 25 failures += check((): int => { return someFuncArg1() }, "someFuncArg1"); 26 … failures += check((): int => { return filterFuncArg3ArrayNumber() }, "filterFuncArg3ArrayNumber"); 27 failures += check((): int => { return filterFuncArg2() }, "filterFuncArg2"); 28 failures += check((): int => { return filterFuncArg1() }, "filterFuncArg1"); 29 … failures += check((): int => { return reduceFuncArg4ArrayNumber() }, "reduceFuncArg4ArrayNumber"); 30 failures += check((): int => { return reduceFuncArg3() }, "reduceFuncArg3"); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/js_to_ets/js_suites/ |
| D | scenarios.js | 25 return 1; 30 return 1; 36 return 1; 42 return implInterfaceWithMethod; 50 return 1; 56 return implInterfaceWithMethod; 65 return this._value; 74 return 1; 78 return arg; 82 return arg.toString(); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/test_incorrect_conversion_types/ts_to_arkts/ |
| D | incorrect_conversion_types.ets | 41 return true; 43 return false; 50 return false; 52 return isTypeError(error as Error); 56 function conversionTsObjToStr(): boolean { return falseIfThrows(() => { testInterface as string } )… 57 function conversionTsArrayNumToStr(): boolean { return falseIfThrows(() => { tsArrayNum as string }… 58 function conversionTsArrayStrToStr(): boolean { return falseIfThrows(() => { tsArrayStr as string }… 59 function conversionTsArrayNumToNum(): boolean { return falseIfThrows(() => { tsArrayNum as number }… 60 function conversionTsStrToBool(): boolean { return falseIfThrows(() => { tsString as boolean } ) } 61 function conversionTsStrToNum(): boolean { return falseIfThrows(() => { tsString as number } ) } [all …]
|