| /ark/ts2abc/test262/ |
| D | es2015_tests.txt | 1 built-ins/Array/S15.4.2.1_A1.1_T2.js 2 built-ins/Array/proto.js 3 built-ins/Array/proto-from-ctor-realm-zero.js 4 built-ins/Array/proto-from-ctor-realm-two.js 5 built-ins/Array/S15.4_A1.1_T9.js 6 built-ins/Array/length.js 7 built-ins/Array/S15.4.5.2_A3_T2.js 8 built-ins/Array/S15.4.5.1_A2.1_T1.js 9 built-ins/Array/S15.4.2.1_A2.1_T1.js 10 built-ins/Array/prop-desc.js [all …]
|
| D | CI_tests.txt | 1 built-ins/Error/length.js 2 built-ins/Error/message_property.js 3 built-ins/Error/prototype/S15.11.3.1_A1_T1.js 4 built-ins/Error/prototype/S15.11.3.1_A3_T1.js 5 built-ins/Error/prototype/S15.11.4_A3.js 6 built-ins/Error/prototype/constructor/S15.11.4.1_A1_T2.js 7 built-ins/Error/prototype/message/S15.11.4.3_A2.js 8 built-ins/Error/prototype/name/S15.11.4.2_A1.js 9 built-ins/Error/prototype/toString/15.11.4.4-10-1.js 10 built-ins/Error/prototype/toString/15.11.4.4-6-1.js [all …]
|
| D | skip_tests.json | 5 "built-ins/Promise/all/species-get-error.js", 6 "built-ins/Promise/race/species-get-error.js", 7 "language/global-code/decl-lex.js" 16 "language/expressions/template-literal/tv-utf16-escape-sequence.js" 22 "language/identifiers/part-digits-via-escape-hex.js", 23 "language/identifiers/val-dollar-sign-via-escape-hex.js", 24 "language/identifiers/vals-eng-alpha-lower-via-escape-hex.js", 25 "language/identifiers/vals-eng-alpha-upper-via-escape-hex.js", 26 "language/identifiers/vals-rus-alpha-lower-via-escape-hex.js", 27 "language/identifiers/vals-rus-alpha-upper-via-escape-hex.js", [all …]
|
| /ark/runtime_core/verification/ |
| D | messages.yaml | 6 # http://www.apache.org/licenses/LICENSE-2.0 34 message: ( constructor is array constructor ) 180 …Wrong array element type '${type}'. Expected a subtype of '${expected_type}'. Compatible subtypes … 186 Wrong type of array elements '${type}'. Expected '${expected_type}'. 192 Wrong type of array elements '${type}'. Expected one of ${expected_types}. 198 Cannot create array of non-array type '${type}'. Possible types are ${array_types}. 204 Cannot create object of non-object type '${type}'. Possible types are ${object_types}. 266 …Wrong type for 'checkcast'. It is a non-object type '${type}'. Possible types are ${possible_types… 298 … Element type in array in accumulator is of incompatible type '${acc_elt_type}'. Possible types are 314 …Wrong type for 'isinstance'. It is a non-object/non-array type '${type}'. Possible types are ${pos… [all …]
|
| /ark/runtime_core/docs/diagrams/ |
| D | stacktrace.pusequence | 6 ' http://www.apache.org/licenses/LICENSE-2.0 20 ManagedThread -> stacktrace.cpp: GetStacktrace 21 stacktrace.cpp -> ManagedThread: stacktrace (array of function call instruction addresses) 22 ManagedThread -> StackPrinter: Print the stacktrace 23 StackPrinter -> "~/proc~/self~/maps": ReadVma (read used libraries and associated addresses) 24 "~/proc~/self~/maps" -> StackPrinter: Array of VMA (virtual memory area) 25 StackPrinter -> StackPrinter: For each address, find the corresponding VMA and determine the librar… 26 StackPrinter -> libdwarf: Read debug info from the library file 27 libdwarf -> StackPrinter: Debug info 28 StackPrinter -> libdwarf: Get function name, source file and line number [all …]
|
| /ark/runtime_core/cmake/ |
| D | ClangTidy.cmake | 6 # http://www.apache.org/licenses/LICENSE-2.0 14 option(PANDA_ENABLE_CLANG_TIDY "Enable clang-tidy checks during compilation" true) 16 # There seems to be a bug in either clang-tidy or CMake: 17 # When clang/gcc is used for cross-compilation, it is ran on host and use definitions and options f… 18 # For example for arm32 cross-compilation Clang-Tidy: 19 # - don't know about -march=armv7-a 20 # - believes that size of pointer is 64 instead of 32 for aarch32 30 # Currently we fix a certain version of clang-tidy to avoid unstable linting, 32 set(panda_clang_tidy "clang-tidy-9") 34 # Require clang-tidy [all …]
|
| /ark/js_runtime/ecmascript/ |
| D | js_date_time_format.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 62 std::string property; // NOLINT(misc-non-private-member-variables-in-classes) 63 std::vector<IcuPatternEntry> pairs; // NOLINT(misc-non-private-member-variables-in-classes) 64 …ap<const std::string, const std::string> map; // NOLINT(misc-non-private-member-variables-in-class… 65 std::vector<std::string> allowedValues; // NOLINT(misc-non-private-member-variables-in-classes) 68 // NOLINT(performance-noexcept-move-constructor, hicpp-noexcept-move) 75 … IcuPatternDesc("hour", {{data1, "2-digit"}, {data2, "numeric"}}, {"2-digit", "numeric"}))) {} in Pattern() 167 static Value TrackValue(int32_t beginning, int32_t ending, std::array<int32_t, 2> begin, 168 std::array<int32_t, 2> end);
|
| D | js_api_arraylist.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 20 #include "js_tagged_value-inl.h" 24 * Provide the object of non ECMA standard jsapi container. 25 * JSAPIArrayList provides dynamically modified array.
|
| D | js_array.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 22 #include "ecmascript/js_tagged_value-inl.h" 24 #include "interpreter/fast_runtime_stub-inl.h" 29 return JSArray::Cast(*self)->GetLength(); in LengthGetter() 47 uint32_t oldLen = JSArray::Cast(*self)->GetArrayLength(); in LengthSetter() 54 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in ArrayCreate() 55 JSHandle<JSTaggedValue> arrayFunction = env->GetArrayFunction(); in ArrayCreate() 63 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in ArrayCreate() 70 THROW_RANGE_ERROR_AND_RETURN(thread, "array length must less than 2^32 - 1", exception); in ArrayCreate() 75 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in ArrayCreate() [all …]
|
| /ark/runtime_core/libpandafile/ |
| D | file.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 25 #include <array> 46 static const std::array<uint8_t, MAGIC_SIZE> MAGIC; 49 std::array<uint8_t, MAGIC_SIZE> magic; 51 std::array<uint8_t, VERSION_SIZE> version; 81 uint32_t utf16_length; // NOLINT(misc-non-private-member-variables-in-classes) 82 const uint8_t *data; // NOLINT(misc-non-private-member-variables-in-classes) 83 bool is_ascii; // NOLINT(misc-non-private-member-variables-in-classes) 86 // NOLINTNEXTLINE(cppcoreguidelines-special-member-functions, hicpp-special-member-functions) 149 uint32_t foreign_begin = header->foreign_off; in IsExternal() [all …]
|
| /ark/runtime_core/runtime/mem/gc/ |
| D | gc.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 74 class Array; variable 80 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) 81 #define LOG_DEBUG_GC LOG(DEBUG, GC) << this->GetLogPrefix() 82 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) 83 #define LOG_INFO_GC LOG(INFO, GC) << this->GetLogPrefix() 107 if (native_gc_trigger_type_str == "no-native-gc-trigger") { in NativeGcTriggerTypeFromString() 110 if (native_gc_trigger_type_str == "simple-strategy") { in NativeGcTriggerTypeFromString() 136 uint64_t young_space_size = 0; /// size of young-space for gen-gc 149 // NOLINTNEXTLINE(readability-braces-around-statements) in MarkObjectHeader() [all …]
|
| D | gc_types.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 #include <array> 25 GC_STW_NO_MT, // Stop-the-world, single thread 68 constexpr std::array<char const *, GC_TYPE_SIZE> GC_NAMES = {"Invalid GC", "Epsilon GC", "Stop-The-… 78 static_assert(StringsEqual(GC_NAMES[ToIndex(GCType::STW_GC)], "Stop-The-World GC")); 90 if (gc_type_str == "gen-gc") { in GCTypeFromString() 93 if (gc_type_str == "hybrid-gc") { in GCTypeFromString() 96 if (gc_type_str == "g1-gc") { in GCTypeFromString() 111 return "gen-gc"; in GCStringFromType() 114 return "hybrid-gc"; in GCStringFromType() [all …]
|
| /ark/runtime_core/tests/cts-coverage-tool/ |
| D | spec.rb | 6 # http://www.apache.org/licenses/LICENSE-2.0 126 result[-1] += '.' + p 134 result[-1] += '.' + p 143 str1.tr('^A-Za-z0-9', '').downcase == str2.tr('^A-Za-z0-9', '').downcase 149 if tdata.class != array 150 …@orphaned << { 'file' => rel_path(testfile), 'error' => 'Bad format, expected array of titles', 'c… 176 …@orphaned << { 'file' => rel_path(testfile), 'error' => 'Given instruction is non-testable', 'comm… 191 …@orphaned << { 'file' => rel_path(testfile), 'error' => 'Given description is non-testable', 'comm… 206 …@orphaned << { 'file' => rel_path(testfile), 'error' => 'Given exception assertion is non-testable… 221 …'file' => rel_path(testfile), 'error' => 'Given verification assertion is non-testable', 'comment'… [all …]
|
| /ark/runtime_core/isa/ |
| D | isa.yaml | 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- 17 - name: General design 21 - name: Registers 31 - name: Accumulator 40 register-to-register moves. 42 - name: Calling sequence 48 …On return, callee frame is destroyed. If function return value is non-void, it is passed to caller… 52 - name: Supported primitive types 54 …VM support operations on registers with i32 and i64 integral values. However, 8-bit and 16-bit int… [all …]
|
| /ark/runtime_core/runtime/mem/gc/stw-gc/ |
| D | stw-gc.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 #include "runtime/include/coretypes/array-inl.h" 27 * \brief Stop the world, non-concurrent GC 58 bool reversed_mark_ {false}; // if true - we treat marked objects as dead object
|
| /ark/runtime_core/libpandabase/utils/ |
| D | span.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 48 // The following constructor is non-explicit to be aligned with std::span 50 // NOLINTNEXTLINE(google-explicit-constructor,modernize-avoid-c-arrays) 51 constexpr Span(U (&array)[N]) : Span(array, N) in Span() 55 Span(Iterator begin, Iterator end) : Span(begin, end - begin) {} in Span() 70 // NOLINTNEXTLINE(readability-identifier-naming) 76 // NOLINTNEXTLINE(readability-identifier-naming) 82 // NOLINTNEXTLINE(readability-identifier-naming) 88 // NOLINTNEXTLINE(readability-identifier-naming) 91 return data_ + size_; // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in end() [all …]
|
| /ark/runtime_core/tests/cts-generator/cts-template/ |
| D | stobj.obj.yaml | 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: pandasm_header 51 - name: java_header 93 - file-name: "stobj.obj" 99 - sig: stobj.obj v:in:ref, field_id 104 - file-name: "check_if_regs_initialized" 108 header-template: ['pandasm_header'] 109 check-type: exit-positive 112 runner-options: ['verifier-failure', 'verifier-debug-config'] 113 code-template: | [all …]
|
| D | ldobj.obj.yaml | 6 # http://www.apache.org/licenses/LICENSE-2.0 15 - name: pandasm_header 51 - name: java_header 95 - file-name: "ldobj.obj" 101 - sig: ldobj.obj v:in:ref, field_id 106 - file-name: "check_if_regs_initialized" 110 - sig: ldobj.obj v:in:ref, field_id 113 header-template: [pandasm_header] 114 check-type: exit-positive 117 runner-options: ['verifier-failure', 'verifier-debug-config'] [all …]
|
| /ark/runtime_core/runtime/include/coretypes/ |
| D | string.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 31 class Array; variable 59 …static String *CreateNewStringFromChars(uint32_t offset, uint32_t length, Array *chararray, Langua… 62 …g *CreateNewStringFromBytes(uint32_t offset, uint32_t length, uint32_t high_byte, Array *bytearray, 70 Array *ToCharArray(LanguageContext ctx); 133 // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in CopyDataMUtf8() 134 buf[max_length - 1] = '\0'; in CopyDataMUtf8() 148 constexpr size_t MAX_LEN = std::numeric_limits<size_t>::max() / 2 - 1; in CopyDataRegionMUtf8() 152 // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in CopyDataRegionMUtf8() 158 … return panda::utf::ConvertRegionUtf16ToMUtf8(GetDataUtf16(), buf, length, max_length - 1, start); in CopyDataRegionMUtf8() [all …]
|
| /ark/runtime_core/runtime/ |
| D | object_header.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 18 #include "runtime/include/coretypes/array.h" 25 #include "runtime/handle_base-inl.h" 33 if (!klass->IsDynamicClass()) { in CreateObject() 35 ASSERT(cls->IsInstantiable()); in CreateObject() 36 ASSERT(!cls->IsArrayClass()); in CreateObject() 37 ASSERT(!cls->IsStringClass()); in CreateObject() 41 size_t size = klass->GetObjectSize(); in CreateObject() 43 mem::HeapManager *heap_manager = Thread::GetCurrent()->GetVM()->GetHeapManager(); in CreateObject() 46 obj = heap_manager->AllocateObject(klass, size); in CreateObject() [all …]
|
| /ark/runtime_core/runtime/coretypes/ |
| D | string.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 23 #include "runtime/include/coretypes/array.h" 24 #include "runtime/include/coretypes/string-inl.h" 26 #include "runtime/handle_base-inl.h" 40 auto string = AllocStringObject(str_handle->GetLength(), !str_handle->IsUtf16(), ctx, vm); in CreateFromString() 47 string->length_ = str->length_; in CreateFromString() 48 string->hashcode_ = str->hashcode_; in CreateFromString() 50 uint32_t length = str->GetLength(); in CreateFromString() 51 // After memcpy we should have a full barrier, so this writes should happen-before barrier in CreateFromString() 53 if (str->IsUtf16()) { in CreateFromString() [all …]
|
| /ark/runtime_core/assembler/ |
| D | assembly-ins.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 #include <array> 26 #include "assembly-debug.h" 61 constexpr int INVALID_REG_IDX = -1; 72 constexpr std::array<unsigned, NUM_OPCODES> INST_FLAGS_TABLE = {PANDA_INSTRUCTION_LIST(OPLIST)}; 76 constexpr std::array<size_t, NUM_OPCODES> INST_WIDTH_TABLE = {PANDA_INSTRUCTION_LIST(OPLIST)}; 80 constexpr std::array<int, NUM_OPCODES> DEF_IDX_TABLE = {PANDA_INSTRUCTION_LIST(OPLIST)}; 84 constexpr std::array<std::array<int, MAX_NUMBER_OF_SRC_REGS>, NUM_OPCODES> USE_IDXS_TABLE = { 91 constexpr static uint16_t ACCUMULATOR = -1; 98 std::vector<uint16_t> regs; /* list of arguments - registers */ [all …]
|
| /ark/ts2abc/ts2panda/src/expression/ |
| D | arrayLiteralExpression.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 34 // empty Array 54 if (i == elements.length - 1) { 96 if (i == elements.length - 1) { 97 // omittedExpression is the last element, we need to set the length of the array 110 // non-constant elements
|
| /ark/runtime_core/libpandabase/mem/ |
| D | arena_allocator.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 #include <array> 28 #include "malloc_mem_pool-inl.h" 29 #include "mmap_mem_pool-inl.h" 77 // CODECHECK-NOLINTNEXTLINE(CPP_RULE_ID_SMARTPOINTER_INSTEADOF_ORIGINPOINTER) in New() 92 // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) in New() 94 // CODECHECK-NOLINTNEXTLINE(CPP_RULE_ID_SMARTPOINTER_INSTEADOF_ORIGINPOINTER) in New() 119 Arena *arenas_ = nullptr; // NOLINT(misc-non-private-member-variables-in-classes) 138 return DEFAULT_ON_STACK_ARENA_ALLOCATOR_BUFF_SIZE - (curPos_ - &buff_[0]); in GetFreeSize() 143 return curPos_ - &buff_[0]; in GetOccupiedSize() [all …]
|
| /ark/runtime_core/docs/ |
| D | file_format.md | 13 cannot be fit in 16-bit unsigned integer. This forces application developers to create several file… 24 However, to achive more compactness, 16-bit indexes are used to refer classes, methods and fields in 66 The version field in the header is 4 bytes long and is encoded as a byte array to 69 Any tool which supports format version `N` must support format version `N - 1` too. 74 | ---- | ----------- | 75 | `uint8_t` | 8-bit unsigned integer value. | 76 | `uint32_t` | 32-bit little endian unsigned integer value. | 80 ### MUTF-8 Encoding 82 Binary file format uses MUTF-8 (Modified UTF-8) encoding for strings. Encoding is described here: 84 * [JVM Specification](https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.4.7) [all …]
|