blob: d48da560ec2f8bb5b94913bb9f032b087d3ff992 (
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
|
/*
* Copyright 2015 WebAssembly Community Group participants
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef wasm_asmjs_shared_constants_h
#define wasm_asmjs_shared_constants_h
#include "support/istring.h"
namespace wasm {
extern IString TOPMOST;
extern IString INT8ARRAY;
extern IString INT16ARRAY;
extern IString INT32ARRAY;
extern IString UINT8ARRAY;
extern IString UINT16ARRAY;
extern IString UINT32ARRAY;
extern IString FLOAT32ARRAY;
extern IString FLOAT64ARRAY;
extern IString ARRAY_BUFFER;
extern IString ASM_MODULE;
extern IString MATH;
extern IString IMUL;
extern IString CLZ32;
extern IString FROUND;
extern IString ASM2WASM;
extern IString MIN;
extern IString MAX;
extern IString F64_REM;
extern IString F64_TO_INT;
extern IString F64_TO_UINT;
extern IString F64_TO_INT64;
extern IString F64_TO_UINT64;
extern IString F32_TO_INT;
extern IString F32_TO_UINT;
extern IString F32_TO_INT64;
extern IString F32_TO_UINT64;
extern IString I32S_DIV;
extern IString I32U_DIV;
extern IString I32S_REM;
extern IString I32U_REM;
extern IString ABS;
extern IString FLOOR;
extern IString CEIL;
extern IString TRUNC;
extern IString SQRT;
extern IString POW;
extern IString I32_TEMP;
extern IString DEBUGGER;
extern IString BUFFER;
extern IString ENV;
extern IString STACKTOP;
extern IString STACK_MAX;
extern IString INSTRUMENT;
extern IString LENGTH;
extern IString MATH_IMUL;
extern IString MATH_ABS;
extern IString MATH_CLZ32;
extern IString MATH_CEIL;
extern IString MATH_FLOOR;
extern IString MATH_TRUNC;
extern IString MATH_SQRT;
extern IString MATH_MIN;
extern IString MATH_MAX;
extern IString WASM_CTZ32;
extern IString WASM_CTZ64;
extern IString WASM_CLZ32;
extern IString WASM_CLZ64;
extern IString WASM_POPCNT32;
extern IString WASM_POPCNT64;
extern IString WASM_ROTL32;
extern IString WASM_ROTL64;
extern IString WASM_ROTR32;
extern IString WASM_ROTR64;
extern IString WASM_MEMORY_GROW;
extern IString WASM_MEMORY_SIZE;
extern IString WASM_FETCH_HIGH_BITS;
extern IString INT64_TO_32_HIGH_BITS;
extern IString WASM_NEAREST_F32;
extern IString WASM_NEAREST_F64;
extern IString WASM_I64_MUL;
extern IString WASM_I64_SDIV;
extern IString WASM_I64_UDIV;
extern IString WASM_I64_SREM;
extern IString WASM_I64_UREM;
// wasm2js constants
extern IString ASM_FUNC;
extern IString FUNCTION_TABLE;
extern IString NO_RESULT;
extern IString EXPRESSION_RESULT;
} // namespace wasm
#endif // wasm_asmjs_shared_constants_h
|