| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | number_gate_info.h | 39 static constexpr uint8_t UNUSED = 0; 40 static constexpr uint8_t BOOL = 1 << 0; 61 return ((tag_ & NATIVE) != 0); in UsedAsNative() 65 return ((tag_ & TAGGED) != 0); in UsedAsTagged() 88 uint8_t tag_ {0}; 108 static constexpr int32_t UINT30_MAX = 0x3fffffff; 112 -UINT18_MAX, -TYPED_ARRAY_ONHEAP_MAX, -1, 0, 1, TYPED_ARRAY_ONHEAP_MAX - 1, 153 return (rhs.max_ > 0) && (max_ > INT32_MAX - rhs.max_); in MaybeAddOverflow() 158 return (rhs.min_ < 0) && (min_ < INT32_MIN - rhs.min_); in MaybeAddUnderflow() 177 RangeInfo result = RangeInfo(0, 0); [all …]
|
| /arkcompiler/runtime_core/disassembler/tests/ |
| D | disassembler_imm_tests.cpp | 24 panda_file::File::EntityId method_id {0x00}; 31 const uint8_t bytecode[] = {0x4f, 0x17}; in TEST() 34 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x4f); in TEST() 35 EXPECT_EQ(std::stoi(ins->GetId(0)), static_cast<int64_t>(0x17)); in TEST() 40 const uint8_t bytecode[] = {0x4d, 0xea}; in TEST() 43 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x4d); in TEST() 44 EXPECT_EQ(std::stoi(ins->GetId(0)), static_cast<int8_t>(-22)); in TEST() 49 const uint8_t bytecode[] = {0x62, 0x1e, 0x00, 0x00, 0x00}; in TEST() 52 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x62); in TEST() 53 EXPECT_EQ(std::get<int64_t>(ins->GetImm(0)), static_cast<int32_t>(0x1e)); in TEST() [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/createarray/ |
| D | createarray.js | 23 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 24 0x00, 0x02, 0x00, 0x00, 0xcd, 0x1f, 0x40, 0xcd, 0x37, 0x56, 0x2f, 0x78, 0xbb, 0x27, 0x1e, 0xba, 25 0x66, 0xba, 0x84, 0xc6, 0xdb, 0xa0, 0x72, 0xf3, 0x1b, 0x53, 0x8c, 0x46, 0x99, 0x65, 0x0d, 0xf7, 26 0xb4, 0xae, 0x19, 0x46, 0x1e, 0x05, 0xb0, 0xbc, 0xe1, 0x84, 0x9b, 0x44, 0xc5, 0x06, 0x18, 0xef, 27 0x68, 0x4b, 0x80, 0xf4, 0xfc, 0x00, 0x79, 0x8e, 0x21, 0x5e, 0x8f, 0x26, 0x65, 0x69, 0x09, 0x31, 28 0x4b, 0xa0, 0x95, 0x37, 0x53, 0xa2, 0xf5, 0x52, 0x78, 0xb5, 0x3c, 0xec, 0x58, 0x25, 0x1f, 0x23, 29 0x99, 0x89, 0xc1, 0x46, 0x29, 0x65, 0xbb, 0xbe, 0x59, 0x4c, 0xe4, 0x6f, 0xfc, 0xeb, 0x53, 0xe5, 30 0x33, 0x6e, 0x9a, 0x14, 0x57, 0x2a, 0x39, 0xc5, 0xec, 0x4e, 0xc3, 0x3e, 0xcf, 0x76, 0xa3, 0xe9, 31 0xf8, 0xe3, 0x8a, 0x40, 0x1b, 0x3d, 0x07, 0x0e, 0xe4, 0x8e, 0xc7, 0x03, 0xbe, 0xf0, 0x3b, 0xb1, 32 0x25, 0x4d, 0x20, 0x07, 0x9d, 0x2a, 0x18, 0x92, 0x4b, 0x62, 0x34, 0x73, 0xbc, 0x60, 0x3c, 0x18, [all …]
|
| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | bytecode_imm_fetch_tests.cpp | 30 const uint8_t bytecode[] = {0x4f, 0x17}; in TEST() 32 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x4f); in TEST() 33 …PECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0>()), static_cast<int8_t>(0x17)); in TEST() 34 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0, true>()), in TEST() 35 static_cast<int8_t>(0x17)); in TEST() 36 EXPECT_EQ(inst.GetImmData(0), static_cast<int64_t>(0x17)); in TEST() 42 const uint8_t bytecode[] = {0x4d, 0xea}; in TEST() 44 EXPECT_EQ(static_cast<uint8_t>(inst.GetOpcode()), 0x4d); in TEST() 45 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(-22)); in TEST() 46 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0, true>()), static_cast<int8_t>(-22)); in TEST() [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/optimizer/js/opt-try-catch-func/ |
| D | test-raw-try-catch-expected.pa.txt | 1 slotNum = 0x1a 6 ldai 0x8 8 ldai 0x9 12 ldai 0x1 20 ldai 0x2 24 tryldglobalbyname 0x0, print 25 callarg1 0x1, v8 33 ldai 0x4 37 tryldglobalbyname 0x3, print 38 callarg1 0x4, v7 [all …]
|
| /arkcompiler/runtime_core/static_core/isa/ |
| D | isa.yaml | 83 - Positive zero (+0.0, hexadecimal representation is `0x0000000000000000`), 84 - Negative zero (-0.0, hexadecimal representation is `0x8000000000000000`), 85 - Minimal positive value (4.9E-324, hexadecimal representation is `0x0000000000000001`), 86 - Maximal negative value (-4.9E-324, hexadecimal representation is `0x8000000000000001`), 87 …- Maximal positive value (1.7976931348623157e308, hexadecimal representation is `0x7feffffffffffff… 88 …- Minimal negative value (-1.7976931348623157e308, hexadecimal representation is `0xffefffffffffff… 89 - Positive infinity (hexadecimal representation is `0x7ff0000000000000`), 90 - Negative infinity (hexadecimal representation is `0xfff0000000000000`), 91 …- Not a number - set of all NaN values (one of hexadecimal representations is `0x7ff8000000000000`… 165 description: Bytecode throws ArithmeticException if the divisor is 0. [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/optimizer/js/unused-inst-opt/ |
| D | unused-ldhole-expected.pa.txt | 1 slotNum = 0x27 7 createarraywithbuffer 0x0, _2 8 getiterator 0x1 10 ldobjbyname 0x3, next 22 callruntime.istrue 0x5 26 callthis0 0x6, v0 29 ldobjbyname 0x8, done 33 callruntime.isfalse 0xa 41 ldobjbyname 0xb, value 66 callruntime.istrue 0xd [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/bytecode/js/destructuring/ |
| D | test-array-pattern-iterator-close-expected.txt | 1 slotNum = 0x26 7 createarraywithbuffer 0x0, _1 8 getiterator 0x1 10 ldobjbyname 0x3, next 22 callruntime.istrue 0x5 26 callthis0 0x6, v0 29 ldobjbyname 0x8, done 33 callruntime.isfalse 0xa 41 ldobjbyname 0xb, value 64 sttoglobalrecord 0xd, a [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
| D | mir_pragma.h | 43 kValueByte = 0x00, // (none; must be 0) ubyte[1] 44 kValueShort = 0x02, // size - 1 (0…1) ubyte[size] 45 kValueChar = 0x03, // size - 1 (0…1) ubyte[size] 46 kValueInt = 0x04, // size - 1 (0…3) ubyte[size] 47 kValueLong = 0x06, // size - 1 (0…7) ubyte[size] 48 kValueFloat = 0x10, // size - 1 (0…3) ubyte[size] 49 kValueDouble = 0x11, // size - 1 (0…7) ubyte[size] 50 kValueMethodType = 0x15, // size - 1 (0…3) ubyte[size] 51 kValueMethodHandle = 0x16, // size - 1 (0…3) ubyte[size] 52 kValueString = 0x17, // size - 1 (0…3) ubyte[size] [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/06.string_literals/ |
| D | hex.ets | 21 …0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20\x21\x22\x23\x24… 23 for (let i = 0; i < s.length; i++) {
|
| /arkcompiler/ets_frontend/es2panda/test/parser/binder/ |
| D | loop-scope-name-ts-expected.txt | 1 slotNum = 0x0 11 slotNum = 0x0 16 ldai 0x1 21 slotNum = 0x0 30 slotNum = 0x0 39 slotNum = 0x0 48 slotNum = 0x0 57 slotNum = 0x21 64 definefunc 0x0, .#*#, 0x0 65 callarg0 0x1 [all …]
|
| D | loop-scope-name-js-expected.txt | 1 slotNum = 0x0 11 slotNum = 0x0 16 ldai 0x1 21 slotNum = 0x0 30 slotNum = 0x0 39 slotNum = 0x0 48 slotNum = 0x0 57 slotNum = 0x21 64 definefunc 0x0, .#*#, 0x0 65 callarg0 0x1 [all …]
|
| /arkcompiler/ets_runtime/common_components/base/ |
| D | utf_helper.h | 26 constexpr size_t HI_SURROGATE_MIN = 0xd800; 27 constexpr size_t HI_SURROGATE_MAX = 0xdbff; 28 constexpr size_t LO_SURROGATE_MIN = 0xdc00; 29 constexpr size_t LO_SURROGATE_MAX = 0xdfff; 31 constexpr size_t LO_SUPPLEMENTS_MIN = 0x10000; 36 static constexpr size_t MASK1 = 0x80; 37 static constexpr size_t MASK2 = 0x20; 38 static constexpr size_t MASK3 = 0x10; 39 static constexpr size_t LOW_3BITS = 0x7; 40 static constexpr size_t LOW_4BITS = 0xF; [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/bytecode/ts/ic/ |
| D | ic-slot-8-16-bit-sort-expected.txt | 1 slotNum = 0x0 11 slotNum = 0x81 16 ldai 0x0 17 trystglobalbyname 0x0, a0 18 ldai 0x1 19 trystglobalbyname 0x1, a1 21 callruntime.isfalse 0x2 23 callruntime.isfalse 0x3 25 callruntime.isfalse 0x4 27 callruntime.isfalse 0x5 [all …]
|
| D | ic-slot-8-16-bit-no-sort-expected.txt | 1 slotNum = 0x0 11 slotNum = 0x80 16 ldai 0x0 17 trystglobalbyname 0x0, a0 18 ldai 0x1 19 trystglobalbyname 0x1, a1 21 callruntime.isfalse 0x2 23 callruntime.isfalse 0x3 25 callruntime.isfalse 0x4 27 callruntime.isfalse 0x5 [all …]
|
| D | ic-slot-no-overflow-expected.txt | 1 slotNum = 0x0 11 slotNum = 0x80 17 callruntime.isfalse 0x0 19 callruntime.isfalse 0x1 21 callruntime.isfalse 0x2 23 callruntime.isfalse 0x3 25 callruntime.isfalse 0x4 27 callruntime.isfalse 0x5 29 callruntime.isfalse 0x6 31 callruntime.isfalse 0x7 [all …]
|
| D | ic-slot-8-overflow-gap-0xfe-expected.txt | 1 slotNum = 0x0 11 slotNum = 0x81 17 callruntime.isfalse 0x0 19 callruntime.isfalse 0x1 21 callruntime.isfalse 0x2 23 callruntime.isfalse 0x3 25 callruntime.isfalse 0x4 27 callruntime.isfalse 0x5 29 callruntime.isfalse 0x6 31 callruntime.isfalse 0x7 [all …]
|
| D | ic-slot-8-overflow-16-gap-expected.txt | 1 slotNum = 0x0 11 slotNum = 0x83 16 ldai 0x0 17 trystglobalbyname 0x0, a0 18 ldai 0x1 19 trystglobalbyname 0x1, a1 21 callruntime.isfalse 0x2 23 callruntime.isfalse 0x3 25 callruntime.isfalse 0x4 27 callruntime.isfalse 0x5 [all …]
|
| D | ic-slot-8-overflow-no-gap-expected.txt | 1 slotNum = 0x0 11 slotNum = 0x81 17 callruntime.isfalse 0x0 19 callruntime.isfalse 0x1 21 callruntime.isfalse 0x2 23 callruntime.isfalse 0x3 25 callruntime.isfalse 0x4 27 callruntime.isfalse 0x5 29 callruntime.isfalse 0x6 31 callruntime.isfalse 0x7 [all …]
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | utf.h | 32 * 1 7 U+0000 U+007F 0xxxxxxx 37 constexpr size_t MASK1 = 0x80; 38 constexpr size_t MASK2 = 0x20; 39 constexpr size_t MASK3 = 0x10; 41 constexpr size_t MASK_4BIT = 0x0f; 42 constexpr size_t MASK_5BIT = 0x1f; 43 constexpr size_t MASK_6BIT = 0x3f; 44 constexpr size_t MASK_10BIT = 0x03ff; 45 constexpr size_t MASK_16BIT = 0xffff; 50 constexpr size_t HI_SURROGATE_MIN = 0xd800; [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/optimizer/js/branch-elimination/ |
| D | test-branch-elimination-expected.pa.txt | 1 slotNum = 0x1d 6 tryldglobalbyname 0x2, print 11 callarg1 0x3, v1 16 slotNum = 0x13 21 tryldglobalbyname 0x10, print 26 callarg1 0x11, v1 31 slotNum = 0x17 36 tryldglobalbyname 0x14, print 41 callarg1 0x15, v1 46 slotNum = 0x17 [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/01.character_type_and_literals/01.character_literals/ |
| D | char_literals.ets | 24 for (let i = 0; i < escaped_chars.length; i++) { 32 c'\x19', c'\x1a', c'\x1b', c'\x1c', c'\x1d', c'\x1e', c'\x1f', c'\x20', c'\x21', 45 for (let i: Int = 0; i < 128; i++) { 60 let j = 0;
|
| /arkcompiler/runtime_core/static_core/libpandabase/utils/ |
| D | utf.h | 32 * 1 7 U+0000 U+007F 0xxxxxxx 37 constexpr size_t MASK1 = 0x80; 38 constexpr size_t MASK2 = 0x20; 39 constexpr size_t MASK3 = 0x10; 41 constexpr size_t MASK_4BIT = 0x0f; 42 constexpr size_t MASK_5BIT = 0x1f; 43 constexpr size_t MASK_6BIT = 0x3f; 44 constexpr size_t MASK_10BIT = 0x03ff; 45 constexpr size_t MASK_16BIT = 0xffff; 50 constexpr size_t U16_LEAD = 0xd7c0; [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/optimizer/ts/branch-elimination/projects/ts_module_syntax_project/ |
| D | test-import-syntax-exec-expected.pa.txt | 1 slotNum = 0x0 6 ldai 0x1 7 stmodulevar 0x0 8 ldai 0x64 9 stmodulevar 0x1 15 slotNum = 0x0 20 ldai 0x1 21 stmodulevar 0x0 27 slotNum = 0x0 32 ldai 0x1 [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/optimizer/ts/branch-elimination/projects/ts_ohmurl_project/ |
| D | test-import-exec-expected.pa.txt | 1 slotNum = 0x0 7 stmodulevar 0x0 9 stmodulevar 0x1 15 slotNum = 0x0 21 stmodulevar 0x0 27 slotNum = 0x0 33 stmodulevar 0x0 39 slotNum = 0x0 45 stmodulevar 0x5 47 stmodulevar 0x6 [all …]
|