Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 164) sorted by relevance

1234567

/arkcompiler/runtime_core/compiler/tests/amd64/
Dasmjit_test.cpp56 CodeHolder code(GetAllocator()); in TEST_F() local
57 code.init(rt.environment()); in TEST_F()
59 x86::Assembler a(&code); in TEST_F()
68 Error err = rt.add(&fn, &code); in TEST_F()
81 CodeHolder code(GetAllocator()); in TEST_F() local
82 code.init(rt.environment()); in TEST_F()
85 x86::Assembler a(&code); in TEST_F()
90 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
111 Error err = rt.add(&fn, &code); in TEST_F()
122 CodeHolder code(GetAllocator()); in TEST_F() local
[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
112 code
[all …]
Dabsint_checks.md7 From security point of view, this checks guarantee expected ranges of values in code and absence of…
31 Some code may exibit behavior of permanently throwing of exceptions, like always throwing NPE.
33 …is definitely not normal mode of control-flow in code, so verifier can detect such situations (whe…
/arkcompiler/runtime_core/compiler/tests/x86/
Dasmjit_test.cpp32 CodeHolder code; in TEST_F() local
33 code.init(rt.environment()); in TEST_F()
35 x86::Assembler a(&code); in TEST_F()
44 Error err = rt.add(&fn, &code); in TEST_F()
57 CodeHolder code; in TEST_F() local
58 code.init(rt.environment()); in TEST_F()
61 x86::Assembler a(&code); in TEST_F()
66 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
87 Error err = rt.add(&fn, &code); in TEST_F()
99 CodeHolder code; in TEST_F() local
[all …]
/arkcompiler/ets_frontend/ts2panda/templates/
Ddiagnostic.ts.erb19 code:number;
23 …constructor(irnode:ts.Node | undefined, code:number, file?:ts.SourceFile | undefined, args?:(strin…
24 this.code = code
88 function diag(code:number, category:ts.DiagnosticCategory, key:string, message:string, reportsUnnec…
89 …return { code: code, category: category, key: key, message: message, reportsUnnecessary: reportsUn…
122 % code = data[1]["code"]
123 <%= propName %> = <%= code %>,
127 export function getDiagnostic(code:DiagnosticCode): ts.DiagnosticMessage|undefined {
128 switch (code) {
130 % def createKey(name,code)
[all …]
DbuiltinsMap.ts.erb42 let code = (builtinsCodeMap as any)[key][ins.mnemonic];
43 if (code != undefined) {
44 return code;
51 let code = this.getSubCode(ins);
52 if ((code == undefined) || (code >= 256)) {
56 let codeImm = new ir.Imm(ir.ResultType.Int, code);
/arkcompiler/ets_frontend/test262/
Deshost.patch44 + genTempFileName(code){
45 + let file = code.file;
46 + let scenario = code.scenario === 'strict mode' ? '' : code.scenario;
60 evalScript(code, options = {}) {
63 + let fileBase = path.basename(code.file);
64 + let originalFilePath = code.file.split(fileBase)[0];
65 + let tempFile = this.genTempFileName(code);
81 if (typeof code === 'object' && code.contents) {
82 let {attrs, contents, file} = code;
89 - // When testing module or dynamic import code that imports itself,
[all …]
DdynamicImport_tests.txt129 nested-else-script-code-valid.js
130 nested-with-script-code-valid.js
132 nested-async-gen-await-script-code-valid.js
136 nested-async-function-script-code-valid.js
137 nested-async-function-await-script-code-valid.js
143 nested-arrow-assignment-expression-script-code-valid.js
146 nested-while-script-code-valid.js
147 nested-async-arrow-function-return-await-script-code-valid.js
152 nested-arrow-script-code-valid.js
153 top-level-script-code-valid.js
[all …]
/arkcompiler/runtime_core/docs/
Druntime-compiled_code-interaction.md1 # Interaction of compiled code and the runtime
5 During execution compiled code and Panda runtime should interact with each other. This document des…
8 * The structure of compiled code stack frames and stack traversing
9 * Transition from the interpeter to compiled code and vise versa
17 Panda runtime as a set of functions aimed to execute managed code. The runtime consists of several …
23 The compiler is aimed to translate managed function's bytecode to native code. The compiler has an …
25 changes its entrypoint to newly generated code. Next time when the function gets called native code
28 Panda runtime and managed code must call functions according to the target calling convention.
29 Compiled code of a managed function must accept one extra argumnent: the pointer to `panda::Method`…
34 When the compiler generates native code for this function for ARM target it must consider that
[all …]
Don-stack-replacement.md7 Under the OSR, we mean the transition from interpreter code to optimized code. Opposite transition …
51 Once compilation is triggered and OSR compiled code is already set, we begin On-Stack Replacement p…
61 To ensure all loops in the compiled code may be entered from the interpreter, we need to avoid loop…
81 No code is generated in place of OsrSaveState, but a special OsrEntryStub entity is created,
82 which is necessary to generate an OSR entry code.
99 interpreter frame by cframe on the stack. When OSR is occurred we call OSR compiled code, and once …
160 c2i - compiled to interpreter code bridge
162 i2c - interpreter to compiled code bridge
Dcfi_directives.md5 In some situations **hand-written** assembly code is preferred to compiler-generated, i.e. for perf…
6 In case of **compiler-generated** code compilers emit special **debug symbols** in resulting binary…
38 These bridges return control flow to code which has not called them.
Daot.md23 - `.text` - Contains compiled native code. Code of each compiled method is placed sequentially into…
30 - `code` - points to the start of `.text` section
89 ; Function executable code |
108 AOT-compiled code may use special PLT-slots to load resolved string without runtime calls.
162 …ed `ark_aotdump`, that aims to dump content of AOT files in yaml format. It can print compiled code
163 as disassembly(`--show-code disasm`) or in base64 binary(`--show-code binary`)
167 `ark_aotdump --show-code disasm file.an`
169 Sometimes it is interesting to see what code had generated for specific IR instruction, to do so th…
170 `--compiler-disasm-dump` that dumps disassembler, IR instruction and all generated native code for …
173 enables printing byte code instruction after ir instruction in dump ir. There is one more option `-…
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/
Dassembler_aarch64.cpp676 uint32_t code = Sf(!rd.IsW()) | op | imm_field | hw_field | Rd(rd.GetId()); in MovWide() local
677 EmitU32(code); in MovWide()
716 uint32_t code = Sf(!rd.IsW()) | op | imm | Rn(rn.GetId()) | Rd(rd.GetId()); in BitWiseOpImm() local
717 EmitU32(code); in BitWiseOpImm()
724 uint32_t code = Sf(!rd.IsW()) | op | shift_field | Rm(operand.Reg().GetId()) | in BitWiseOpShift() local
726 EmitU32(code); in BitWiseOpShift()
731 uint32_t code = Sf(!rd.IsW()) | LSL_Reg | Rm(rm.GetId()) | Rn(rn.GetId()) | Rd(rd.GetId()); in Lsl() local
732 EmitU32(code); in Lsl()
737 uint32_t code = Sf(!rd.IsW()) | LSR_Reg | Rm(rm.GetId()) | Rn(rn.GetId()) | Rd(rd.GetId()); in Lsr() local
738 EmitU32(code); in Lsr()
[all …]
/arkcompiler/toolchain/build/compile_script/
Dark.py330 code = _call("{0} clean {1}".format(self.gn_binary_path, out_path))
331 if code != 0:
333 sys.exit(code)
345 code = call_with_output(
349 if code != 0:
351 sys.exit(code)
364 code = call_with_output(ninja_cmd, build_log_path)
365 if code != 0:
367 sys.exit(code)
398 code = call_with_output(test262_cmd, test262_log_path)
[all …]
/arkcompiler/ets_runtime/docs/
Doverview.md5 …er toolchain and JS runtime. The JS compiler toolchain compiles JS source code into ArkCompiler by…
10 The source code compiler of ArkCompiler JS Runtime receives JS source code, based on which ts2abc g…
30 … of the Stub compiler, optimized compilation framework based on the Circuit IR, and code generator.
45 …e. To ensure security and performance, ArkCompiler JS Runtime selects the code that supports stric…
47code with JS runtime. ts2abc is planned to analyze and obtain the TS type information when compili…
49 …K-JS is able to share immutable objects, methods, and bytecodes (built-in code blocks and constant…
51code to access and operate TS objects in OpenHarmony. ArkCompiler JS Runtime is planned to statica…
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DliteralTypeWidening.ts370 type Obj = { code: LangCode }
389 const arr: Obj[] = langCodes.map(code => ({ code }))
391 AssertType(langCodes.map(code => ({ code })), "{ code: union; }[]");
393 AssertType(code => ({ code }), "(union) => { code: union; }");
394 AssertType(code, "union");
395 AssertType(({ code }), "{ code: union; }");
396 AssertType({ code }, "{ code: union; }");
397 AssertType(code, "union");
/arkcompiler/ets_runtime/ecmascript/
Djs_displaynames.cpp239 const JSHandle<EcmaString> &code) in CanonicalCodeForDisplayNames() argument
244 std::string codeSt = intl::LocaleHelper::ConvertToStdString(code); in CanonicalCodeForDisplayNames()
248 THROW_TYPE_ERROR_AND_RETURN(thread, "not match the language id", code); in CanonicalCodeForDisplayNames()
251 THROW_TYPE_ERROR_AND_RETURN(thread, "not match the unicode_language_id", code); in CanonicalCodeForDisplayNames()
256 if (!intl::LocaleHelper::IsStructurallyValidLanguageTag(code)) { in CanonicalCodeForDisplayNames()
257 THROW_TYPE_ERROR_AND_RETURN(thread, "not a structurally valid", code); in CanonicalCodeForDisplayNames()
259 … JSHandle<EcmaString> codeStr = intl::LocaleHelper::CanonicalizeUnicodeLocaleId(thread, code); in CanonicalCodeForDisplayNames()
269 std::string regionCode = intl::LocaleHelper::ConvertToStdString(code); in CanonicalCodeForDisplayNames()
271 THROW_RANGE_ERROR_AND_RETURN(thread, "invalid region", code); in CanonicalCodeForDisplayNames()
281 std::string scriptCode = intl::LocaleHelper::ConvertToStdString(code); in CanonicalCodeForDisplayNames()
[all …]
/arkcompiler/ets_runtime/test/moduletest/linkedhashtable/
Dlinkedhashtable.js26 let flag1 = (parseObj.code === 800000005) &
27 map.get(800000005) === map.get(parseObj.code);
/arkcompiler/ets_frontend/es2panda/test/
Dtest262harness.js19 evalScript(code) { argument
21 global.evalScript(code);
/arkcompiler/ets_frontend/testTs/
DREADME.md4 1. skip_tests.json:avoids code files and does not perform operations on TS files stored in the file.
5 2. import_tests.json:Is the path to the TS code file where import files are stored to add import fi…
8 1. Compile TS2ABC warehouse in hongmeng system code root directory. Delete the out directory and ru…
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_errors.cpp23 JSHandle<JSTaggedValue> code(thread, JSTaggedValue(errorCode)); in BusinessError() local
27 JSObject::CreateDataPropertyOrThrow(thread, error, JSHandle<JSTaggedValue>::Cast(key), code); in BusinessError()
/arkcompiler/runtime_core/tests/checked/
Difcvt.pa25 # without variable, you can write only such code.
26 # Equivalent code with variable:
44 # without variable, you can write only such code.
45 # Equivalent code with variable:
/arkcompiler/toolchain/tooling/test/
Dprotocol_handler_test.cpp99 ResponseCode code = ResponseCode::NOK; in HWTEST_F_L0() local
101 DispatchResponse response = DispatchResponse::Create(code, msg); in HWTEST_F_L0()
105 code = ResponseCode::OK; in HWTEST_F_L0()
106 DispatchResponse response1 = DispatchResponse::Create(code, msg); in HWTEST_F_L0()
/arkcompiler/runtime_core/compiler/tests/
Daot_test.cpp255 auto code = cls.FindMethodCodeEntry(0); in TEST_F() local
256 ASSERT_FALSE(code == nullptr); in TEST_F()
257 ASSERT_EQ(method_name, reinterpret_cast<const char *>(code)); in TEST_F()
261 auto code = cls.FindMethodCodeEntry(1); in TEST_F() local
262 ASSERT_FALSE(code == nullptr); in TEST_F()
263 ASSERT_EQ(std::memcmp(x86_add.data(), code, x86_add.size()), 0); in TEST_F()
265 auto func_add = (int (*)(int, int))code; in TEST_F()
601 auto code = cls.FindMethodCodeEntry(0); in TEST_F() local
602 ASSERT_FALSE(code == nullptr); in TEST_F()
603 ASSERT_EQ(method_name, reinterpret_cast<const char *>(code)); in TEST_F()
[all …]
/arkcompiler/ets_runtime/tools/circuit_viewer/src/
Dindex.js52 function myKey(type, code) { argument
53 MainEditor.gi().onKey(code);

1234567