Home
last modified time | relevance | path

Searched full:switch (Results 1 – 25 of 1121) sorted by relevance

12345678910>>...45

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_warnings_tests/boost_equal_statements_tests/
Dboost_equal_statements_2.sts18 let flag: boolean = x == null; // Suggest switch sides
20 if (x == null) { // Suggest switch sides
25 let flag: boolean = x == null; // Suggest switch sides
27 if (x == null) { // Suggest switch sides
33 flag: boolean = null == null; // Not (!!!) suggest switch sides, both are 'null'
35 if (x == null) { // Suggest switch sides
/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dtest-switch.js17 switch (key) {
25 switch (test) {}
27 switch (t) {
31 switch
/arkcompiler/ets_frontend/ets2panda/test/parser/js/
Dtest-switch.js17 switch (key) {
25 switch (test) {}
27 switch (t) {
31 switch
/arkcompiler/runtime_core/static_core/assembler/
Dassembly-literals.h36 switch (tag) { in IsSigned()
51 switch (tag) { in IsArray()
72 switch (tag) { in IsBoolValue()
83 switch (tag) { in IsByteValue()
97 switch (tag) { in IsShortValue()
108 switch (tag) { in IsIntegerValue()
120 switch (tag) { in IsLongValue()
132 switch (tag) { in IsFloatValue()
143 switch (tag) { in IsDoubleValue()
154 switch (tag) { in IsStringValue()
[all …]
/arkcompiler/runtime_core/assembler/
Dassembly-literals.h36 switch (tag_) { in IsBoolValue()
47 switch (tag_) { in IsByteValue()
61 switch (tag_) { in IsShortValue()
72 switch (tag_) { in IsIntegerValue()
84 switch (tag_) { in IsLongValue()
95 switch (tag_) { in IsFloatValue()
106 switch (tag_) { in IsDoubleValue()
117 switch (tag_) { in IsStringValue()
142 switch (type) { in GetArrayTagFromComponentType()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Ddebug_info_util.cpp27 switch (n) { in GetDwTagName()
46 switch (n) { in GetDwFormName()
61 switch (n) { in GetDwAtName()
76 switch (n) { in GetDwOpName()
92 switch (n) { in GetDwAteName()
110 switch (pty) { in GetAteFromPTY()
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
Dbytecode_optimizer_isapi.rb55 Visitor = Struct.new(:ir_op, :cpp, :switch)
56 Switch = Struct.new(:expr, :cases) do constant
58 res = "switch (#{expr}) {\n"
70 res = "switch (#{expr}) {\n"
162 def switch(expr, cases) method
163 Switch.new(expr, cases)
192 prefixed_case("compiler::DataType::", types, switch(condition, inner_cases))
216 switch("static_cast<int>(#{dst_r} != #{r(0)} && #{dst_r} != #{r(1)})",
261 # Switch condition printers
270 # we could use switch on 'bool' type for if-else purposes, but that hurts clang_tidy
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir/
Ddatatype.h91 switch (type) { in GetCommonType()
109 switch (type) { in IsInt32Bit()
125 switch (type) { in IsTypeNumeric()
146 switch (type) { in IsLessInt32()
198 switch (type) { in Is32Bits()
224 switch (type) { in IsFloatType()
235 switch (type) { in IsTypeSigned()
260 switch (type) { in ShiftByType()
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D8_statements.rst484 ``switch``, ``while``, ``do``, ``for``, or ``for-of`` statement.
497 switch statement
630 ``switch`` Statements
637 …todo: spec issue: optional identifier before the switch - it should be clarified it can be a label…
639 A ``switch`` statement transfers control to a statement or a block by using the
640 result of successful evaluation of the value of a ``switch`` expression.
643 switch statement
648 switch expression
653 (identifier ':')? 'switch' '(' expression ')' switchBlock
668 The ``switch`` expression type must be of type ``char``, ``byte``, ``short``,
[all …]
/arkcompiler/runtime_core/compiler/optimizer/templates/intrinsics/
Dcan_encode_builtin.inl.erb23 switch (id) {
36 switch (id) {
49 switch (id) {
61 switch (id) {
81 switch (arch) {
/arkcompiler/runtime_core/static_core/compiler/optimizer/templates/intrinsics/
Dcan_encode_builtin.inl.erb24 switch (id) {
37 switch (id) {
51 switch (id) {
63 switch (id) {
83 switch (arch) {
Dintrinsics_flags.inl.erb21 switch (intrinsic)
47 switch (intrinsic)
60 switch (intrinsic) // NOLINT(hicpp-multiway-paths-covered)
73 switch (intrinsic) { // NOLINT(hicpp-multiway-paths-covered)
90 switch (intrinsic)
109 switch (intrinsic)
/arkcompiler/runtime_core/static_core/runtime/tests/
Dfibers_test.cpp109 // EOT: switch to parent (otherwise fibers lib will call abort()) in Entry()
140 // ...and the check for the counters to stay correct after the switch in LoopedSwitchEntry()
147 /// Create fiber, switch to it, execute till its end, switch back
159 * Switch to the last one, wait till the whole chain is executed
172 /// Create the child fiber, then switch context back and forth several times in a loop
187 // do something with the context before the next switch in TEST_F()
200 // counters should not be corrupted after a switch in TEST_F()
/arkcompiler/runtime_core/static_core/docs/
Dcoding-style.md26 10. Always explicitly mark fall through in switch … case. Google uses its own macro, we can agree o…
28 switch (x) {
55 14. switch and case on the same level
58 switch (ch) {
/arkcompiler/runtime_core/static_core/runtime/profiling/
Dprofiling-disasm-inl.h29 switch (lang) { in ReadProfile()
40 switch (lang) { in DestroyProfile()
52 switch (lang) { in FindMethodInProfile()
64 switch (lang) { in DumpProfile()
/arkcompiler/runtime_core/docs/
Dcoding-style.md26 10. Always explicitly mark fall through in switch … case. Google uses its own macro, we can agree o…
28 switch (x) {
55 14. switch and case on the same level
58 switch (ch) {
/arkcompiler/runtime_core/bytecode_optimizer/
Dbytecode_optimizer_isapi.rb55 Visitor = Struct.new(:ir_op, :switch)
56 Switch = Struct.new(:expr, :cases) do constant
58 res = "switch (#{expr}) {\n"
70 res = "switch (#{expr}) {\n"
143 def switch(expr, cases) method
144 Switch.new(expr, cases)
169 prefixed_case("compiler::DataType::", types, switch(condition, inner_cases))
213 # Switch condition printers
222 # we could use switch on 'bool' type for if-else purposes, but that hurts clang_tidy
/arkcompiler/runtime_core/assembler/extensions/
Dregister_extensions.h.erb25 switch (lang) {
40 switch (lang) {
55 switch (lang) {
70 switch (lang) {
/arkcompiler/ets_frontend/ets2panda/lexer/
Dlexer.cpp154 switch (Iterator().Next()) { in SkipMultiLineComment()
184 switch (Iterator().Next()) { in SkipSingleLineComment()
243 switch (Iterator().Peek()) { in ScanDecimalNumbers()
362 switch (Iterator().Peek()) { in ScanCharLex()
393 switch (Iterator().Peek()) { in ScanSignOfNumber()
443 switch (cp) { in ScanTemplateString()
530 switch (cp) { in ScanUnicodeCharacter()
612 switch (Iterator().Peek()) { in ScanQuestionPunctuator()
617 switch (Iterator().Peek()) { in ScanQuestionPunctuator()
651 switch (Iterator().Peek()) { in ScanLessThanPunctuator()
[all …]
/arkcompiler/runtime_core/static_core/libpandafile/templates/
Dtype.h.erb66 switch (type_) {
77 switch (type_) {
90 switch (type_) {
101 switch (type_) {
112 switch (type_) {
128 switch (id) {
163 switch (signature) {
241 switch (type.type_) {
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Ddatatype.h98 switch (type) { in GetCommonType()
119 switch (type) { in IsInt32Bit()
135 switch (type) { in IsTypeNumeric()
156 switch (type) { in IsLessInt32()
208 switch (type) { in Is32Bits()
234 switch (type) { in IsFloatType()
245 switch (type) { in IsTypeSigned()
265 switch (type) { in ShiftByType()
/arkcompiler/runtime_core/libpandafile/templates/
Dtype.h.erb60 switch (type_) {
71 switch (type_) {
84 switch (type_) {
95 switch (type_) {
106 switch (type_) {
122 switch (id) {
157 switch (signature) {
235 switch (type.type_) {
/arkcompiler/ets_frontend/es2panda/lexer/
Dlexer.cpp154 switch (Iterator().Next()) { in SkipMultiLineComment()
191 switch (Iterator().Next()) { in SkipSingleLineComment()
238 switch (Iterator().Peek()) { in ScanNumberLeadingZero()
261 switch (Iterator().Peek()) { in ScanNumberLeadingZero()
303 switch (Iterator().Peek()) { in ScanDecimalNumbers()
395 switch (Iterator().Peek()) { in ScanNumber()
406 switch (Iterator().Peek()) { in ScanNumber()
470 switch (cp) { in ScanTemplateString()
548 switch (cp) { in ScanStringUnicodePart()
645 switch (Iterator().Peek()) { in ScanQuestionPunctuator()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dshare_gate_meta_data.cpp48 switch (opcode_) { in IsRoot()
67 switch (opcode_) { in IsFixed()
104 switch (opcode_) { in IsGeneralState()
130 switch (opcode_) { in IsTerminalState()
144 switch (opcode_) { in IsVirtualState()
162 switch (opcode_) { in IsControlCase()
177 switch (opcode_) { in IsIfOrSwitchRelated()
247 switch (value) { \
271 switch (value) { \
346 switch (value) {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/17.Experimental_Features/17.3.Indexable_Types/
Didx-s03-0030.sts25 switch(index) {
34 switch(index) {
44 switch(index) {
53 switch(index) {

12345678910>>...45