| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/src/ |
| D | namemangler.cpp | 23 #define DEBUG_ASSERT(f) ((void)0) 26 #define GETHEXCHAR(n) static_cast<char>((n) < 10 ? (n) + '0' : (n)-10 + 'a') 27 #define GETHEXCHARU(n) static_cast<char>((n) < 10 ? (n) + '0' : (n)-10 + 'A') 65 std::string newName(nameLen, '\0'); in DecodeName() 68 int splitNo = 0; // split: class 0 | method 1 | signature 2 in DecodeName() 69 size_t pos = 0; in DecodeName() 72 for (size_t i = 0; i < nameLen;) { in DecodeName() 86 uint8_t b1 = (c <= '9') ? c - '0' : c - 'a' + kNumLimit; in DecodeName() 88 uint8_t b2 = (c <= '9') ? c - '0' : c - 'a' + kNumLimit; in DecodeName() 90 uint8_t b3 = (c <= '9') ? c - '0' : c - 'a' + kNumLimit; in DecodeName() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | Functions.sts | 18 const hexChars: char[] = [c'0', c'1', c'2', c'3', c'4', c'5', c'6', c'7', c'8', c'9', c'A', c'B', c… 28 for (let i = c'0'; i <= c'9'; i++) { 93 c &= 0xff 100 if (c <= 0x7f) { 102 } else if (c <= 0x7ff) { 103 putByteAsHex(ret, c >> 6 | 0xc0) 104 putByteAsHex(ret, c & 0x3f | 0x80) 105 } else if (c <= 0xffff) { 106 putByteAsHex(ret, c >> 12 | 0xe0) 107 putByteAsHex(ret, (c >> 6) & 0x3f | 0x80) [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/static_core/tests/irtoc-interpreter-tests/ |
| D | binary.pa | 15 movi v0, 0x55 16 movi v1, 0x0 17 movi v2, 0xFF 18 movi v3, 0xA0 22 movi v1, 0x1 25 movi v1, 0x2 28 movi v1, 0x3 31 movi v1, 0x1 35 movi v0, 0x55 38 shri 0x0 [all …]
|
| /arkcompiler/runtime_core/tests/irtoc-interpreter-tests/ |
| D | binary.pa | 15 movi v0, 0x55 16 movi v1, 0x0 17 movi v2, 0xFF 18 movi v3, 0xA0 22 movi v1, 0x1 25 movi v1, 0x2 28 movi v1, 0x3 31 movi v1, 0x1 35 movi v0, 0x55 38 shri 0x0 [all …]
|
| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | bytecode_rerturn_throw_tests.cpp | 30 const uint8_t bytecode[] = {0x65}; in TEST() 36 const uint8_t bytecode[] = {0xfe}; in TEST() 42 const uint8_t bytecode[] = {0x3f, 0x00, 0x0c, 0x00}; in TEST()
|
| D | bytecode_jump_range_tests.cpp | 30 const uint8_t bytecode[] = {0x4d, 0xea}; in TEST() 36 const uint8_t bytecode[] = {0x08, 0x0b, 0x03, 0x06}; in TEST() 45 // newobjrange 0xb, 0x3, v6 in TEST() 46 const uint8_t bytecode[] = {0x08, 0x0b, 0x03, 0x06}; in TEST() 52 const uint8_t bytecode[] = {0x44, 0x58}; in TEST() 61 const uint8_t bytecode[] = {0x3f, 0x0a, 0x00, 0x00}; in TEST() 66 // newobjrange 0xb, 0x3, v6 in TEST() 67 const uint8_t bytecode[] = {0x08, 0x0b, 0x03, 0x06}; in TEST()
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | utf_helper.h | 30 static constexpr size_t MASK1 = 0x80; 31 static constexpr size_t MASK2 = 0x20; 32 static constexpr size_t MASK3 = 0x10; 33 static constexpr size_t LOW_3BITS = 0x7; 34 static constexpr size_t LOW_4BITS = 0xF; 35 static constexpr size_t LOW_5BITS = 0x1F; 36 static constexpr size_t LOW_6BITS = 0x3F; 37 static constexpr size_t L_SURROGATE_START = 0xDC00; 38 static constexpr size_t H_SURROGATE_START = 0xD800; 39 static constexpr size_t SURROGATE_RAIR_START = 0x10000; [all …]
|
| /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/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/05.string_literals/ |
| D | hex.sts | 21 …2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40\x41\x42\x43\x44… 23 for (let i = 0; i < s.length; i++) {
|
| /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-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-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-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_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
| D | dwarf.def | 48 DW_TAG(0x0000, null) 49 DW_TAG(0x0001, array_type) 50 DW_TAG(0x0002, class_type) 51 DW_TAG(0x0004, enumeration_type) 52 DW_TAG(0x0005, formal_parameter) 53 DW_TAG(0x000a, label) 54 DW_TAG(0x000b, lexical_block) 55 DW_TAG(0x000d, member) 56 DW_TAG(0x000f, pointer_type) 57 DW_TAG(0x0011, compile_unit) [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.sts | 24 for (let i = 0; i < escaped_chars.length; i++) { 36 c'\x3d', c'\x3e', c'\x3f', c'\x40', c'\x41', c'\x42', c'\x43', c'\x44', c'\x45', 45 for (let i = 0; i < 128; i++) { 60 let j = 0;
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | StringBase64.sts | 19 …-1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, … 24 for (i = 0; i < (length - 2); i += 3) { 26 …result.append(StringBase64.TO_BASE64_TABLE.charAt(((data.charAt(i) & 0x03) << 4) + (data.charAt(i … 27 …result.append(StringBase64.TO_BASE64_TABLE.charAt(((data.charAt(i + 1) & 0x0f) << 2) + (data.charA… 28 result.append(StringBase64.TO_BASE64_TABLE.charAt(data.charAt(i + 2) & 0x3f)); 30 if (length % 3 != 0) { 34 …result.append(StringBase64.TO_BASE64_TABLE.charAt(((data.charAt(i) & 0x03) << 4) + (data.charAt(i … 35 … result.append(StringBase64.TO_BASE64_TABLE.charAt((data.charAt(i + 1) & 0x0f) << 2)); 39 result.append(StringBase64.TO_BASE64_TABLE.charAt((data.charAt(i) & 0x03) << 4)); 48 let leftbits : int = 0; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | StringBase64.sts | 19 …-1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, … 24 for (i = 0; i < (length - 2); i += 3) { 26 …result.append(StringBase64.TO_BASE64_TABLE.charAt(((data.charAt(i) & 0x03) << 4) + (data.charAt(i … 27 …result.append(StringBase64.TO_BASE64_TABLE.charAt(((data.charAt(i + 1) & 0x0f) << 2) + (data.charA… 28 result.append(StringBase64.TO_BASE64_TABLE.charAt(data.charAt(i + 2) & 0x3f)); 30 if (length % 3 != 0) { 34 …result.append(StringBase64.TO_BASE64_TABLE.charAt(((data.charAt(i) & 0x03) << 4) + (data.charAt(i … 35 … result.append(StringBase64.TO_BASE64_TABLE.charAt((data.charAt(i + 1) & 0x0f) << 2)); 39 result.append(StringBase64.TO_BASE64_TABLE.charAt((data.charAt(i) & 0x03) << 4)); 48 let leftbits : int = 0; [all …]
|
| /arkcompiler/ets_frontend/es2panda/lexer/token/ |
| D | letters.h | 23 #define LEX_CHAR_NULL 0x00 /* \0 */ 26 #define LEX_CHAR_LF 0x0A /* line feed */ 27 #define LEX_CHAR_CR 0x0D /* carriage return */ 28 #define LEX_CHAR_LS 0x2028 /* line separator */ 29 #define LEX_CHAR_PS 0x2029 /* paragraph separator */ 31 #define LEX_CHAR_LOWERCASE_A 0x61 /* a */ 32 #define LEX_CHAR_LOWERCASE_B 0x62 /* b */ 33 #define LEX_CHAR_LOWERCASE_C 0x63 /* c */ 34 #define LEX_CHAR_LOWERCASE_D 0x64 /* d */ 35 #define LEX_CHAR_LOWERCASE_E 0X65 /* e */ [all …]
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | base64.cpp | 23 if (strLen % TO_TRANSFORM_CHAR_NUM != 0) { in Base64Encode() 26 std::string encodedRes = std::string(encodedStrLen, '\0'); in Base64Encode() 29 …for (size_t i = 0, j = 0; i < encodedRes.length() - 2; i += TRANSFORMED_CHAR_NUM, j += TO_TRANSFOR… in Base64Encode() 30 // convert three 8bit into four 6bit; then add two 0 bit in each 6 bit in Base64Encode() 32 encodedRes[i] = base64CharSet[(static_cast<unsigned int>(inputString[j]) & 0xff) >> 2]; in Base64Encode() 34 encodedRes[i + 1] = base64CharSet[(static_cast<unsigned int>(inputString[j]) & 0x03) << 4 | in Base64Encode() 35 (static_cast<unsigned int>(inputString[j + 1]) & 0xf0) >> 4]; in Base64Encode() 37 … encodedRes[i + 2] = base64CharSet[(static_cast<unsigned int>(inputString[j + 1]) & 0x0f) << 2 | in Base64Encode() 38 (static_cast<unsigned int>(inputString[j + 2]) & 0xc0) >> 6]; in Base64Encode() 40 encodedRes[i + 3] = base64CharSet[static_cast<unsigned int>(inputString[j + 2]) & 0x3f]; in Base64Encode() [all …]
|
| /arkcompiler/runtime_core/static_core/isa/ |
| D | isa.yaml | 84 - Positive zero (+0.0, hexadecimal representation is `0x0000000000000000`) 85 - Negative zero (-0.0, hexadecimal representation is `0x8000000000000000`) 86 - Minimal positive value (4.9E-324, hexadecimal representation is `0x0000000000000001`) 87 - Maximal negative value (-4.9E-324, hexadecimal representation is `0x8000000000000001`) 88 …- Maximal positive value (1.7976931348623157e308, hexadecimal representation is `0x7feffffffffffff… 89 …- Minimal negative value (-1.7976931348623157e308, hexadecimal representation is `0xffefffffffffff… 90 - Positive infinity (hexadecimal representation is `0x7ff0000000000000`) 91 - Negative infinity (hexadecimal representation is `0xfff0000000000000`) 92 …- Not a number - set of all NaN values (one of hexadecimal representations is `0x7ff8000000000000`) 163 description: Bytecode throws ArithmeticException if the divisor is 0. [all …]
|
| /arkcompiler/toolchain/tooling/base/ |
| D | pt_base64.cpp | 24 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 46 if (len < ENCODED_GROUP_BYTES || len % ENCODED_GROUP_BYTES != 0) { in Decode() 47 return {0, false}; in Decode() 53 int8_t i = 0; in Decode() 62 …*dest++ = (base64Chars[0] << 2) | ((base64Chars[1] & 0x30) >> 4); // 2: shift 2bits, 4: shift 4bits in Decode() 63 …*dest++ = (base64Chars[1] << 4) | ((base64Chars[2] & 0x3c) >> 2); // 2: shift 2bits, 4: shift 4bits in Decode() 65 i = 0; in Decode() 70 if (i != 0) { in Decode() 72 … tmp[0] = (base64Chars[0] << 2) | ((base64Chars[1] & 0x30) >> 4); // 2: shift 2bits, 4: shift 4bits in Decode() 73 … tmp[1] = (base64Chars[1] << 4) | ((base64Chars[2] & 0x3c) >> 2); // 2: shift 2bits, 4: shift 4bits in Decode() [all …]
|