react-native-windows 0.0.0-canary.960 → 0.0.0-canary.962
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Common/Common.vcxproj +1 -1
- package/Microsoft.ReactNative/Fabric/AbiShadowNode.cpp +4 -4
- package/Microsoft.ReactNative/Fabric/AbiShadowNode.h +5 -5
- package/Microsoft.ReactNative/Fabric/ComponentView.h +6 -5
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.h +1 -0
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.cpp +3 -1
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +3 -2
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentDescriptor.h +2 -1
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +2 -1
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.cpp +0 -8
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.h +2 -2
- package/Microsoft.ReactNative/Fabric/Composition/TooltipService.cpp +3 -2
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +7 -3
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +10 -1
- package/Microsoft.ReactNative/Fabric/WindowsComponentDescriptorRegistry.h +2 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/HostPlatformColor.h +0 -1
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/PlatformColorUtils.h +1 -1
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/{TextLayoutManager.cpp → WindowsTextLayoutManager.cpp} +21 -36
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/WindowsTextLayoutManager.h +68 -0
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +0 -2
- package/Microsoft.ReactNative.Cxx/JSValue.cpp +19 -3
- package/Microsoft.ReactNative.Cxx/JSValue.h +15 -7
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/Bridging.h +3 -3
- package/Microsoft.ReactNative.Cxx/stubs/glog/logging.h +1 -1
- package/PropertySheets/Generated/PackageVersion.g.props +2 -2
- package/PropertySheets/React.Cpp.props +6 -2
- package/ReactCommon/ReactCommon.vcxproj +1 -9
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/Bridging.h +3 -3
- package/Shared/Shared.vcxitems +4 -4
- package/Shared/Shared.vcxitems.filters +3 -3
- package/package.json +1 -2
- package/stubs/glog/logging.h +1 -1
- package/templates/cpp-lib/windows/MyLib/MyLib.cpp +1 -1
- package/templates/cpp-lib/windows/MyLib/MyLib.h +2 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformTouch.h +0 -10
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/Float.h +0 -20
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.h +0 -117
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/textinput/TextInputState.h +0 -73
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/HostPlatformTouch.h +0 -14
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/HostPlatformViewEventEmitter.h +0 -14
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/HostPlatformViewProps.h +0 -14
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/graphics/Float.h +0 -433
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/graphics/HostPlatformColor.h +0 -62
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/imagemanager/ImageRequestParams.h +0 -30
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/runtimescheduler/SchedulerPriorityUtils.h +0 -60
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/ReactInstance.h +0 -87
|
@@ -1,433 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include <cfloat> // Windows
|
|
11
|
-
#include <limits>
|
|
12
|
-
|
|
13
|
-
// [[Windows
|
|
14
|
-
//
|
|
15
|
-
// float.h
|
|
16
|
-
//
|
|
17
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
18
|
-
//
|
|
19
|
-
// Implementation-defined values commonly used by sophisticated numerical
|
|
20
|
-
// (floating point) programs.
|
|
21
|
-
//
|
|
22
|
-
#pragma once
|
|
23
|
-
#ifndef _INC_FLOAT // include guard for 3rd party interop
|
|
24
|
-
#define _INC_FLOAT
|
|
25
|
-
|
|
26
|
-
#include <corecrt.h>
|
|
27
|
-
|
|
28
|
-
#pragma warning(push)
|
|
29
|
-
#pragma warning(disable: _UCRT_DISABLED_WARNINGS)
|
|
30
|
-
_UCRT_DISABLE_CLANG_WARNINGS
|
|
31
|
-
|
|
32
|
-
_CRT_BEGIN_C_HEADER
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
#ifndef _CRT_MANAGED_FP_DEPRECATE
|
|
37
|
-
#ifdef _CRT_MANAGED_FP_NO_DEPRECATE
|
|
38
|
-
#define _CRT_MANAGED_FP_DEPRECATE
|
|
39
|
-
#else
|
|
40
|
-
#ifdef _M_CEE
|
|
41
|
-
#define _CRT_MANAGED_FP_DEPRECATE _CRT_DEPRECATE_TEXT("Direct floating point control is not supported or reliable from within managed code. ")
|
|
42
|
-
#else
|
|
43
|
-
#define _CRT_MANAGED_FP_DEPRECATE
|
|
44
|
-
#endif
|
|
45
|
-
#endif
|
|
46
|
-
#endif
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
// Define the floating point precision used.
|
|
50
|
-
//
|
|
51
|
-
// For x86, results are in double precision (unless /arch:sse2 is used, in which
|
|
52
|
-
// case results are in source precision.
|
|
53
|
-
//
|
|
54
|
-
// For x64 and ARM, results are in source precision.
|
|
55
|
-
//
|
|
56
|
-
// If the compiler is invoked with /fp:fast, the compiler is allowed to use the
|
|
57
|
-
// fastest precision and even mix within a single function, so precision is
|
|
58
|
-
// indeterminable.
|
|
59
|
-
//
|
|
60
|
-
// Note that manipulating the floating point behavior using the float_control/
|
|
61
|
-
// fenv_access/fp_contract #pragmas may alter the actual floating point evaluation
|
|
62
|
-
// method, which may in turn invalidate the value of FLT_EVAL_METHOD.
|
|
63
|
-
#ifdef _M_FP_FAST
|
|
64
|
-
#define FLT_EVAL_METHOD -1
|
|
65
|
-
#else
|
|
66
|
-
#ifdef _M_IX86
|
|
67
|
-
#if _M_IX86_FP >= 2
|
|
68
|
-
#define FLT_EVAL_METHOD 0
|
|
69
|
-
#else
|
|
70
|
-
#define FLT_EVAL_METHOD 2
|
|
71
|
-
#endif
|
|
72
|
-
#else
|
|
73
|
-
#define FLT_EVAL_METHOD 0
|
|
74
|
-
#endif
|
|
75
|
-
#endif
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
80
|
-
//
|
|
81
|
-
// Constants
|
|
82
|
-
//
|
|
83
|
-
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
84
|
-
#define DBL_DECIMAL_DIG 17 // # of decimal digits of rounding precision
|
|
85
|
-
#define DBL_DIG 15 // # of decimal digits of precision
|
|
86
|
-
#define DBL_EPSILON 2.2204460492503131e-016 // smallest such that 1.0+DBL_EPSILON != 1.0
|
|
87
|
-
#define DBL_HAS_SUBNORM 1 // type does support subnormal numbers
|
|
88
|
-
#define DBL_MANT_DIG 53 // # of bits in mantissa
|
|
89
|
-
#define DBL_MAX 1.7976931348623158e+308 // max value
|
|
90
|
-
#define DBL_MAX_10_EXP 308 // max decimal exponent
|
|
91
|
-
#define DBL_MAX_EXP 1024 // max binary exponent
|
|
92
|
-
#define DBL_MIN 2.2250738585072014e-308 // min positive value
|
|
93
|
-
#define DBL_MIN_10_EXP (-307) // min decimal exponent
|
|
94
|
-
#define DBL_MIN_EXP (-1021) // min binary exponent
|
|
95
|
-
#define _DBL_RADIX 2 // exponent radix
|
|
96
|
-
#define DBL_TRUE_MIN 4.9406564584124654e-324 // min positive value
|
|
97
|
-
|
|
98
|
-
#define FLT_DECIMAL_DIG 9 // # of decimal digits of rounding precision
|
|
99
|
-
#define FLT_DIG 6 // # of decimal digits of precision
|
|
100
|
-
#define FLT_EPSILON 1.192092896e-07F // smallest such that 1.0+FLT_EPSILON != 1.0
|
|
101
|
-
#define FLT_HAS_SUBNORM 1 // type does support subnormal numbers
|
|
102
|
-
#define FLT_GUARD 0
|
|
103
|
-
#define FLT_MANT_DIG 24 // # of bits in mantissa
|
|
104
|
-
#define FLT_MAX 3.402823466e+38F // max value
|
|
105
|
-
#define FLT_MAX_10_EXP 38 // max decimal exponent
|
|
106
|
-
#define FLT_MAX_EXP 128 // max binary exponent
|
|
107
|
-
#define FLT_MIN 1.175494351e-38F // min normalized positive value
|
|
108
|
-
#define FLT_MIN_10_EXP (-37) // min decimal exponent
|
|
109
|
-
#define FLT_MIN_EXP (-125) // min binary exponent
|
|
110
|
-
#define FLT_NORMALIZE 0
|
|
111
|
-
#define FLT_RADIX 2 // exponent radix
|
|
112
|
-
#define FLT_TRUE_MIN 1.401298464e-45F // min positive value
|
|
113
|
-
|
|
114
|
-
#define LDBL_DIG DBL_DIG // # of decimal digits of precision
|
|
115
|
-
#define LDBL_EPSILON DBL_EPSILON // smallest such that 1.0+LDBL_EPSILON != 1.0
|
|
116
|
-
#define LDBL_HAS_SUBNORM DBL_HAS_SUBNORM // type does support subnormal numbers
|
|
117
|
-
#define LDBL_MANT_DIG DBL_MANT_DIG // # of bits in mantissa
|
|
118
|
-
#define LDBL_MAX DBL_MAX // max value
|
|
119
|
-
#define LDBL_MAX_10_EXP DBL_MAX_10_EXP // max decimal exponent
|
|
120
|
-
#define LDBL_MAX_EXP DBL_MAX_EXP // max binary exponent
|
|
121
|
-
#define LDBL_MIN DBL_MIN // min normalized positive value
|
|
122
|
-
#define LDBL_MIN_10_EXP DBL_MIN_10_EXP // min decimal exponent
|
|
123
|
-
#define LDBL_MIN_EXP DBL_MIN_EXP // min binary exponent
|
|
124
|
-
#define _LDBL_RADIX _DBL_RADIX // exponent radix
|
|
125
|
-
#define LDBL_TRUE_MIN DBL_TRUE_MIN // min positive value
|
|
126
|
-
|
|
127
|
-
#define DECIMAL_DIG DBL_DECIMAL_DIG
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
132
|
-
//
|
|
133
|
-
// Flags
|
|
134
|
-
//
|
|
135
|
-
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
136
|
-
#define _SW_INEXACT 0x00000001 // Inexact (precision)
|
|
137
|
-
#define _SW_UNDERFLOW 0x00000002 // Underflow
|
|
138
|
-
#define _SW_OVERFLOW 0x00000004 // Overflow
|
|
139
|
-
#define _SW_ZERODIVIDE 0x00000008 // Divide by zero
|
|
140
|
-
#define _SW_INVALID 0x00000010 // Invalid
|
|
141
|
-
#define _SW_DENORMAL 0x00080000 // Denormal status bit
|
|
142
|
-
|
|
143
|
-
// New Control Bit that specifies the ambiguity in control word.
|
|
144
|
-
#define _EM_AMBIGUIOUS 0x80000000 // For backwards compatibility
|
|
145
|
-
#define _EM_AMBIGUOUS 0x80000000
|
|
146
|
-
|
|
147
|
-
// Abstract User Control Word Mask and bit definitions
|
|
148
|
-
#define _MCW_EM 0x0008001f // Interrupt Exception Masks
|
|
149
|
-
#define _EM_INEXACT 0x00000001 // inexact (precision)
|
|
150
|
-
#define _EM_UNDERFLOW 0x00000002 // underflow
|
|
151
|
-
#define _EM_OVERFLOW 0x00000004 // overflow
|
|
152
|
-
#define _EM_ZERODIVIDE 0x00000008 // zero divide
|
|
153
|
-
#define _EM_INVALID 0x00000010 // invalid
|
|
154
|
-
#define _EM_DENORMAL 0x00080000 // Denormal exception mask (_control87 only)
|
|
155
|
-
|
|
156
|
-
#define _MCW_RC 0x00000300 // Rounding Control
|
|
157
|
-
#define _RC_NEAR 0x00000000 // near
|
|
158
|
-
#define _RC_DOWN 0x00000100 // down
|
|
159
|
-
#define _RC_UP 0x00000200 // up
|
|
160
|
-
#define _RC_CHOP 0x00000300 // chop
|
|
161
|
-
|
|
162
|
-
// i386 specific definitions
|
|
163
|
-
#define _MCW_PC 0x00030000 // Precision Control
|
|
164
|
-
#define _PC_64 0x00000000 // 64 bits
|
|
165
|
-
#define _PC_53 0x00010000 // 53 bits
|
|
166
|
-
#define _PC_24 0x00020000 // 24 bits
|
|
167
|
-
|
|
168
|
-
#define _MCW_IC 0x00040000 // Infinity Control
|
|
169
|
-
#define _IC_AFFINE 0x00040000 // affine
|
|
170
|
-
#define _IC_PROJECTIVE 0x00000000 // projective
|
|
171
|
-
|
|
172
|
-
// RISC specific definitions
|
|
173
|
-
#define _MCW_DN 0x03000000 // Denormal Control
|
|
174
|
-
#define _DN_SAVE 0x00000000 // save denormal results and operands
|
|
175
|
-
#define _DN_FLUSH 0x01000000 // flush denormal results and operands to zero
|
|
176
|
-
#define _DN_FLUSH_OPERANDS_SAVE_RESULTS 0x02000000 // flush operands to zero and save results
|
|
177
|
-
#define _DN_SAVE_OPERANDS_FLUSH_RESULTS 0x03000000 // save operands and flush results to zero
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
// Invalid subconditions (_SW_INVALID also set)
|
|
182
|
-
#define _SW_UNEMULATED 0x0040 // Unemulated instruction
|
|
183
|
-
#define _SW_SQRTNEG 0x0080 // Square root of a negative number
|
|
184
|
-
#define _SW_STACKOVERFLOW 0x0200 // FP stack overflow
|
|
185
|
-
#define _SW_STACKUNDERFLOW 0x0400 // FP stack underflow
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
// Floating point error signals and return codes
|
|
190
|
-
#define _FPE_INVALID 0x81
|
|
191
|
-
#define _FPE_DENORMAL 0x82
|
|
192
|
-
#define _FPE_ZERODIVIDE 0x83
|
|
193
|
-
#define _FPE_OVERFLOW 0x84
|
|
194
|
-
#define _FPE_UNDERFLOW 0x85
|
|
195
|
-
#define _FPE_INEXACT 0x86
|
|
196
|
-
|
|
197
|
-
#define _FPE_UNEMULATED 0x87
|
|
198
|
-
#define _FPE_SQRTNEG 0x88
|
|
199
|
-
#define _FPE_STACKOVERFLOW 0x8a
|
|
200
|
-
#define _FPE_STACKUNDERFLOW 0x8b
|
|
201
|
-
|
|
202
|
-
#define _FPE_EXPLICITGEN 0x8c // raise(SIGFPE);
|
|
203
|
-
|
|
204
|
-
// On x86 with arch:SSE2, the OS returns these exceptions
|
|
205
|
-
#define _FPE_MULTIPLE_TRAPS 0x8d
|
|
206
|
-
#define _FPE_MULTIPLE_FAULTS 0x8e
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
#define _FPCLASS_SNAN 0x0001 // signaling NaN
|
|
211
|
-
#define _FPCLASS_QNAN 0x0002 // quiet NaN
|
|
212
|
-
#define _FPCLASS_NINF 0x0004 // negative infinity
|
|
213
|
-
#define _FPCLASS_NN 0x0008 // negative normal
|
|
214
|
-
#define _FPCLASS_ND 0x0010 // negative denormal
|
|
215
|
-
#define _FPCLASS_NZ 0x0020 // -0
|
|
216
|
-
#define _FPCLASS_PZ 0x0040 // +0
|
|
217
|
-
#define _FPCLASS_PD 0x0080 // positive denormal
|
|
218
|
-
#define _FPCLASS_PN 0x0100 // positive normal
|
|
219
|
-
#define _FPCLASS_PINF 0x0200 // positive infinity
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
// Initial Control Word value
|
|
224
|
-
#if defined _M_IX86
|
|
225
|
-
|
|
226
|
-
#define _CW_DEFAULT (_RC_NEAR + _PC_53 + _EM_INVALID + _EM_ZERODIVIDE + _EM_OVERFLOW + _EM_UNDERFLOW + _EM_INEXACT + _EM_DENORMAL)
|
|
227
|
-
|
|
228
|
-
#elif defined _M_X64 || defined _M_ARM || defined _M_ARM64
|
|
229
|
-
|
|
230
|
-
#define _CW_DEFAULT (_RC_NEAR + _EM_INVALID + _EM_ZERODIVIDE + _EM_OVERFLOW + _EM_UNDERFLOW + _EM_INEXACT + _EM_DENORMAL)
|
|
231
|
-
|
|
232
|
-
#endif
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
237
|
-
//
|
|
238
|
-
// State Manipulation
|
|
239
|
-
//
|
|
240
|
-
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
241
|
-
// Note that reading or writing the floating point control or status words is
|
|
242
|
-
// not supported in managed code.
|
|
243
|
-
_CRT_MANAGED_FP_DEPRECATE
|
|
244
|
-
_ACRTIMP unsigned int __cdecl _clearfp(void);
|
|
245
|
-
|
|
246
|
-
#pragma warning(push)
|
|
247
|
-
#pragma warning(disable: 4141) // Double deprecation
|
|
248
|
-
|
|
249
|
-
_CRT_MANAGED_FP_DEPRECATE _CRT_INSECURE_DEPRECATE(_controlfp_s)
|
|
250
|
-
_ACRTIMP unsigned int __cdecl _controlfp(
|
|
251
|
-
_In_ unsigned int _NewValue,
|
|
252
|
-
_In_ unsigned int _Mask
|
|
253
|
-
);
|
|
254
|
-
|
|
255
|
-
#pragma warning(pop)
|
|
256
|
-
|
|
257
|
-
_CRT_MANAGED_FP_DEPRECATE
|
|
258
|
-
_ACRTIMP void __cdecl _set_controlfp(
|
|
259
|
-
_In_ unsigned int _NewValue,
|
|
260
|
-
_In_ unsigned int _Mask
|
|
261
|
-
);
|
|
262
|
-
|
|
263
|
-
_CRT_MANAGED_FP_DEPRECATE
|
|
264
|
-
_ACRTIMP errno_t __cdecl _controlfp_s(
|
|
265
|
-
_Out_opt_ unsigned int* _CurrentState,
|
|
266
|
-
_In_ unsigned int _NewValue,
|
|
267
|
-
_In_ unsigned int _Mask
|
|
268
|
-
);
|
|
269
|
-
|
|
270
|
-
_CRT_MANAGED_FP_DEPRECATE
|
|
271
|
-
_ACRTIMP unsigned int __cdecl _statusfp(void);
|
|
272
|
-
|
|
273
|
-
_CRT_MANAGED_FP_DEPRECATE
|
|
274
|
-
_ACRTIMP void __cdecl _fpreset(void);
|
|
275
|
-
|
|
276
|
-
#ifdef _M_IX86
|
|
277
|
-
|
|
278
|
-
_CRT_MANAGED_FP_DEPRECATE
|
|
279
|
-
_ACRTIMP void __cdecl _statusfp2(
|
|
280
|
-
_Out_opt_ unsigned int* _X86Status,
|
|
281
|
-
_Out_opt_ unsigned int* _SSE2Status
|
|
282
|
-
);
|
|
283
|
-
|
|
284
|
-
#endif
|
|
285
|
-
|
|
286
|
-
#define _clear87 _clearfp
|
|
287
|
-
#define _status87 _statusfp
|
|
288
|
-
|
|
289
|
-
_CRT_MANAGED_FP_DEPRECATE
|
|
290
|
-
_ACRTIMP unsigned int __cdecl _control87(
|
|
291
|
-
_In_ unsigned int _NewValue,
|
|
292
|
-
_In_ unsigned int _Mask
|
|
293
|
-
);
|
|
294
|
-
|
|
295
|
-
#ifdef _M_IX86
|
|
296
|
-
_CRT_MANAGED_FP_DEPRECATE
|
|
297
|
-
_ACRTIMP int __cdecl __control87_2(
|
|
298
|
-
_In_ unsigned int _NewValue,
|
|
299
|
-
_In_ unsigned int _Mask,
|
|
300
|
-
_Out_opt_ unsigned int* _X86ControlWord,
|
|
301
|
-
_Out_opt_ unsigned int* _Sse2ControlWord
|
|
302
|
-
);
|
|
303
|
-
#endif
|
|
304
|
-
|
|
305
|
-
// Global variable holding floating point error code
|
|
306
|
-
_Check_return_
|
|
307
|
-
_ACRTIMP int* __cdecl __fpecode(void);
|
|
308
|
-
|
|
309
|
-
#define _fpecode (*__fpecode())
|
|
310
|
-
|
|
311
|
-
_Check_return_
|
|
312
|
-
_ACRTIMP int __cdecl __fpe_flt_rounds(void);
|
|
313
|
-
|
|
314
|
-
#define FLT_ROUNDS (__fpe_flt_rounds())
|
|
315
|
-
#define _DBL_ROUNDS FLT_ROUNDS
|
|
316
|
-
#define _LDBL_ROUNDS _DBL_ROUNDS
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
321
|
-
//
|
|
322
|
-
// IEEE Recommended Functions
|
|
323
|
-
//
|
|
324
|
-
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
325
|
-
_Check_return_ _ACRTIMP double __cdecl _copysign(_In_ double _Number, _In_ double _Sign);
|
|
326
|
-
_Check_return_ _ACRTIMP double __cdecl _chgsign(_In_ double _X);
|
|
327
|
-
_Check_return_ _ACRTIMP double __cdecl _scalb(_In_ double _X, _In_ long _Y);
|
|
328
|
-
_Check_return_ _ACRTIMP double __cdecl _logb(_In_ double _X);
|
|
329
|
-
_Check_return_ _ACRTIMP double __cdecl _nextafter(_In_ double _X, _In_ double _Y);
|
|
330
|
-
_Check_return_ _ACRTIMP int __cdecl _finite(_In_ double _X);
|
|
331
|
-
_Check_return_ _ACRTIMP int __cdecl _isnan(_In_ double _X);
|
|
332
|
-
_Check_return_ _ACRTIMP int __cdecl _fpclass(_In_ double _X);
|
|
333
|
-
|
|
334
|
-
#ifdef _M_X64
|
|
335
|
-
_Check_return_ _ACRTIMP float __cdecl _scalbf(_In_ float _X, _In_ long _Y);
|
|
336
|
-
#endif
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
341
|
-
//
|
|
342
|
-
// Nonstandard Names for Compatibility
|
|
343
|
-
//
|
|
344
|
-
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
345
|
-
#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES
|
|
346
|
-
|
|
347
|
-
#define clear87 _clear87
|
|
348
|
-
#define status87 _status87
|
|
349
|
-
#define control87 _control87
|
|
350
|
-
|
|
351
|
-
_CRT_MANAGED_FP_DEPRECATE
|
|
352
|
-
_ACRTIMP void __cdecl fpreset(void);
|
|
353
|
-
|
|
354
|
-
#define DBL_RADIX _DBL_RADIX
|
|
355
|
-
#define DBL_ROUNDS _DBL_ROUNDS
|
|
356
|
-
|
|
357
|
-
#define LDBL_RADIX _LDBL_RADIX
|
|
358
|
-
#define LDBL_ROUNDS _LDBL_ROUNDS
|
|
359
|
-
|
|
360
|
-
// For backwards compatibility with the old spelling
|
|
361
|
-
#define EM_AMBIGUIOUS _EM_AMBIGUOUS
|
|
362
|
-
#define EM_AMBIGUOUS _EM_AMBIGUOUS
|
|
363
|
-
|
|
364
|
-
#define MCW_EM _MCW_EM
|
|
365
|
-
#define EM_INVALID _EM_INVALID
|
|
366
|
-
#define EM_DENORMAL _EM_DENORMAL
|
|
367
|
-
#define EM_ZERODIVIDE _EM_ZERODIVIDE
|
|
368
|
-
#define EM_OVERFLOW _EM_OVERFLOW
|
|
369
|
-
#define EM_UNDERFLOW _EM_UNDERFLOW
|
|
370
|
-
#define EM_INEXACT _EM_INEXACT
|
|
371
|
-
|
|
372
|
-
#define MCW_IC _MCW_IC
|
|
373
|
-
#define IC_AFFINE _IC_AFFINE
|
|
374
|
-
#define IC_PROJECTIVE _IC_PROJECTIVE
|
|
375
|
-
|
|
376
|
-
#define MCW_RC _MCW_RC
|
|
377
|
-
#define RC_CHOP _RC_CHOP
|
|
378
|
-
#define RC_UP _RC_UP
|
|
379
|
-
#define RC_DOWN _RC_DOWN
|
|
380
|
-
#define RC_NEAR _RC_NEAR
|
|
381
|
-
|
|
382
|
-
#define MCW_PC _MCW_PC
|
|
383
|
-
#define PC_24 _PC_24
|
|
384
|
-
#define PC_53 _PC_53
|
|
385
|
-
#define PC_64 _PC_64
|
|
386
|
-
|
|
387
|
-
#define CW_DEFAULT _CW_DEFAULT
|
|
388
|
-
|
|
389
|
-
#define SW_INVALID _SW_INVALID
|
|
390
|
-
#define SW_DENORMAL _SW_DENORMAL
|
|
391
|
-
#define SW_ZERODIVIDE _SW_ZERODIVIDE
|
|
392
|
-
#define SW_OVERFLOW _SW_OVERFLOW
|
|
393
|
-
#define SW_UNDERFLOW _SW_UNDERFLOW
|
|
394
|
-
#define SW_INEXACT _SW_INEXACT
|
|
395
|
-
|
|
396
|
-
#define SW_UNEMULATED _SW_UNEMULATED
|
|
397
|
-
#define SW_SQRTNEG _SW_SQRTNEG
|
|
398
|
-
#define SW_STACKOVERFLOW _SW_STACKOVERFLOW
|
|
399
|
-
#define SW_STACKUNDERFLOW _SW_STACKUNDERFLOW
|
|
400
|
-
|
|
401
|
-
#define FPE_INVALID _FPE_INVALID
|
|
402
|
-
#define FPE_DENORMAL _FPE_DENORMAL
|
|
403
|
-
#define FPE_ZERODIVIDE _FPE_ZERODIVIDE
|
|
404
|
-
#define FPE_OVERFLOW _FPE_OVERFLOW
|
|
405
|
-
#define FPE_UNDERFLOW _FPE_UNDERFLOW
|
|
406
|
-
#define FPE_INEXACT _FPE_INEXACT
|
|
407
|
-
|
|
408
|
-
#define FPE_UNEMULATED _FPE_UNEMULATED
|
|
409
|
-
#define FPE_SQRTNEG _FPE_SQRTNEG
|
|
410
|
-
#define FPE_STACKOVERFLOW _FPE_STACKOVERFLOW
|
|
411
|
-
#define FPE_STACKUNDERFLOW _FPE_STACKUNDERFLOW
|
|
412
|
-
|
|
413
|
-
#define FPE_EXPLICITGEN _FPE_EXPLICITGEN
|
|
414
|
-
|
|
415
|
-
#endif // _CRT_INTERNAL_NONSTDC_NAMES
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
_CRT_END_C_HEADER
|
|
420
|
-
_UCRT_RESTORE_CLANG_WARNINGS
|
|
421
|
-
#pragma warning(pop) // _UCRT_DISABLED_WARNINGS
|
|
422
|
-
#endif // _INC_FLOAT
|
|
423
|
-
// Windows]]
|
|
424
|
-
|
|
425
|
-
namespace facebook::react {
|
|
426
|
-
|
|
427
|
-
/*
|
|
428
|
-
* Exact type of float numbers which ideally should match a type behing
|
|
429
|
-
* platform- and chip-architecture-specific float type.
|
|
430
|
-
*/
|
|
431
|
-
using Float = float;
|
|
432
|
-
|
|
433
|
-
} // namespace facebook::react
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include <react/renderer/graphics/ColorComponents.h>
|
|
11
|
-
#include <cmath>
|
|
12
|
-
#include <cstdint>
|
|
13
|
-
|
|
14
|
-
namespace facebook::react {
|
|
15
|
-
|
|
16
|
-
using Color = int32_t;
|
|
17
|
-
|
|
18
|
-
namespace HostPlatformColor {
|
|
19
|
-
static const facebook::react::Color UndefinedColor =
|
|
20
|
-
std::numeric_limits<facebook::react::Color>::max();
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
inline Color
|
|
24
|
-
hostPlatformColorFromRGBA(uint8_t r, uint8_t g, uint8_t b, uint8_t a) {
|
|
25
|
-
return (a & 0xff) << 24 | (r & 0xff) << 16 | (g & 0xff) << 8 | (b & 0xff);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
inline Color hostPlatformColorFromComponents(ColorComponents components) {
|
|
29
|
-
float ratio = 255;
|
|
30
|
-
return hostPlatformColorFromRGBA(
|
|
31
|
-
static_cast<uint8_t>(std::round(components.red * ratio)),
|
|
32
|
-
static_cast<uint8_t>(std::round(components.green * ratio)),
|
|
33
|
-
static_cast<uint8_t>(std::round(components.blue * ratio)),
|
|
34
|
-
static_cast<uint8_t>(std::round(components.alpha * ratio)));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
inline float alphaFromHostPlatformColor(Color color) {
|
|
38
|
-
return static_cast<float>((color >> 24) & 0xff);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
inline float redFromHostPlatformColor(Color color) {
|
|
42
|
-
return static_cast<float>((color >> 16) & 0xff);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
inline float greenFromHostPlatformColor(Color color) {
|
|
46
|
-
return static_cast<float>((color >> 8) & 0xff);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
inline float blueFromHostPlatformColor(Color color) {
|
|
50
|
-
return static_cast<uint8_t>((color >> 0) & 0xff);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
inline ColorComponents colorComponentsFromHostPlatformColor(Color color) {
|
|
54
|
-
float ratio = 255;
|
|
55
|
-
return ColorComponents{
|
|
56
|
-
static_cast<float>(redFromHostPlatformColor(color)) / ratio,
|
|
57
|
-
static_cast<float>(greenFromHostPlatformColor(color)) / ratio,
|
|
58
|
-
static_cast<float>(blueFromHostPlatformColor(color)) / ratio,
|
|
59
|
-
static_cast<float>(alphaFromHostPlatformColor(color)) / ratio};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
} // namespace facebook::react
|
package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/imagemanager/ImageRequestParams.h
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include <react/renderer/graphics/Float.h>
|
|
11
|
-
|
|
12
|
-
namespace facebook::react {
|
|
13
|
-
|
|
14
|
-
class ImageRequestParams {
|
|
15
|
-
public:
|
|
16
|
-
ImageRequestParams() = default;
|
|
17
|
-
explicit ImageRequestParams(Float blurRadius) : blurRadius(blurRadius) {}
|
|
18
|
-
|
|
19
|
-
Float blurRadius{};
|
|
20
|
-
|
|
21
|
-
bool operator==(const ImageRequestParams& rhs) const {
|
|
22
|
-
return this->blurRadius == rhs.blurRadius;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
bool operator!=(const ImageRequestParams& rhs) const {
|
|
26
|
-
return !(*this == rhs);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
} // namespace facebook::react
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include <ReactCommon/SchedulerPriority.h>
|
|
11
|
-
#include <react/debug/react_native_assert.h>
|
|
12
|
-
#include <chrono>
|
|
13
|
-
|
|
14
|
-
namespace facebook::react {
|
|
15
|
-
|
|
16
|
-
static constexpr std::underlying_type<SchedulerPriority>::type serialize(
|
|
17
|
-
SchedulerPriority schedulerPriority) {
|
|
18
|
-
return static_cast<std::underlying_type<SchedulerPriority>::type>(
|
|
19
|
-
schedulerPriority);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
static inline SchedulerPriority fromRawValue(double value) {
|
|
23
|
-
switch ((int)value) {
|
|
24
|
-
case 1:
|
|
25
|
-
return SchedulerPriority::ImmediatePriority;
|
|
26
|
-
case 2:
|
|
27
|
-
return SchedulerPriority::UserBlockingPriority;
|
|
28
|
-
case 3:
|
|
29
|
-
return SchedulerPriority::NormalPriority;
|
|
30
|
-
case 4:
|
|
31
|
-
return SchedulerPriority::LowPriority;
|
|
32
|
-
case 5:
|
|
33
|
-
return SchedulerPriority::IdlePriority;
|
|
34
|
-
}
|
|
35
|
-
react_native_assert(false && "Unsupported SchedulerPriority value");
|
|
36
|
-
return SchedulerPriority::NormalPriority;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
static inline std::chrono::milliseconds timeoutForSchedulerPriority(
|
|
40
|
-
SchedulerPriority schedulerPriority) noexcept {
|
|
41
|
-
switch (schedulerPriority) {
|
|
42
|
-
case SchedulerPriority::ImmediatePriority:
|
|
43
|
-
return std::chrono::milliseconds(0);
|
|
44
|
-
case SchedulerPriority::UserBlockingPriority:
|
|
45
|
-
return std::chrono::milliseconds(250);
|
|
46
|
-
case SchedulerPriority::NormalPriority:
|
|
47
|
-
return std::chrono::seconds(5);
|
|
48
|
-
case SchedulerPriority::LowPriority:
|
|
49
|
-
return std::chrono::seconds(10);
|
|
50
|
-
case SchedulerPriority::IdlePriority:
|
|
51
|
-
return std::chrono::minutes(5);
|
|
52
|
-
default:
|
|
53
|
-
react_native_assert(false && "Unsupported SchedulerPriority value");
|
|
54
|
-
return std::chrono::seconds(5);
|
|
55
|
-
}
|
|
56
|
-
react_native_assert(false && "Unsupported SchedulerPriority value");
|
|
57
|
-
return std::chrono::seconds(5);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
} // namespace facebook::react
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include <ReactCommon/RuntimeExecutor.h>
|
|
11
|
-
#include <cxxreact/MessageQueueThread.h>
|
|
12
|
-
#include <jserrorhandler/JsErrorHandler.h>
|
|
13
|
-
#include <jsi/jsi.h>
|
|
14
|
-
#include <jsinspector-modern/ReactCdp.h>
|
|
15
|
-
#include <jsireact/JSIExecutor.h>
|
|
16
|
-
#include <react/renderer/runtimescheduler/RuntimeScheduler.h>
|
|
17
|
-
#include <react/runtime/BufferedRuntimeExecutor.h>
|
|
18
|
-
#include <jsitooling/react/runtime/JSRuntimeFactory.h> // Windows
|
|
19
|
-
#include <react/runtime/TimerManager.h>
|
|
20
|
-
#include <vector>
|
|
21
|
-
|
|
22
|
-
namespace facebook::react {
|
|
23
|
-
|
|
24
|
-
class ReactInstance final : private jsinspector_modern::InstanceTargetDelegate {
|
|
25
|
-
public:
|
|
26
|
-
using BindingsInstallFunc = std::function<void(jsi::Runtime& runtime)>;
|
|
27
|
-
|
|
28
|
-
ReactInstance(
|
|
29
|
-
std::unique_ptr<JSRuntime> runtime,
|
|
30
|
-
std::shared_ptr<MessageQueueThread> jsMessageQueueThread,
|
|
31
|
-
std::shared_ptr<TimerManager> timerManager,
|
|
32
|
-
JsErrorHandler::OnJsError onJsError,
|
|
33
|
-
jsinspector_modern::HostTarget* parentInspectorTarget = nullptr);
|
|
34
|
-
|
|
35
|
-
RuntimeExecutor getUnbufferedRuntimeExecutor() noexcept;
|
|
36
|
-
|
|
37
|
-
RuntimeExecutor getBufferedRuntimeExecutor() noexcept;
|
|
38
|
-
|
|
39
|
-
std::shared_ptr<RuntimeScheduler> getRuntimeScheduler() noexcept;
|
|
40
|
-
|
|
41
|
-
struct JSRuntimeFlags {
|
|
42
|
-
bool isProfiling = false;
|
|
43
|
-
const std::string runtimeDiagnosticFlags = "";
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
void initializeRuntime(
|
|
47
|
-
JSRuntimeFlags options,
|
|
48
|
-
BindingsInstallFunc bindingsInstallFunc) noexcept;
|
|
49
|
-
|
|
50
|
-
void loadScript(
|
|
51
|
-
std::unique_ptr<const JSBigString> script,
|
|
52
|
-
const std::string& sourceURL,
|
|
53
|
-
std::function<void(jsi::Runtime& runtime)>&& completion = nullptr);
|
|
54
|
-
|
|
55
|
-
void registerSegment(uint32_t segmentId, const std::string& segmentPath);
|
|
56
|
-
|
|
57
|
-
void callFunctionOnModule(
|
|
58
|
-
const std::string& moduleName,
|
|
59
|
-
const std::string& methodName,
|
|
60
|
-
folly::dynamic&& args);
|
|
61
|
-
|
|
62
|
-
void handleMemoryPressureJs(int pressureLevel);
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Unregisters the instance from the inspector. This method must be called
|
|
66
|
-
* on the main (non-JS) thread.
|
|
67
|
-
*/
|
|
68
|
-
void unregisterFromInspector();
|
|
69
|
-
|
|
70
|
-
void* getJavaScriptContext();
|
|
71
|
-
|
|
72
|
-
private:
|
|
73
|
-
std::shared_ptr<JSRuntime> runtime_;
|
|
74
|
-
std::shared_ptr<MessageQueueThread> jsMessageQueueThread_;
|
|
75
|
-
std::shared_ptr<BufferedRuntimeExecutor> bufferedRuntimeExecutor_;
|
|
76
|
-
std::shared_ptr<TimerManager> timerManager_;
|
|
77
|
-
std::unordered_map<std::string, std::variant<jsi::Function, jsi::Object>>
|
|
78
|
-
callableModules_;
|
|
79
|
-
std::shared_ptr<RuntimeScheduler> runtimeScheduler_;
|
|
80
|
-
std::shared_ptr<JsErrorHandler> jsErrorHandler_;
|
|
81
|
-
|
|
82
|
-
jsinspector_modern::InstanceTarget* inspectorTarget_{nullptr};
|
|
83
|
-
jsinspector_modern::RuntimeTarget* runtimeInspectorTarget_{nullptr};
|
|
84
|
-
jsinspector_modern::HostTarget* parentInspectorTarget_{nullptr};
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
} // namespace facebook::react
|