blob: e8363d5936788614f88e86af45cb0626ef7046d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if !V8_ENABLE_WEBASSEMBLY
#error This header should only be included if WebAssembly is enabled.
#endif // !V8_ENABLE_WEBASSEMBLY
#ifndef V8_WASM_WASM_EXTERNAL_REFS_H_
#define V8_WASM_WASM_EXTERNAL_REFS_H_
#include <stdint.h>
#include "src/common/globals.h"
namespace v8 {
namespace internal {
namespace wasm {
V8_EXPORT_PRIVATE void f32_trunc_wrapper(Address data);
V8_EXPORT_PRIVATE void f32_floor_wrapper(Address data);
V8_EXPORT_PRIVATE void f32_ceil_wrapper(Address data);
V8_EXPORT_PRIVATE void f32_nearest_int_wrapper(Address data);
V8_EXPORT_PRIVATE void f64_trunc_wrapper(Address data);
V8_EXPORT_PRIVATE void f64_floor_wrapper(Address data);
V8_EXPORT_PRIVATE void f64_ceil_wrapper(Address data);
V8_EXPORT_PRIVATE void f64_nearest_int_wrapper(Address data);
V8_EXPORT_PRIVATE void int64_to_float32_wrapper(Address data);
V8_EXPORT_PRIVATE void uint64_to_float32_wrapper(Address data);
V8_EXPORT_PRIVATE void int64_to_float64_wrapper(Address data);
V8_EXPORT_PRIVATE void uint64_to_float64_wrapper(Address data);
V8_EXPORT_PRIVATE int32_t float32_to_int64_wrapper(Address data);
V8_EXPORT_PRIVATE int32_t float32_to_uint64_wrapper(Address data);
V8_EXPORT_PRIVATE int32_t float64_to_int64_wrapper(Address data);
V8_EXPORT_PRIVATE int32_t float64_to_uint64_wrapper(Address data);
V8_EXPORT_PRIVATE void float32_to_int64_sat_wrapper(Address data);
V8_EXPORT_PRIVATE void float32_to_uint64_sat_wrapper(Address data);
V8_EXPORT_PRIVATE void float64_to_int64_sat_wrapper(Address data);
V8_EXPORT_PRIVATE void float64_to_uint64_sat_wrapper(Address data);
V8_EXPORT_PRIVATE int32_t int64_div_wrapper(Address data);
V8_EXPORT_PRIVATE int32_t int64_mod_wrapper(Address data);
V8_EXPORT_PRIVATE int32_t uint64_div_wrapper(Address data);
V8_EXPORT_PRIVATE int32_t uint64_mod_wrapper(Address data);
V8_EXPORT_PRIVATE uint32_t word32_ctz_wrapper(Address data);
V8_EXPORT_PRIVATE uint32_t word64_ctz_wrapper(Address data);
V8_EXPORT_PRIVATE uint32_t word32_popcnt_wrapper(Address data);
V8_EXPORT_PRIVATE uint32_t word64_popcnt_wrapper(Address data);
V8_EXPORT_PRIVATE uint32_t word32_rol_wrapper(Address data);
V8_EXPORT_PRIVATE uint32_t word32_ror_wrapper(Address data);
V8_EXPORT_PRIVATE void word64_rol_wrapper(Address data);
V8_EXPORT_PRIVATE void word64_ror_wrapper(Address data);
V8_EXPORT_PRIVATE void float64_pow_wrapper(Address data);
V8_EXPORT_PRIVATE void f64x2_ceil_wrapper(Address data);
V8_EXPORT_PRIVATE void f64x2_floor_wrapper(Address data);
V8_EXPORT_PRIVATE void f64x2_trunc_wrapper(Address data);
V8_EXPORT_PRIVATE void f64x2_nearest_int_wrapper(Address data);
V8_EXPORT_PRIVATE void f32x4_ceil_wrapper(Address data);
V8_EXPORT_PRIVATE void f32x4_floor_wrapper(Address data);
V8_EXPORT_PRIVATE void f32x4_trunc_wrapper(Address data);
V8_EXPORT_PRIVATE void f32x4_nearest_int_wrapper(Address data);
// The return type is {int32_t} instead of {bool} to enforce the compiler to
// zero-extend the result in the return register.
int32_t memory_init_wrapper(Address data);
// The return type is {int32_t} instead of {bool} to enforce the compiler to
// zero-extend the result in the return register.
int32_t memory_copy_wrapper(Address data);
// The return type is {int32_t} instead of {bool} to enforce the compiler to
// zero-extend the result in the return register.
int32_t memory_fill_wrapper(Address data);
using WasmTrapCallbackForTesting = void (*)();
V8_EXPORT_PRIVATE void set_trap_callback_for_testing(
WasmTrapCallbackForTesting callback);
V8_EXPORT_PRIVATE void call_trap_callback_for_testing();
} // namespace wasm
} // namespace internal
} // namespace v8
#endif // V8_WASM_WASM_EXTERNAL_REFS_H_
|