Home
last modified time | relevance | path

Searched full:native (Results 1 – 25 of 881) sorted by relevance

12345678910>>...36

/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/stdlib/std/core/
DUnsafe.ets22 The memory management in the native context (and possible clashes with
27 export native function writeInt8(address: long, value: byte) : void;
28 export native function writeBoolean(address: long, value: boolean) : void;
29 export native function writeInt16(address: long, value: short) : void;
30 export native function writeInt32(address: long, value: int) : void;
31 export native function writeFloat32(address: long, value: float) : void;
32 export native function writeInt64(address: long, value: long) : void;
33 export native function writeFloat64(address: long, value: double) : void;
34 export native function writeNumber(address: long, value: number) : void;
35 export native function writeString(address: long, value: String) : int;
[all …]
DClass.ets28 private native getNameInternal(): string;
38 public native getLinker(): RuntimeLinker
43 public native initialize(): void
45 public static native of(obj: Object): Class
50 public static native current(): Class
55 public static native ofCaller(): Class | undefined
57 public native createInstance(): Object
62 public native getDescriptor(): string
DStringBuilder.ets84 public static native concatStrings(lhs: String, rhs: String): String;
105 public native append(s: String): StringBuilder;
107 private native append(s0: String, s1: String): StringBuilder;
108 private native append(s0: String, s1: String, s2: String): StringBuilder;
109 private native append(s0: String, s1: String, s2: String, s3: String): StringBuilder;
118 public native append(i: boolean): StringBuilder;
127 public native append(i: byte): StringBuilder;
136 public native append(i: short): StringBuilder;
145 public native append(i: char): StringBuilder;
154 public native append(i: int): StringBuilder;
[all …]
DGC.ets51 export native function getFreeHeapSize(): long;
56 export native function getUsedHeapSize(): long;
61 export native function getReservedHeapSize(): long;
100native function startGCImpl(cause: int, callback: Object | undefined, runInPlace: boolean): long t…
108 export native function waitForFinishGC(gcId: long): void;
120 native function scheduleGcAfterNthAllocImpl(counter: int, cause: int): void throws;
133 export native function isScheduledGCTriggered(): boolean;
146 export native function postponeGCStart(): void;
157 export native function postponeGCEnd(): void;
168 export native function pinObject(obj: Object): void throws;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/debug/
DDebuggerAPI.ets19 public static native getLocalBoolean(regNumber: long): boolean
21 public static native getLocalByte(regNumber: long): byte
23 public static native getLocalShort(regNumber: long): short
25 public static native getLocalChar(regNumber: long): char
27 public static native getLocalInt(regNumber: long): int
29 public static native getLocalFloat(regNumber: long): float
31 public static native getLocalDouble(regNumber: long): double
33 public static native getLocalLong(regNumber: long): long
35 public static native getLocalObject(regNumber: long): Object
37 public static native setLocalBoolean(regNumber: long, value: boolean): void
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/bind_ops/
Dclass_bind_native_methods_test.ets17 public static native foo(): int;
18 public static native long_foo(): long;
30 public native foo(): int;
31 public native long_foo(): long;
44 public native foo(): int;
45 public native long_foo(): long;
51 public native foo(): int;
52 public native long_foo(): long;
65 public native foo(x: int, y: int): int;
66 public native foo(x: int, y: int, z: int): int;
[all …]
Dmodule_bind_native_functions_test.ets16 export native function sum(a: int, b: int): int;
17 export native function sum(a: int, b: int, c: int): int;
18 export native function concat(s0: String, s1: String, s2: String): String;
19 export native function concat(s0: String, s1: String): String;
20 export native function recursiveFunction(value: int): int;
42 public native foo(): int;
43 public native long_foo(): long;
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/docs/
Dnative_call_opt_doc.md1 # Native Call Optimization
5native code in C/C++ languages in order to use some other native code (i.e. third-party native lib…
9 …head of Managed-to-Native calling convention transformations in calling Native methods from JIT/AO…
10 …ms (so, no virtual methods) / ret value), no coroutine state switch (managed-native and vice versa)
12 3. default (no annotation): objects are allowed, coroutine switches to native state (and back to ma…
20 There is a set of IR instructions and Intrinsics to divide Native call into small several parts.
23 - CompilerGetNativeMethod - resolves addres of native method; deoptimizes, if native pointer is nul…
25 - CompilerGetMethodNativePointer - loads native pointer from resolved method (this is an address wh…
26 - CompilerGetNativeApiEnv - loads native api environment from a coroutine
29 - CompilerCheckNativeException - checks native exception in coroutine; throws exception, if any
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DArrayBuffer.ets176 // Fallback to access through native pointer
196 // Fallback to access through native pointer
228 private final native setValues(other: ArrayBuffer, begin: int): void
230 private final native atImpl(pos: int): byte
232 private final native setImpl(pos: int, val: byte): void
254 private native static allocateNonMovable(length: int): FixedArray<byte>
256 /// @brief Returns native address of non-movable array
257 private native static getAddress(array: FixedArray<byte>): long
262 …* This native method initializes an ArrayBuffer using the provided byte array as the underlying da…
294 * to an ArrayBuffer using the native conversion for byte arrays.
[all …]
DConcurrencyHelpers.ets23 public static native mutexCreate(): Object;
24 public static native mutexLock(mutex: Object): void;
25 public static native mutexUnlock(mutex: Object): void;
37 public static native eventCreate(): Object;
38 public static native eventWait(event: Object): void;
39 public static native eventFire(event: Object): void;
42 public static native condVarCreate(): Object;
43 public static native condVarWait(condVar: Object, mutex: Object): void;
44 public static native condVarNotifyOne(condVar: Object, mutex: Object): void;
45 public static native condVarNotifyAll(condVar: Object, mutex: Object): void;
DProcess.ets109 native close(): void;
134 internal native spawn(command: string, timeout: int, killSignal: int): void;
136 private native killImpl(signal: int): void;
137 private native waitImpl(): number;
138 private native readOutput(): void;
139 private native readErrorOutput(): void;
212 native isAppUid(uid: number): boolean;
221 native getUidForName(v: string): number;
230 native getThreadPriority(v: number): number;
239 native getSystemConfig(name: number): number;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/core/
DIntl.cpp16 #include "plugins/ets/stdlib/native/core/Intl.h"
17 #include "plugins/ets/stdlib/native/core/IntlState.h"
18 #include "plugins/ets/stdlib/native/core/IntlNumberFormat.h"
19 #include "plugins/ets/stdlib/native/core/IntlLocaleMatch.h"
20 #include "plugins/ets/stdlib/native/core/IntlCollator.h"
21 #include "plugins/ets/stdlib/native/core/IntlSegmenter.h"
22 #include "plugins/ets/stdlib/native/core/IntlCommon.h"
23 #include "plugins/ets/stdlib/native/core/IntlLocale.h"
24 #include "plugins/ets/stdlib/native/core/IntlPluralRules.h"
25 #include "plugins/ets/stdlib/native/core/IntlDateTimeFormat.h"
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/containers/
DConcurrencyHelpers.ets21 public static native mutexCreate(): Object;
22 public static native mutexLock(mutex: Object): void;
23 public static native mutexUnlock(mutex: Object): void;
35 public static native eventCreate(): Object;
36 public static native eventWait(event: Object): void;
37 public static native eventFire(event: Object): void;
40 public static native condVarCreate(): Object;
41 public static native condVarWait(condVar: Object, mutex: Object): void;
42 public static native condVarNotifyOne(condVar: Object, mutex: Object): void;
43 public static native condVarNotifyAll(condVar: Object, mutex: Object): void;
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/debug/concurrency/
DCoroutineExtras.ets23 public static native getWorkerId(): int;
25 public static native setSchedulingPolicy(policy: int): void;
27 public static native getCoroutineId(): int;
29 public static native isMainWorker(): boolean;
35 public static native scaleWorkersPool(scaler: int): void;
39 public static native stopTaskpool(): void;
41 public static native increaseTaskpoolWorkersToN(workersNum: int): void;
43 public static native workerHasExternalScheduler(): boolean;
45 public static native isTaskpoolUsingLaunchMode(): boolean;
47 public static native isTaskpoolSupportingInterop(): boolean;
/arkcompiler/ets_runtime/test/moduletest/calltype/
Dexpect_output.txt15 jscall 0 and native call1
16 jscall 1 and native call2 1
17 jscall 2 and native call3 1 2
18 jscall 3 and native callirange 1 2 3
19 jscallirange and native callirange 1 2 3 4
21 native callithisrange
24 newobj native
/arkcompiler/runtime_core/static_core/plugins/ets/tests/common/bouncing_peas/
Dbouncing_peas_unit_native.ets16 native function _skoala_createRedrawerPeer(redrawer: Object/*any*/): long/*KNativePointer*/;
17 native function _skoala_drawPicture(picture: long/*KNativePointer*/, data: long/*KNativePointer*/, …
18 native function _skoala_getFrame(peer: long/*KNativePointer*/, a: int, b: int): long/*KNativePointe…
19 native function _skoala_getFrameWidth(peer: long/*KNativePointer*/, frame: long/*KNativePointer*/):…
20 native function _skoala_getFrameHeight(peer: long/*KNativePointer*/, frame: long/*KNativePointer*/)…
21 native function _skoala_initRedrawer(width: int, height: int, scale: float, peer: long/*KNativePoin…
22 native function _skoala_providePeerFactory(func: long/*KNativePointer*/, arg: long/*KNativePointer*…
23 native function _skoala_setPlatformAPI(api: Object/*any*/): void;
24 native function _skoala_Canvas__1nDrawDrawable(ptr: long/*KNativePointer*/, drawablePtr: long/*KNat…
25 native function _skoala_Canvas__1nRestore(ptr: long/*KNativePointer*/): void;
[all …]
/arkcompiler/runtime_core/static_core/pandastdlib/
Dpandastdlib.pa588 .function i32 Math.absI32(i32 a0) <native>
590 .function i64 Math.absI64(i64 a0) <native>
592 .function f32 Math.absF32(f32 a0) <native>
594 .function f64 Math.absF64(f64 a0) <native>
596 .function f32 Math.fsin(f32 a0) <native>
598 .function f64 Math.sin(f64 a0) <native>
600 .function f32 Math.fcos(f32 a0) <native>
602 .function f64 Math.cos(f64 a0) <native>
604 .function f32 Math.fpow(f32 a0, f32 a1) <native>
606 .function f64 Math.pow(f64 a0, f64 a1) <native>
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/concurrency/
DConcurrencyHelpers.ets23 public static native mutexCreate(): Object;
24 public static native mutexLock(mutex: Object): void;
25 public static native mutexUnlock(mutex: Object): void;
27 public static native eventCreate(): Object;
28 public static native eventWait(event: Object): void;
29 public static native eventFire(event: Object): void;
31 public static native spinlockCreate(): Object;
36 private static native spinlockGuard(spinlock: Object, callback: Object): void;
48 static native asyncWorkNativeInvoke(nativeCb: long, data: long, needNativeScope: boolean): void;
/arkcompiler/runtime_core/pandastdlib/
Dpandastdlib.pa572 .function i32 Math.absI32(i32 a0) <native>
574 .function i64 Math.absI64(i64 a0) <native>
576 .function f32 Math.absF32(f32 a0) <native>
578 .function f64 Math.absF64(f64 a0) <native>
580 .function f32 Math.fsin(f32 a0) <native>
582 .function f64 Math.sin(f64 a0) <native>
584 .function f32 Math.fcos(f32 a0) <native>
586 .function f64 Math.cos(f64 a0) <native>
588 .function f32 Math.fpow(f32 a0, f32 a1) <native>
590 .function f64 Math.pow(f64 a0, f64 a1) <native>
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/benchmarks/ani/basic_call/
DBasicCall.ets18 * @Tags ani, native
26 // NOTE (oignatenko) #699 enhance VMB to benchmark native methods directly
27 public static native basic_call_s(a: long, b: string, c: Object): string;
29 public static native basic_call_sc(a: long, b: int, c: long): long;
31 public static native basic_call_sf(a: long, b: string, c: Object): string;
32 public native basic_call_v(a: long, b: string, c: Object): string;
34 public native basic_call_vf(a: long, b: string, c: Object): string;
35 public final native basic_call_v_final(a: long, b: string, c: Object): string;
37 public final native basic_call_vf_final(a: long, b: string, c: Object): string;
38 public static native basic_call_baseline(): long;
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/math/
Dmath.ets28 …* Implemented as native function, @see `abs()` intrinsic [declaration](https://gitee.com/openharm…
36 export native function abs(v: double): double;
46 …* Implemented as native function, @see `acosh()` intrinsic [declaration](https://gitee.com/openha…
54 export native function acosh(v: double): double;
64 …* Implemented as native function, @see `acos()` intrinsic [declaration](https://gitee.com/openhar…
72 export native function acos(v: double): double;
82 …* Implemented as native function, @see `asinh()` intrinsic [declaration](https://gitee.com/openha…
90 export native function asinh(v: double): double;
99 export native function asin(v: double): double;
108 export native function atan2(y: double, x: double): double;
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
Dnative_constructor_empty_body.ets21 native constructor()/* @@ label */{
24 native constructor(x:number)/* @@ label1 */{
28 native constructor(x:number,y:number)/* @@ label2 */{
33 /* @@@ label Error TypeError: Native constructor declaration cannot have a body. */
34 /* @@@ label1 Error TypeError: Native constructor declaration cannot have a body. */
35 /* @@@ label2 Error TypeError: Native constructor declaration cannot have a body. */
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/test_intrins/
Dtest_intrins.ets28 native static void$(top: JSValue, qname: String): void;
29 native static void$a(top: JSValue, qname: String, v0: JSValue): void;
30 native static void$an(top: JSValue, qname: String, a0: JSValue, a1: double): void;
31 native static void$n(top: JSValue, qname: String, v0: double): void;
32 native static void$s(top: JSValue, qname: String, v0: String): void;
34 native static bool$a(top: JSValue, qname: String, v0: JSValue): boolean;
36 native static num$a(top: JSValue, qname: String, v0: JSValue): double
37 native static num$an(top: JSValue, qname: String, a0: JSValue, a1: double): double;
38 native static num$ann(top: JSValue, qname: String, a0: JSValue, a1: double, a2: double): double;
39 native static num$nn(top: JSValue, qname: String, a0: double, a1: double): double;
[all …]
/arkcompiler/toolchain/tooling/dynamic/test/testcases/
Djs_container_test.h169 { "ArrayList", { "function", "Function", "function ArrayList( { [native code] }",
170 "function ArrayList( { [native code] }" } },
171 { "Deque", { "function", "Function", "function Deque( { [native code] }",
172 "function Deque( { [native code] }" } },
173 { "HashMap", { "function", "Function", "function HashMap( { [native code] }",
174 "function HashMap( { [native code] }" } },
175 { "HashSet", { "function", "Function", "function HashSet( { [native code] }",
176 "function HashSet( { [native code] }" } },
177 { "LightWeightMap", { "function", "Function", "function LightWeightMap( { [native code] }",
178 "function LightWeightMap( { [native code] }" } },
[all …]

12345678910>>...36