Home
last modified time | relevance | path

Searched full:case (Results 1 – 25 of 2354) sorted by relevance

12345678910>>...95

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dbig_switch.ets19 case 0:
21 case 1:
24 case 2:
30 case 1:
32 case 2:
34 case 3:
36 case 4:
38 case 5:
40 case 6:
42 case 7:
[all …]
DSmartCast_06.ets21 case 0:
22 rc = "case 0";
23 case 1: {
24 let rc1: string|undefined = ():string => {return "case 1";}();
26 case "default":
35 case 2:
37 let rc2: string|null = ():string => {return "case 2";}();
39 case 3:
40 rc = "case 3";
42 case 4:
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dassembler_module.cpp85 case JSCallMode::CALL_ARG0: in GetArgcFromJSCallMode()
86 case JSCallMode::CALL_THIS_ARG0: in GetArgcFromJSCallMode()
87 case JSCallMode::DEPRECATED_CALL_ARG0: in GetArgcFromJSCallMode()
89 case JSCallMode::CALL_ARG1: in GetArgcFromJSCallMode()
90 case JSCallMode::CALL_THIS_ARG1: in GetArgcFromJSCallMode()
91 case JSCallMode::DEPRECATED_CALL_ARG1: in GetArgcFromJSCallMode()
93 case JSCallMode::CALL_ARG2: in GetArgcFromJSCallMode()
94 case JSCallMode::CALL_THIS_ARG2: in GetArgcFromJSCallMode()
95 case JSCallMode::DEPRECATED_CALL_ARG2: in GetArgcFromJSCallMode()
96 case JSCallMode::CALL_THIS_ARG2_WITH_RETURN: in GetArgcFromJSCallMode()
[all …]
Dbytecodes.cpp72 case EcmaOpcode::GETUNMAPPEDARGS: in InitReadArgcFlag()
73 case EcmaOpcode::COPYRESTARGS_IMM8: in InitReadArgcFlag()
74 case EcmaOpcode::WIDE_COPYRESTARGS_PREF_IMM16: in InitReadArgcFlag()
85 case EcmaOpcode::SUPERCALLTHISRANGE_IMM8_IMM8_V8: in InitReadNewTargetFlag()
86 case EcmaOpcode::WIDE_SUPERCALLTHISRANGE_PREF_IMM16_V8: in InitReadNewTargetFlag()
87 case EcmaOpcode::SUPERCALLARROWRANGE_IMM8_IMM8_V8: in InitReadNewTargetFlag()
88 case EcmaOpcode::WIDE_SUPERCALLARROWRANGE_PREF_IMM16_V8: in InitReadNewTargetFlag()
89 case EcmaOpcode::SUPERCALLSPREAD_IMM8_V8: in InitReadNewTargetFlag()
90 case EcmaOpcode::CALLRUNTIME_SUPERCALLFORWARDALLARGS_PREF_V8: in InitReadNewTargetFlag()
101 case EcmaOpcode::NEWLEXENV_IMM8: in InitReadEnvFlag()
[all …]
Dcall_stub_builder.cpp76 case EcmaOpcode::CALLTHIS0_IMM8_V8: in GetOpInfo()
78 case EcmaOpcode::CALLTHIS1_IMM8_V8_V8: in GetOpInfo()
80 case EcmaOpcode::CALLTHIS2_IMM8_V8_V8_V8: in GetOpInfo()
82 case EcmaOpcode::CALLTHIS3_IMM8_V8_V8_V8_V8: in GetOpInfo()
84 case EcmaOpcode::CALLARG0_IMM8: in GetOpInfo()
86 case EcmaOpcode::CALLARG1_IMM8_V8: in GetOpInfo()
88 case EcmaOpcode::CALLARGS2_IMM8_V8_V8: in GetOpInfo()
90 case EcmaOpcode::CALLARGS3_IMM8_V8_V8_V8: in GetOpInfo()
562 case JSCallMode::CALL_THIS_ARG0: in JSCallNativeInner()
563 case JSCallMode::CALL_THIS_ARG1: in JSCallNativeInner()
[all …]
/arkcompiler/ets_frontend/ets2panda/lsp/src/
Dscript_element_kind.cpp26 case ir::AstNodeType::ETS_NULL_TYPE: in GetTargetTokenKindIfETSType()
27 case ir::AstNodeType::ETS_UNDEFINED_TYPE: in GetTargetTokenKindIfETSType()
28 case ir::AstNodeType::ETS_NEVER_TYPE: in GetTargetTokenKindIfETSType()
29 case ir::AstNodeType::ETS_STRING_LITERAL_TYPE: in GetTargetTokenKindIfETSType()
31 case ir::AstNodeType::ETS_PRIMITIVE_TYPE: in GetTargetTokenKindIfETSType()
32 case ir::AstNodeType::ETS_CLASS_LITERAL: in GetTargetTokenKindIfETSType()
33 case ir::AstNodeType::ETS_KEYOF_TYPE: in GetTargetTokenKindIfETSType()
35 case ir::AstNodeType::ETS_NEW_ARRAY_INSTANCE_EXPRESSION: in GetTargetTokenKindIfETSType()
36 case ir::AstNodeType::ETS_NEW_MULTI_DIM_ARRAY_INSTANCE_EXPRESSION: in GetTargetTokenKindIfETSType()
37 case ir::AstNodeType::ETS_NEW_CLASS_INSTANCE_EXPRESSION: in GetTargetTokenKindIfETSType()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
Daarch64_isa.cpp27 case MOP_xldr: in GetMopPair()
29 case MOP_wldr: in GetMopPair()
31 case MOP_xstr: in GetMopPair()
33 case MOP_wstr: in GetMopPair()
35 case MOP_dldr: in GetMopPair()
37 case MOP_qldr: in GetMopPair()
39 case MOP_sldr: in GetMopPair()
41 case MOP_dstr: in GetMopPair()
43 case MOP_sstr: in GetMopPair()
45 case MOP_qstr: in GetMopPair()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/19.union_types/
Dunited_switch_ext.params.yaml24 case 'number':
26 case 'object':
35 - desc: Boolean union type. If false is passed in, the case is expected to match false.
39 case true:
41 case false:
58 case 'string':
70 case 'red':
72 case 1:
85 case null:
87 case undefined:
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/
Dold_instruction.h256 case Format::ID16: { in Size()
260 case Format::ID32: { in Size()
264 case Format::IMM16: { in Size()
268 case Format::IMM16_V16: { in Size()
272 case Format::IMM32: { in Size()
276 case Format::IMM4_V4_V4_V4: { in Size()
280 case Format::IMM4_V4_V4_V4_V4_V4: { in Size()
284 case Format::IMM64: { in Size()
288 case Format::IMM8: { in Size()
292 case Format::NONE: { in Size()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
Dopcodes.h54 case OP_add: in IsCommutative()
55 case OP_mul: in IsCommutative()
56 case OP_max: in IsCommutative()
57 case OP_min: in IsCommutative()
58 case OP_band: in IsCommutative()
59 case OP_bior: in IsCommutative()
60 case OP_bxor: in IsCommutative()
61 case OP_eq: in IsCommutative()
62 case OP_ne: in IsCommutative()
72 case OP_return: in IsStmtMustRequire()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir/
Ddatatype.h92 case Type::BOOL: in GetCommonType()
93 case Type::UINT8: in GetCommonType()
94 case Type::INT8: in GetCommonType()
95 case Type::UINT16: in GetCommonType()
96 case Type::INT16: in GetCommonType()
97 case Type::UINT32: in GetCommonType()
98 case Type::INT32: in GetCommonType()
99 case Type::UINT64: in GetCommonType()
100 case Type::INT64: in GetCommonType()
110 case Type::BOOL: in IsInt32Bit()
[all …]
/arkcompiler/ets_frontend/es2panda/lexer/token/
Dtoken.cpp93 case TokenType::KEYW_ANY: in IsReservedTypeName()
94 case TokenType::KEYW_UNKNOWN: in IsReservedTypeName()
95 case TokenType::KEYW_NEVER: in IsReservedTypeName()
96 case TokenType::KEYW_NUMBER: in IsReservedTypeName()
97 case TokenType::KEYW_BIGINT: in IsReservedTypeName()
98 case TokenType::KEYW_BOOLEAN: in IsReservedTypeName()
99 case TokenType::KEYW_STRING: in IsReservedTypeName()
100 case TokenType::KEYW_VOID: in IsReservedTypeName()
101 case TokenType::KEYW_OBJECT: in IsReservedTypeName()
111 case TokenType::KEYW_ARGUMENTS: in IsJsStrictReservedWord()
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dswicth_expr.ets18 case true:
21 case false:
29 case { key: "value" }:
39 case [1, 2, 3]:
48 case 'true':
51 case 'false':
58 case 1:
61 case 2:
72 case Test.A:
75 case Test.B:
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Ddatatype.h96 // CC-OFFNXT(G.FUD.06) switch-case, ODR
100 case Type::BOOL: in GetCommonType()
101 case Type::UINT8: in GetCommonType()
102 case Type::INT8: in GetCommonType()
103 case Type::UINT16: in GetCommonType()
104 case Type::INT16: in GetCommonType()
105 case Type::UINT32: in GetCommonType()
106 case Type::INT32: in GetCommonType()
107 case Type::UINT64: in GetCommonType()
108 case Type::INT64: in GetCommonType()
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Dtyped_array_helper-inl.h91 case JSType::JS_INT8_ARRAY:
92 case JSType::JS_SHARED_INT8_ARRAY:
94 case JSType::JS_UINT8_ARRAY:
95 case JSType::JS_SHARED_UINT8_ARRAY:
97 case JSType::JS_UINT8_CLAMPED_ARRAY:
98 case JSType::JS_SHARED_UINT8_CLAMPED_ARRAY:
100 case JSType::JS_INT16_ARRAY:
101 case JSType::JS_SHARED_INT16_ARRAY:
103 case JSType::JS_UINT16_ARRAY:
104 case JSType::JS_SHARED_UINT16_ARRAY:
[all …]
/arkcompiler/runtime_core/static_core/assembler/
Dassembly-literals.h37 case panda_file::LiteralTag::ARRAY_I8: in IsSigned()
38 case panda_file::LiteralTag::ARRAY_I16: in IsSigned()
39 case panda_file::LiteralTag::ARRAY_I32: in IsSigned()
40 case panda_file::LiteralTag::ARRAY_I64: in IsSigned()
41 case panda_file::LiteralTag::INTEGER: in IsSigned()
42 case panda_file::LiteralTag::BIGINT: in IsSigned()
52 case panda_file::LiteralTag::ARRAY_U1: in IsArray()
53 case panda_file::LiteralTag::ARRAY_U8: in IsArray()
54 case panda_file::LiteralTag::ARRAY_I8: in IsArray()
55 case panda_file::LiteralTag::ARRAY_U16: in IsArray()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Denum_conversion.h27 case BuiltinTypeId::UINT8_CLAMPED_ARRAY: in ToGlobalEnvPrototypeField()
29 case BuiltinTypeId::UINT8_ARRAY: in ToGlobalEnvPrototypeField()
31 case BuiltinTypeId::TYPED_ARRAY: in ToGlobalEnvPrototypeField()
33 case BuiltinTypeId::INT8_ARRAY: in ToGlobalEnvPrototypeField()
35 case BuiltinTypeId::UINT16_ARRAY: in ToGlobalEnvPrototypeField()
37 case BuiltinTypeId::UINT32_ARRAY: in ToGlobalEnvPrototypeField()
39 case BuiltinTypeId::INT16_ARRAY: in ToGlobalEnvPrototypeField()
41 case BuiltinTypeId::INT32_ARRAY: in ToGlobalEnvPrototypeField()
43 case BuiltinTypeId::FLOAT32_ARRAY: in ToGlobalEnvPrototypeField()
45 case BuiltinTypeId::FLOAT64_ARRAY: in ToGlobalEnvPrototypeField()
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h167 case JSType::JS_OBJECT: in VisitObjectBody()
168 case JSType::JS_XREF_OBJECT: in VisitObjectBody()
169 case JSType::JS_ERROR: in VisitObjectBody()
170 case JSType::JS_EVAL_ERROR: in VisitObjectBody()
171 case JSType::JS_RANGE_ERROR: in VisitObjectBody()
172 case JSType::JS_REFERENCE_ERROR: in VisitObjectBody()
173 case JSType::JS_TYPE_ERROR: in VisitObjectBody()
174 case JSType::JS_AGGREGATE_ERROR: in VisitObjectBody()
175 case JSType::JS_URI_ERROR: in VisitObjectBody()
176 case JSType::JS_SYNTAX_ERROR: in VisitObjectBody()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/
Dintrinsics_ir_build_static_call_ets.inl16 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_CORE_RUNTIME_IS_SAME_REFERENCE: {
20 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_DOUBLE_IS_NAN:
21 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_FLOAT_IS_NAN: {
26 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_DOUBLE_IS_FINITE:
27 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_FLOAT_IS_FINITE: {
40 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_MATH_ABS: {
45 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_MATH_SQRT: {
50 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_MATH_SIGNBIT: {
55 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_MATH_MAX_I32:
56 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_MATH_MAX_I64:
[all …]
Dintrinsics_ir_build_virtual_call_ets.inl16 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_CORE_STRING_GET:
17 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_CORE_STRING_CHAR_AT: {
23 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_CORE_STRING_GET_LENGTH: {
27 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_CORE_STRING_LENGTH: {
36 case RuntimeInterface::IntrinsicId::INTRINSIC_STD_CORE_STRING_IS_EMPTY: {
40 case RuntimeInterface::IntrinsicId::INTRINSIC_INT8_ARRAY_SET_INT:
41 case RuntimeInterface::IntrinsicId::INTRINSIC_INT8_ARRAY_SET_BYTE: {
45 case RuntimeInterface::IntrinsicId::INTRINSIC_INT8_ARRAY_GET: {
49 case RuntimeInterface::IntrinsicId::INTRINSIC_INT8_ARRAY_GET_UNSAFE: {
53 case RuntimeInterface::IntrinsicId::INTRINSIC_INT16_ARRAY_SET_INT:
[all …]
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/Array/LastIndexOf/
DbuiltinArrayLastIndexOf.ts81 print('---- Case group #1: int[] ----') //: ---- Case group #1: int[] ----
83 print('case 1.1: ', literalIntArrayWithHole.lastIndexOf(4)) //: case 1.1: 4
87 'case 1.2: ',
89 ) //: case 1.2: 4
93 'case 1.3: ',
95 ) //: case 1.3: 2
97 print('case 1.4: ', nIntArray.lastIndexOf(4)) //: case 1.4: 4
99 print('case 1.5: ', literalIntArrayWithHole.lastIndexOf(undefined)) //: case 1.5: -1
101 print('case 1.6: ', nIntArray.lastIndexOf(nIntArray.length)) //: case 1.6: -1
104 print('---- Case group #2: double[] ----') //: ---- Case group #2: double[] ----
[all …]
/arkcompiler/runtime_core/static_core/runtime/core/
Dcore_class_linker_extension.cpp33 case ClassLinker::Error::CLASS_NOT_FOUND: { in OnError()
38 case ClassLinker::Error::FIELD_NOT_FOUND: { in OnError()
42 case ClassLinker::Error::METHOD_NOT_FOUND: { in OnError()
46 case ClassLinker::Error::NO_CLASS_DEF: { in OnError()
50 case ClassLinker::Error::CLASS_CIRCULARITY: { in OnError()
159 case ClassRoot::U1: in GetClassVTableSize()
160 case ClassRoot::I8: in GetClassVTableSize()
161 case ClassRoot::U8: in GetClassVTableSize()
162 case ClassRoot::I16: in GetClassVTableSize()
163 case ClassRoot::U16: in GetClassVTableSize()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
Dx64_call_conv.cpp30 case PTY_void: in Classification()
31 case PTY_u1: in Classification()
32 case PTY_u8: in Classification()
33 case PTY_i8: in Classification()
34 case PTY_u16: in Classification()
35 case PTY_i16: in Classification()
36 case PTY_u32: in Classification()
37 case PTY_i32: in Classification()
38 case PTY_a64: in Classification()
39 case PTY_ptr: in Classification()
[all …]
/arkcompiler/ets_frontend/es2panda/lexer/
Dlexer.cpp150 case util::StringView::Iterator::INVALID_CP: { in SkipMultiLineComment()
154 case LEX_CHAR_CR: { in SkipMultiLineComment()
161 case LEX_CHAR_LF: in SkipMultiLineComment()
162 case LEX_CHAR_LS: in SkipMultiLineComment()
163 case LEX_CHAR_PS: { in SkipMultiLineComment()
167 case LEX_CHAR_ASTERISK: { in SkipMultiLineComment()
194 case util::StringView::Iterator::INVALID_CP: { in SkipSingleLineComment()
202 case LEX_CHAR_CR: { in SkipSingleLineComment()
209 case LEX_CHAR_LF: in SkipSingleLineComment()
210 case LEX_CHAR_LS: in SkipSingleLineComment()
[all …]
/arkcompiler/runtime_core/assembler/
Dassembly-literals.h37 case panda_file::LiteralTag::ARRAY_U1: in IsBoolValue()
38 case panda_file::LiteralTag::BOOL: in IsBoolValue()
48 case panda_file::LiteralTag::ARRAY_U8: in IsByteValue()
49 case panda_file::LiteralTag::ARRAY_I8: in IsByteValue()
50 case panda_file::LiteralTag::TAGVALUE: in IsByteValue()
51 case panda_file::LiteralTag::ACCESSOR: in IsByteValue()
52 case panda_file::LiteralTag::NULLVALUE: in IsByteValue()
62 case panda_file::LiteralTag::ARRAY_U16: in IsShortValue()
63 case panda_file::LiteralTag::ARRAY_I16: in IsShortValue()
73 case panda_file::LiteralTag::ARRAY_U32: in IsIntegerValue()
[all …]

12345678910>>...95