Home
last modified time | relevance | path

Searched full:code (Results 1 – 25 of 2803) sorted by relevance

12345678910>>...113

/arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/
Dexpect_output.txt14 function Function() { [native code] }
17 function RangeError() { [native code] }
20 function Error() { [native code] }
23 function Object() { [native code] }
26 function SyntaxError() { [native code] }
29 function TypeError() { [native code] }
32 function ReferenceError() { [native code] }
35 function URIError() { [native code] }
38 function Symbol() { [native code] }
41 function EvalError() { [native code] }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DErrorCodeTest.ets18 assertEQ(err.code, 0);
20 err.code = 10 as number;
21 assertEQ(err.code, 10);
30 assertEQ(err.code, 0);
38 assertEQ(err.code, 0);
46 assertEQ(err.code, 0);
53 let code: number = 10
57 throw new Error(code);
59 assertEQ(err.code, code);
65 throw new Error(code, message);
[all …]
/arkcompiler/runtime_core/compiler/tests/amd64/
Dasmjit_test.cpp52 // Runtime designed for JIT code execution. in TEST_F()
55 // Holds code and relocation information. in TEST_F()
56 CodeHolder code(GetAllocator()); in TEST_F() local
57 code.init(rt.environment()); in TEST_F()
59 x86::Assembler a(&code); in TEST_F()
67 // Add the generated code to the runtime. in TEST_F()
68 Error err = rt.add(&fn, &code); in TEST_F()
77 // Runtime designed for JIT code execution. in TEST_F()
80 // Holds code and relocation information. in TEST_F()
81 CodeHolder code(GetAllocator()); in TEST_F() local
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/core/
DIntlDisplayNames.cpp50 /** Language code (ISO 639) */
52 /** Script code (ISO 15924) */
54 /** Region/Country code (ISO 3166) */
56 /** Currency code (ISO 4217) */
73 * @brief Validates a script code according to ISO 15924 standard
78 * @param code The script code to validate
79 * @return true if the code is a valid ISO 15924 script code, false otherwise
81 [[nodiscard]] constexpr bool IsValidScriptCode(std::string_view code) noexcept in IsValidScriptCode() argument
84 if (code.length() != ISO_SCRIPT_CODE_LENGTH) { in IsValidScriptCode()
89 …return (std::isupper(code[FIRST_CHAR_INDEX]) != 0) && (std::islower(code[SECOND_CHAR_INDEX]) != 0)… in IsValidScriptCode()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/playground/backend/tests/fixtures/
Doverrides.py25 …async def compile_run_arkts(code: str, options: list, disasm: bool = False, verifier: bool = False…
29 "output": f"testing output: {code}, {options}",
30 "error": f"testing error: {code}",
34 "output": f"testing output: {code}",
35 "error": f"testing error: {code}",
43 "output": f"testing output: {code}",
44 "error": f"testing error: {code}",
45 "code": "disasm code",
50 "output": f"Verifier testing output: {code}",
51 "error": f"Verifier testing error: {code}",
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/store/selectors/
Dcode.test.ts16 …selectCompileLoading, selectRunLoading, selectCode, selectCompileRes, selectRunRes } from './code';
18 import { ICodeReq } from '../../models/code';
21 describe('Code Selectors', () => {
28 it('should select the compile loading state from code', () => {
30 mockState.code.isCompileLoading = true;
34 it('should select the run loading state from code', () => {
36 mockState.code.isRunLoading = true;
40 it('should select the current code from code state', () => {
41 expect(selectCode(mockState)).toBe('initial code');
42 mockState.code.code = 'updated code';
[all …]
Dcode.ts17 import { ICodeReq } from '../../models/code';
19 export const selectCompileLoading = (state: RootState): boolean => state.code.isCompileLoading;
20 export const selectRunLoading = (state: RootState): boolean => state.code.isRunLoading;
21 export const selectShareLoading = (state: RootState): boolean => state.code.isShareLoading;
22 export const selectCode = (state: RootState): string => state.code.code;
23 export const selectCompileRes = (state: RootState): ICodeReq | null => state.code.compileRes;
24 export const selectRunRes = (state: RootState): ICodeReq | null => state.code.runRes;
/arkcompiler/runtime_core/static_core/compiler/tests/amd64/
Dasmjit_test.cpp56 // Runtime designed for JIT code execution. in TEST_F()
59 // Holds code and relocation information. in TEST_F()
60 CodeHolder code(GetAllocator()); in TEST_F() local
61 code.init(rt.environment()); in TEST_F()
63 x86::Assembler a(&code); in TEST_F()
71 // Add the generated code to the runtime. in TEST_F()
72 Error err = rt.add(&fn, &code); in TEST_F()
81 // Runtime designed for JIT code execution. in TEST_F()
84 // Holds code and relocation information. in TEST_F()
85 CodeHolder code(GetAllocator()); in TEST_F() local
[all …]
/arkcompiler/runtime_core/compiler/tests/x86/
Dasmjit_test.cpp28 // Runtime designed for JIT code execution. in TEST_F()
31 // Holds code and relocation information. in TEST_F()
32 CodeHolder code; in TEST_F() local
33 code.init(rt.environment()); in TEST_F()
35 x86::Assembler a(&code); in TEST_F()
43 // Add the generated code to the runtime. in TEST_F()
44 Error err = rt.add(&fn, &code); in TEST_F()
53 // Runtime designed for JIT code execution. in TEST_F()
56 // Holds code and relocation information. in TEST_F()
57 CodeHolder code; in TEST_F() local
[all …]
/arkcompiler/runtime_core/static_core/compiler/tests/x86/
Dasmjit_test.cpp27 // Runtime designed for JIT code execution. in TEST_F()
30 // Holds code and relocation information. in TEST_F()
31 CodeHolder code; in TEST_F() local
32 code.init(rt.environment()); in TEST_F()
34 x86::Assembler a(&code); in TEST_F()
42 // Add the generated code to the runtime. in TEST_F()
43 Error err = rt.add(&fn, &code); in TEST_F()
52 // Runtime designed for JIT code execution. in TEST_F()
55 // Holds code and relocation information. in TEST_F()
56 CodeHolder code; in TEST_F() local
[all …]
/arkcompiler/runtime_core/static_core/libpandafile/
Dtypes.yaml17 code: 0x0
22 code: 0x01
27 code: 0x02
34 code: 0x03
42 code: 0x04
50 code: 0x05
58 code: 0x06
66 code: 0x07
74 code: 0x08
82 code: 0x09
[all …]
/arkcompiler/runtime_core/libpandafile/
Dtypes.yaml17 code: 0x0
22 code: 0x01
27 code: 0x02
34 code: 0x03
42 code: 0x04
50 code: 0x05
58 code: 0x06
66 code: 0x07
74 code: 0x08
82 code: 0x09
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/snippet_verifier/
DREADME.md31 …screpancies may arise between the stated and actual behavior of the given code examples. To automa…
35 - partN - The code block is the N part of the overall snippet
36 … stated in the specification. If the error type is not specified, but the code should not be compi…
37 - not-subset - this code is not subset of ts
40 .. code-block-meta:
46 .. code-block:: typescript
55 The parameters of the snippet should be declared immediately before the code block in .rst file.
59 .. code-block-meta:
63 .. code-block-meta:
68 .. code-block-meta:
[all …]
/arkcompiler/ets_frontend/ets2panda/bindings/test/expected/
DgetSyntacticDiagnostics.json22 "code": 1227, number
26 "href": "test code description"
44 "code": 1229, number
48 "href": "test code description"
66 "code": 1227, number
70 "href": "test code description"
88 "code": 1227, number
92 "href": "test code description"
110 "code": 1227, number
114 "href": "test code description"
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/06.type_inference/01.smart_types/
Dfunc_overload.params.yaml15 - code: |-
20 - code: |-
25 - code: |-
30 - code: |-
35 - code: |-
40 - code: |-
45 - code: |-
50 - code: |-
55 - code: |-
61 - code: |-
[all …]
Dun_num_ops.params.yaml20 code: |-
32 code: |-
39 - code: |-
43 - code: |-
50 - code: |-
58 - code: |-
64 - code: |-
71 - code: |-
78 - code: |-
86 - code: |-
[all …]
/arkcompiler/ets_runtime/test/sharedtest/sendable/
Dsendable.ts31 print('sendable inherit from sendable failed. err: ' + err + ', code: ' + err.code);
45 print('sendable inherit from non-sendable failed. err: ' + err + ', code: ' + err.code);
63 print('sendable change proto failed. err: ' + err + ', code: ' + err.code);
78 print('non-sendable inherit from non-sendable failed. err: ' + err + ', code: ' + err.code);
93 print('non-sendable inherit from sendable failed. err: ' + err + ', code: ' + err.code);
115 print('sendable contain sendable failed. err: ' + err + ', code: ' + err.code);
131 print('sendable contain non-sendable failed. err: ' + err + ', code: ' + err.code);
145 print('sendable contain static non-sendable failed. err: ' + err + ', code: ' + err.code);
156 print('sendable contain undefined failed. err: ' + err + ', code: ' + err.code);
187 print('sendable contain lexenv failed. err: ' + err + ', code: ' + err.code);
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/arkanalyzer/src/utils/
DAstTreeUtils.ts24 * get source file from code segment
26 * @param code source code
29 public static getASTNode(fileName: string, code: string): ts.SourceFile {
30 const key = this.getKeyFromCode(code);
35 sourceFile = this.createSourceFile(fileName, code);
57 public static createSourceFile(fileName: string, code: string): ts.SourceFile {
58 …return ts.createSourceFile(fileName, code, ts.ScriptTarget.Latest, true, undefined, ETS_COMPILER_O…
62 * convert source code to hash string
63 * @param code source code
66 private static getKeyFromCode(code: string): string {
[all …]
/arkcompiler/runtime_core/libabckit/src/
Dmacros.h31 // CC-OFFNXT(G.PRE.02) code readability
36 /* CC-OFFNXT(G.PRE.05) code generation */ \
39 // CC-OFFNXT(G.PRE.02) code readability
44 /* CC-OFFNXT(G.PRE.05) code generation */ \
47 // CC-OFFNXT(G.PRE.02) code readability
52 /* CC-OFFNXT(G.PRE.05) code generation */ \
55 // CC-OFFNXT(G.PRE.02) code readability
60 /* CC-OFFNXT(G.PRE.05) code generation */ \
63 // CC-OFFNXT(G.PRE.02) code readability
68 /* CC-OFFNXT(G.PRE.05) code generation */ \
[all …]
/arkcompiler/runtime_core/static_core/docs/bc_verification/
Dcflow_checks.md6 code
15 code
30 code
46 code
55 code
65 code
83 code
94 code |
102 into code, then they will be considered ok. Currently, due to imprecision
105 ### Code to exception handler
[all …]
/arkcompiler/runtime_core/docs/bc_verification/
Dcflow_checks.md6 code
15 code
30 code
46 code
55 code
65 code
83 code
94 code |
102 into code, then they will be considered ok. Currently, due to imprecision
105 ### Code to exception handler
[all …]
/arkcompiler/ets_runtime/test/sharedtest/sharedcollectionsexception/
Dsharedcollectionsexception.ts43 print("call boundAt fail. err: " + err + ", errCode: " + err.code);
52 print("Call boundConcat fail. err: " + err + ", errCode: " + err.code);
61 print("Call boundEntries failed. err: " + err + ", errCode: " + err.code);
70 print("Call boundFill failed. err: " + err + ", errCode: " + err.code);
79 print("Call boundFilter failed. err: " + err + ", errCode: " + err.code);
88 print("Call boundFind failed. err: " + err + ", errCode: " + err.code);
97 print("Call boundFindIndex failed. err: " + err + ", errCode: " + err.code);
106 print("Call boundForEach failed. err: " + err + ", errCode: " + err.code);
115 print("Call boundIndexOf failed. err: " + err + ", errCode: " + err.code);
124 print("Call boundJoin failed. err: " + err + ", errCode: " + err.code);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/store/actions/
Dcode.ts17 import {setCode, setCompileLoading, setCompileRes, setRunLoading, setRunRes} from '../slices/code';
18 import {codeService} from '../../services/code';
25 '@code/compileCode',
31 const codeState = state.code || '';
40 code: codeState?.code,
56 '@code/runCode',
62 const codeState = state.code || '';
71 code: codeState?.code,
89 '@code/setCode',
96 '@code/shareCode',
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/system_arkts/
Dguide.rst16 The main goal of "System |LANG|" is to help developers make their ArkTS code
21 to rewrite the code.
26 The original code requires modifications that keep the code within the Common
29 The original code requires modifications that are not within the Common
34 * **ets-subset-warnings** : Enable all ETS-warnings to keep the code in subset with |T…
53 1. Write some |LANG| code. E.g., you have the following chunk of code:
55 .. code-block:: typescript
72 4. Look through the ETS-Warnings in the output. For the code in the example
81 5. Rewrite the code as suggested by "System |LANG|". After rewriting |LANG|,
82 the code is as follows:
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/sdk/api/
D@ohos.base.ets20 code: number;
25 this.code = 0;
28 constructor(code: number, error: Error) {
30 this.code = code;
33 constructor(code: number, data: T, error: Error) {
35 this.code = code;

12345678910>>...113