• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef V8_WASM_WASM_EXTERNAL_REFS_H_
6 #define V8_WASM_WASM_EXTERNAL_REFS_H_
7 
8 #include <stdint.h>
9 
10 #include "src/globals.h"
11 
12 namespace v8 {
13 namespace internal {
14 namespace wasm {
15 
16 void f32_trunc_wrapper(Address data);
17 
18 void f32_floor_wrapper(Address data);
19 
20 void f32_ceil_wrapper(Address data);
21 
22 void f32_nearest_int_wrapper(Address data);
23 
24 void f64_trunc_wrapper(Address data);
25 
26 void f64_floor_wrapper(Address data);
27 
28 void f64_ceil_wrapper(Address data);
29 
30 void f64_nearest_int_wrapper(Address data);
31 
32 void int64_to_float32_wrapper(Address data);
33 
34 void uint64_to_float32_wrapper(Address data);
35 
36 void int64_to_float64_wrapper(Address data);
37 
38 void uint64_to_float64_wrapper(Address data);
39 
40 int32_t float32_to_int64_wrapper(Address data);
41 
42 int32_t float32_to_uint64_wrapper(Address data);
43 
44 int32_t float64_to_int64_wrapper(Address data);
45 
46 int32_t float64_to_uint64_wrapper(Address data);
47 
48 int32_t int64_div_wrapper(Address data);
49 
50 int32_t int64_mod_wrapper(Address data);
51 
52 int32_t uint64_div_wrapper(Address data);
53 
54 int32_t uint64_mod_wrapper(Address data);
55 
56 uint32_t word32_ctz_wrapper(Address data);
57 
58 uint32_t word64_ctz_wrapper(Address data);
59 
60 uint32_t word32_popcnt_wrapper(Address data);
61 
62 uint32_t word64_popcnt_wrapper(Address data);
63 
64 uint32_t word32_rol_wrapper(Address data);
65 
66 uint32_t word32_ror_wrapper(Address data);
67 
68 void float64_pow_wrapper(Address data);
69 
70 typedef void (*WasmTrapCallbackForTesting)();
71 
72 void set_trap_callback_for_testing(WasmTrapCallbackForTesting callback);
73 
74 void call_trap_callback_for_testing();
75 
76 }  // namespace wasm
77 }  // namespace internal
78 }  // namespace v8
79 
80 #endif  // V8_WASM_WASM_EXTERNAL_REFS_H_
81