Home
last modified time | relevance | path

Searched full:should (Results 1 – 25 of 1258) sorted by relevance

12345678910>>...51

/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DNodeUtils.spec.ts26 it('should return false if node has no parent', function () {
30 it('should return ture when node.parent is PropertyAssignment', function () {
36 it('should return ture when node.parent is ComputedPropertyName', function () {
42 it('should return ture when node.parent is BindingElement', function () {
48 it('should return ture when node.parent is PropertySignature', function () {
54 it('should return ture when node.parent is MethodSignature', function () {
60 it('should return ture when node.parent is EnumMember', function () {
66 it('should return ture when node.parent is PropertyDeclaration', function () {
72 it('should return ture when node.parent is MethodDeclaration', function () {
78 it('should return ture when node.parent is SetAccessorDeclaration', function () {
[all …]
DFileUtils.2.spec.ts48 it('should return undefined if file does not exist', () => {
55 it('should return undefined if readJsonSync throws an error', () => {
63 it('should return JSON content if file exists and is valid', () => {
73 it('should return undefined for empty string', () => {
78 it('should return undefined for string without dot', () => {
83 it('should return undefined for path string without dot', () => {
88 it('should return undefined for string ending with a dot', () => {
93 it('should return extension for valid file path', () => {
98 it('should return extension for valid file name with multiple dots', () => {
105 it('should return true for relative paths starting with ./', () => {
[all …]
DOhsUtil.spec.ts33 it('should return false if classNode is an empty object', () => {
38 it('should return false if heritageClauses is undefined', () => {
43 it('should return false if classNode is undefined', () => {
47 it('should return false if heritageClause.types is undefined', () => {
53 it('should return false if classNode.heritageClause.types.member is undefined', () => {
59 it('should return true if classNode is set', () => {
71 it('should not add items to propertySet if type is undefined', () => {
79 it('should add to propertySet if member.name is set', () => {
100 it('should not add items to propertySet if elementAccessExpression is undefined', () => {
106 …it('should add to propertySet if elementAccessExpressionNode.argumentExpression is set string valu…
[all …]
DNameCacheUtils.spec.ts33 it('should write cache to file', function () {
46 it('should not write if cache is empty', function () {
58 it('should return undefined when file does not exist', () => {
63 it('should return parsed JSON object when file exists', () => {
75 it('should return an empty Map when input is undefined', () => {
81 it('should convert a JSON object to a Map with string keys and values', () => {
93 it('should update historyNameCache with new keys from identifierCache', () => {
111 it('should not modify historyNameCache if identifierCache is undefined', () => {
125 it('should update member method names in the cache', () => {
138 it('should not update member method names if they are in classInfoInMemberMethodCache', () => {
DPrinterUtils.spec.ts96 it('should throw an error if the event has not started', function () {
104 it('should calculate duration and memory usage correctly', () => {
115 it('should update filesTimeSum and maxTimeUsage when isFilesPrinter is true', () => {
126 it('should update maxMemoryUsage and maxMemoryFile when isFilesPrinter is true', () => {
136 it('should output data and print max time and memory usage for ALL_FILES_OBFUSCATION', () => {
153 it('should output data for CREATE_PRINTER', () => {
169 it('should return a string with formatted event data', () => {
181 it('should return the event stack', () => {
203 it('should add duration to the event sum', function () {
216 it('should print the summarized event data', function () {
[all …]
/arkcompiler/runtime_core/static_core/docs/
Ddesign-of-interpreter.md20 This section outlines common requirements that should be considered while designing the interpreter
23 1. The platform should scale from microcontrollers to hi-end mobile phones:
24 1. It should fit into 50Kb of ROM.
25 1. It should be able to run consuming 64Kb of RAM.
26 1. Program execution via bytecode interpretation should be enabled on all targets.
27 1. The platform should support multiple programming languages
33 1. Bytecode should allow the interpreter to run no slower than state of the art interpreters.
34 1. Bytecode should be compact in size to avoid bloating application code.
35 1. Bytecode description should have a single entry point to simplify maintenance
73 1. All entities in the executable file should be encoded and stored compactly to avoid bloating
[all …]
Dtask_manager.md3 …rld pause) soon - we should increase priority for `GC` tasks. And vice-versa if we do not expect `…
5 For Hybrid mode (i.e. we can execute both static and dynamic code) TaskManager also should take int…
16 The time is required to finish the task should be limited by some reasonable value, to make the who…
35 For managing worker threads we should provide machinery for:
/arkcompiler/runtime_core/docs/
Ddesign-of-interpreter.md20 This section outlines common requirements that should be considered while designing the interpreter
23 1. The platform should scale from microcontrollers to hi-end mobile phones:
24 1. It should fit into 50Kb of ROM.
25 1. It should be able to run consuming 64Kb of RAM.
26 1. Program execution via bytecode interpretation should be enabled on all targets.
27 1. The platform should support multiple programming languages
33 1. Bytecode should allow the interpreter to run no slower than state of the art interpreters.
34 1. Bytecode should be compact in size to avoid bloating application code.
35 1. Bytecode description should have a single entry point to simplify maintenance
73 1. All entities in the executable file should be encoded and stored compactly to avoid bloating
[all …]
/arkcompiler/runtime_core/static_core/isa/
Dasserts.rb35 assert('Non-prefixed instruction opcodes and prefixes should fit one byte') do
47 assert('All instructions for a prefix should fit one byte') do
53 assert('Prefixed instruction should have some prefix specified') do
59 assert('Prefix should be defined') do
67 assert('All prefixes should have unique name') do
71 assert('There should be non-zero gap between non-prefixed and prefixes') do
75 assert('There should be non-zero gap between public and private prefixes') do
113 assert('Dtype should be none when bytecode doesn\'t write into accumulator or registers') do
121 assert('Instruction::float? should play well with operand types') do
127 assert('Conditionals should be jumps') do # At least currently
[all …]
/arkcompiler/runtime_core/isa/
Dasserts.rb35 assert('Non-prefixed instruction opcodes and prefixes should fit one byte') do
47 assert('All instructions for a prefix should fit one byte') do
53 assert('Prefixed instruction should have some prefix specified') do
59 assert('Prefix should be defined') do
67 assert('All prefixes should have unique name') do
71 assert('There should be non-zero gap between non-prefixed and prefixes') do
75 assert('There should be non-zero gap between public and private prefixes') do
113 assert('Dtype should be none when bytecode doesn\'t write into accumulator or registers') do
121 assert('Instruction::float? should play well with operand types') do
127 assert('Conditionals should be jumps') do # At least currently
[all …]
/arkcompiler/ets_frontend/arkguard/test/ut/transformer/
DRenameFileNameTransformer.spec.ts129 it('should return null if mEnable is false', () => {
135 it('should return null if profile is null', () => {
141 it('should create globalFileNameMangledTable if not exist', () => {
151 it('should rename the node.fileName if it is a sourcefile and not in OhModules', () => {
164 it('should update declaration if node is ImportDeclaration', () => {
174 it('should update declaration if node is ExportDeclaration', () => {
184 it('should try update dynamic import if node is ImportCall', () => {
194 it('should update call expression if renamefilename', () => {
219 it('should return pakName if needPkgName is true', () => {
234 it('should correctly normalize OhmUrl', () => {
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/taskmanager/utils/
Dsp_mc_lock_free_queue.h70 // Atomic with acq_rel order reason: other threads should see correct value in PopUserScope()
75 // Atomic with acq_rel order reason: other threads should see correct value in ~PopUserScope()
97 * @brief Registers thread in queue, should be called only on time by one thread.
104 * @param val: value that should be pushed.
160 * @param atomicPtr: ref to prt that should be load
172 * @param ptr: pointer to QueueNode that should be retired
189 // Atomic with acq_rel order reason: other threads should be correct value in TryMovePopIndex()
204 // Atomic with acq_rel order reason: other threads should be correct value in CompareAndSetNextHead()
206 // Now we should correctly delete a current_head. in CompareAndSetNextHead()
233 // Atomic with release order reason: other threads should see correct value in SPMCLockFreeQueue()
[all …]
Dsp_sc_lock_free_queue.h53 // Atomic with release order reason: other threads should see correct value in SPSCLockFreeQueue()
55 // Atomic with release order reason: other threads should see correct value in SPSCLockFreeQueue()
69 // Atomic with release order reason: other threads should see correct value in Push()
72 // Atomic with release order reason: other threads should see correct value in Push()
78 // Atomic with release order reason: other threads should see correct value in Push()
99 // Atomic with release order reason: other threads should see correct value in Pop()
107 // Atomic with release order reason: other threads should see correct value in Pop()
/arkcompiler/runtime_core/static_core/runtime/include/
Dmethod.h180 // should become visible in Method()
197 // store which should become visible acquire in Method()
372 // should become visible in GetCompiledEntryPoint()
379 // should become visible in GetCompiledEntryPoint()
386 // store which should become visible acquire in SetCompiledEntryPoint()
407 // should become visible in GetCompilationStatus()
420 // should become visible in SetCompilationStatus()
424 // which should become visible acquire in SetCompilationStatus()
431 // should become visible in AtomicSetCompilationStatus()
479 // should become visible in GetAccessFlags()
[all …]
/arkcompiler/runtime_core/libpandabase/mem/
Dbase_mem_stats.cpp65 …quire order reason: data race with allocated_ with dependecies on reads after the load which should in GetAllocated()
72 …quire order reason: data race with allocated_ with dependecies on reads after the load which should in GetFreed()
84 // which should become visible in GetAllocatedHeap()
98 // which should become visible in GetFreedHeap()
113 …quire order reason: data race with allocated_ with dependecies on reads after the load which should in GetFootprint()
119 // should become visible in GetFootprint()
123 // should become visible in GetFootprint()
125 …quire order reason: data race with allocated_ with dependecies on reads after the load which should in GetFootprint()
Dgc_barrier.h32 …BARRIER_POSITION_PRE = 0x1, // Should be inserted before each store/load when reference stored/l…
33 …BARRIER_POSITION_POST = 0x0, // Should be inserted after each store/load when reference stored/lo…
40 WRITE_BARRIER = 0x1, // Should be used around store
41 READ_BARRIER = 0x0, // Should be used around load
57 * Should help to encode barrier for the compiler.
78 * Runtime should provide these parameters:
94 * Runtime should provide these parameters:
119 * Runtime should provide these parameters:
/arkcompiler/runtime_core/static_core/libpandabase/mem/
Dbase_mem_stats.cpp64 …quire order reason: data race with allocated_ with dependecies on reads after the load which should in GetAllocated()
71 …quire order reason: data race with allocated_ with dependecies on reads after the load which should in GetFreed()
83 // which should become visible in GetAllocatedHeap()
97 // which should become visible in GetFreedHeap()
112 …quire order reason: data race with allocated_ with dependecies on reads after the load which should in GetFootprint()
118 // should become visible in GetFootprint()
122 // should become visible in GetFootprint()
124 …quire order reason: data race with allocated_ with dependecies on reads after the load which should in GetFootprint()
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DnotNull.sts46 assert c == 40: "c should be 40";
142 assert ac == c'C' : "ac should be 'C'";
149 assert a == a_orig : "a should be the object referenced by a_orig";
153 assert c == c'C' : "c should be 'C'";
160 assert b.getA() == a : "getA should return the same object that was given to the constructor";
165 assert b.getA() == a2 : "getA should return the same object that was given to setA";
/arkcompiler/runtime_core/static_core/runtime/mem/gc/reference-processor/
Dreference_processor.h61 ASSERT_PRINT(false, "Should be implemented by subclasses"); in IsReference()
67 …* Predicate checks if we should add this reference to the queue (e.g. don't process to many refs o…
76 ASSERT_PRINT(false, "Should be implemented by subclasses"); in HandleReference()
81 …* Predicate checks if we should process all references at once (e.g. processing takes too much tim…
87 * Predicate checks which references should be processed
92 ASSERT_PRINT(false, "Should be implemented by subclasses"); in ProcessReferencesAfterCompaction()
/arkcompiler/ets_frontend/ets2panda/linter/test_regression/
D15431.sts22 static { // should report error `arkts-no-multiple-static-blocks`
30 this.a; // should report error arkts-no-standalone-this
42 static { // should report error
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/03.types/References_Types/unions/
Dunion_cast_01.sts27 let b1: Padding = a1 as string // should work
31 let b2: Padding = a2 as number // should work
35 let b3: Padding = a3 as number // should work
/arkcompiler/toolchain/tooling/test/client_utils/
Dtest_actions.h27 * {RECV} Should recv a message from server.
36 * {STRING_EQUAL} Expect string should equal recv string.
37 * {STRING_CONTAIN} Expect string should a substring of recv string.
38 * {CUSTOM_RULE} Recv string should match custom rule.
/arkcompiler/runtime_core/static_core/libpandabase/os/
Dmem.h47 * @param mem Pointer to memory region (should be aligned to page size)
56 * @param mem Pointer to memory region (should be aligned to page size)
64 * @param mem Pointer to memory region (should be aligned to page size)
72 * @param mem Pointer to memory region (should be aligned to page size)
80 * @param mem Pointer to memory region (should be aligned to page size)
314 * @param size - size in bytes, should be multiple of PAGE_SIZE
325 * @param size - size in bytes, should be multiple of PAGE_SIZE
326 * @param aligment_in_bytes - alignment in bytes, should be multiple of PAGE_SIZE
352 * @param min_mem minimal address for mmap attemps in first 4GB, should be multiple of PAGE_SIZE
353 * @param size size in bytes, should be multiple of PAGE_SIZE
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/snippet_verifier/
DREADME.md36 …d in the specification. If the error type is not specified, but the code should not be compiled, a…
55 The parameters of the snippet should be declared immediately before the code block in .rst file.
74 **Every snippet in .rst should be marked with ".. code-block-meta:"**, but there is cases when snip…
105 … separate code (such as code block - explanation - code block), but they should be tested as a sin…
148 *plugins/ets/doc/spec/3_types.rst* should not compile without any extra conditions
168 …n, there is an option to *specify the specific type of error if the code should not compile*(**NOT…
181 In this case compilation error should be *"SyntaxError: Field type annotation expected"* (**NOT IMP…
185 Subset code should be tested not only with es2panda but also with tsc. Not subset - shouldn't
215 …Skiplist file contains names of the snippets which should be skiped. For example, frontend status …
/arkcompiler/runtime_core/scripts/third-party-lists/
Dpublic22 # ** All URL-unsafe characters in lib_repo should be %-escaped
23 # ** commit_type should be one of: branch, tag, commit
26 # ** patch_mode should be one of: no_patches, with_patches
27 # ** submodule_mode should be one of: no_submodules, with_submodules:submodule1:submodule2:...

12345678910>>...51