Home
last modified time | relevance | path

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

12345678910>>...24

/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/escompat/
DArrayBuffer.sts202 public static native from(array: Object): ArrayBuffer;
218 internal native static create(byteLength: int): SharedMemory;
232 internal native atomicAddI8(index: int, value: byte): byte;
234 internal native atomicAndI8(index: int, value: byte): byte;
236 …internal native atomicCompareExchangeI8(index: int, expectedValue: byte, replacementValue: byte): …
238 internal native atomicExchangeI8(index: int, value: byte): byte;
240 internal native atomicLoadI8(index: int): byte;
242 internal native atomicOrI8(index: int, value: byte): byte;
244 internal native atomicStoreI8(index: int, value: byte): byte;
246 internal native atomicSubI8(index: int, value: byte): byte;
[all …]
DProcess.sts105 native close(): void;
130 internal native spawn(command: string, timeout: int, killSignal: int) : void;
132 private native killImpl(signal: int): void;
133 private native waitImpl(): number;
134 private native readOutput(): void;
135 private native readErrorOutput(): void;
219 static native getUidForName(v: string): number;
228 static native getThreadPriority(v: number): number;
237 static native getSystemConfig(name: number): number;
246 static native getEnvironmentVar(name: string): string;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/common/bouncing_peas/
Dbouncing_peas_unit_native.sts16 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/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
Dcalltype.js40 print("jscall 0 and native call1");
44 print("jscall 1 and native call2", a);
48 print("jscall 2 and native call3" ,a ,b);
52 print("jscall 3 and native callirange", a, b, c);
56 print("jscallirange and native callirange", a, b, c, d);
79 print("native callithisrange");
87 var b = new String("newobj native");
/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/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/stdlib/std/math/
Dmath.sts28 …* 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/runtime_core/static_core/plugins/ets/stdlib/std/core/
DGC.sts47 public static native getFreeHeapSize(): long;
52 public static native getUsedHeapSize(): long;
57 public static native getReservedHeapSize(): long;
98 private static native startGCImpl(cause: int, callback: Object | null): long throws;
106 public static native waitForFinishGC(gc_id: long): void;
121 public static native scheduleGcAfterNthAlloc(counter: int, cause: int): void throws;
130 public static native isScheduledGCTriggered(): boolean;
144 public static native postponeGCStart(): void;
156 public static native postponeGCEnd(): void;
169 public static native pinObject(obj: Object | null): void throws;
[all …]
DStringBuilder.sts72 public static native concatStrings(lhs: String, rhs: String): String;
93 public native append(s: String): StringBuilder;
102 public native append(i: boolean): StringBuilder;
111 public native append(i: byte): StringBuilder;
120 public native append(i: short): StringBuilder;
129 public native append(i: char): StringBuilder;
138 public native append(i: int): StringBuilder;
147 public native append(i: long): StringBuilder;
156 public native append(i: float): StringBuilder;
165 public native append(i: double): StringBuilder;
[all …]
DValue.sts20 native function ValueAPIGetFieldBoolean(obj: Object, i: long): boolean
22 native function ValueAPIGetFieldByte(obj: Object, i: long): byte
24 native function ValueAPIGetFieldShort(obj: Object, i: long): short
26 native function ValueAPIGetFieldChar(obj: Object, i: long): char
28 native function ValueAPIGetFieldInt(obj: Object, i: long): int
30 native function ValueAPIGetFieldFloat(obj: Object, i: long): float
32 native function ValueAPIGetFieldDouble(obj: Object, i: long): double
34 native function ValueAPIGetFieldLong(obj: Object, i: long): long
36 native function ValueAPIGetFieldObject(obj: Object, i: long): Object
39 native function ValueAPIGetFieldByNameBoolean(obj: Object, name: String): boolean
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/test_intrins/
Dtest_intrins.sts28 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/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 …]
Djs_variable_second_test.h279 … { "iterator0", { "function", "Function", "function [Symbol.iterator]( { [native code] }",
280 "function [Symbol.iterator]() { [native code] }" } },
339 { "iterator1", { "function", "Function", "function values( { [native code] }",
340 "function values() { [native code] }" } },
341 { "iterator3", { "function", "Function", "function values( { [native code] }",
342 "function values() { [native code] }" } },
343 { "iterator2", { "function", "Function", "function entries( { [native code] }",
344 "function entries() { [native code] }" } },
345 { "iterator4", { "function", "Function", "function values( { [native code] }",
346 "function values() { [native code] }" } },
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/napi/ets/
DEtsnapiNameTest.sts17 public native static objectArg(cb: Object | null): int;
19 public native static methodOverloaded(): int;
21 public native static methodOverloaded(i: int): int;
23 …public native static methodOverloaded(bool: boolean, b: byte, c: char, d: double, f: float, i: in…
25 public native static methodOverloaded(obj: Object | null, str: String, arr: double[]): int;
46 public native 中文函数2不带参数(): String;
55 native function nativeInGlobal(): int;
DInterfaceNativeTest.sts25 public native static callMethod(): void;
27 public native static testChar(c: char): void;
29 public native static testNewObject(): int;
31 public native static testStrUTFLen(str1: String, str2: String): int;
33 public native static testNewStrUTF(str: String): String;
35 public native static testGetStrUTF(str: String): int;
37 public native static testFloat(f1: float, f2: float, f3: float): int;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/class_operations/
Dclass_operations.sts26 native static void$(top: JSValue, qname: String): void;
27 native static num$(top: JSValue, qname: String): double;
28 native static any$(top: JSValue, qname: String): JSValue;
29 native static any$(top: JSValue, qname: String, v0: JSValue): JSValue;
30 native static any$(top: JSValue, qname: String, v0: String): JSValue;
31 native static any$(top: JSValue, qname: String, v0: double, v1: String): JSValue;
32 native static any$(top: JSValue, qname: String, v0: int[], v1: int): JSValue;
34 native static any$a(top: JSValue, qname: String, v0: JSValue): JSValue;
36 native static str$(top: JSValue, qname: String): String;
37 native static str$(top: JSValue, qname: String, v0: String): String;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/08.native_functions_and_methods/01.native_functions/
Dnat8.sts17 desc: A compile-time error occurs if a native function has a body.
21 native function bar(): Object throws;
23 native function foo(func: () => Object throws): Object rethrows; // native with rethrows
Dnat4.sts17 desc: A compile-time error occurs if a native function doesn't have return type.
21 native function foo(); // native without parameters
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/06.method_declarations/07.native_methods/
Dnative_method_declaration_with_keywords.sts19 desc: Native method declaraion with '{{mod}}' keyword.
20 …declaration that contains the keyword native also contains any one of the keywords abstract, open,…
25 {{mod}} native run(): void;
Dnative_method_declaration.sts17 desc: Native method declaraion.
18 assert: A method that is native is implemented in platform-dependent code, typically written in ano…
23 native run(): void;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/
DEffectiveTypesTest.sts17 public static native foo(arg: int): int;
19 public static native foo(arg: double): int;
21 public static native foo(): double;
23 public static native fooUnity(arg: double): double;
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_thread_state_test.cpp159 ThreadStateTransitionScope<JSThread, ThreadState::NATIVE> scope(thread); in HWTEST_F_L0()
160 EXPECT_TRUE(thread->GetState() == ThreadState::NATIVE); in HWTEST_F_L0()
203 EXPECT_TRUE(thread->GetState() == ThreadState::NATIVE); in HWTEST_F_L0()
205 if (mainState == ThreadState::NATIVE) { in HWTEST_F_L0()
209 EXPECT_TRUE(thread->GetState() == ThreadState::NATIVE); in HWTEST_F_L0()
292 EXPECT_TRUE(CheckAllThreadsState(ThreadState::NATIVE)); in HWTEST_F_L0()
295 EXPECT_TRUE(CheckAllThreadsState(ThreadState::NATIVE)); in HWTEST_F_L0()
297 EXPECT_TRUE(CheckAllThreadsState(ThreadState::NATIVE)); in HWTEST_F_L0()
304 EXPECT_TRUE(CheckAllThreadsState(ThreadState::NATIVE)); in HWTEST_F_L0()
307 EXPECT_TRUE(CheckAllThreadsState(ThreadState::NATIVE)); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/06.method_declarations/09.method_body/
Dnative_method_declaration_with_semicolon.sts17 desc: Native method declaraion with simply semicolon.
18 assert: The body of a method must be a semicolon if the method is abstract or native.
23 native run(): void;

12345678910>>...24