diff options
Diffstat (limited to 'meta-oe/recipes-extended/mozjs/mozjs/Update-the-double-conversion-update-script.patch')
-rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs/Update-the-double-conversion-update-script.patch | 175 |
1 files changed, 0 insertions, 175 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs/Update-the-double-conversion-update-script.patch b/meta-oe/recipes-extended/mozjs/mozjs/Update-the-double-conversion-update-script.patch deleted file mode 100644 index ffeac4982..000000000 --- a/meta-oe/recipes-extended/mozjs/mozjs/Update-the-double-conversion-update-script.patch +++ /dev/null | |||
@@ -1,175 +0,0 @@ | |||
1 | From 1c3f6dd9bb478fea0622e8a9ba2efbf19d73e302 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alistair Francis <alistair.francis@wdc.com> | ||
3 | Date: Fri, 1 Jun 2018 14:46:47 -0700 | ||
4 | Subject: [PATCH] Update the double conversion update script | ||
5 | |||
6 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> | ||
7 | --- | ||
8 | .../add-mfbt-api-markers.patch | 94 ------------------- | ||
9 | .../more-architectures.patch | 30 ------ | ||
10 | mfbt/double-conversion/update.sh | 8 +- | ||
11 | 3 files changed, 3 insertions(+), 129 deletions(-) | ||
12 | delete mode 100644 mfbt/double-conversion/add-mfbt-api-markers.patch | ||
13 | delete mode 100644 mfbt/double-conversion/more-architectures.patch | ||
14 | |||
15 | diff --git a/mfbt/double-conversion/add-mfbt-api-markers.patch b/mfbt/double-conversion/add-mfbt-api-markers.patch | ||
16 | deleted file mode 100644 | ||
17 | index b98ec74..0000000 | ||
18 | --- a/mfbt/double-conversion/add-mfbt-api-markers.patch | ||
19 | +++ /dev/null | ||
20 | @@ -1,94 +0,0 @@ | ||
21 | -diff --git a/mfbt/double-conversion/double-conversion.h b/mfbt/double-conversion/double-conversion.h | ||
22 | -index f98edae..e536a01 100644 | ||
23 | ---- a/mfbt/double-conversion/double-conversion.h | ||
24 | -+++ b/mfbt/double-conversion/double-conversion.h | ||
25 | -@@ -28,6 +28,7 @@ | ||
26 | - #ifndef DOUBLE_CONVERSION_DOUBLE_CONVERSION_H_ | ||
27 | - #define DOUBLE_CONVERSION_DOUBLE_CONVERSION_H_ | ||
28 | - | ||
29 | -+#include "mozilla/Types.h" | ||
30 | - #include "utils.h" | ||
31 | - | ||
32 | - namespace double_conversion { | ||
33 | -@@ -129,7 +130,7 @@ class DoubleToStringConverter { | ||
34 | - } | ||
35 | - | ||
36 | - // Returns a converter following the EcmaScript specification. | ||
37 | -- static const DoubleToStringConverter& EcmaScriptConverter(); | ||
38 | -+ static MFBT_API(const DoubleToStringConverter&) EcmaScriptConverter(); | ||
39 | - | ||
40 | - // Computes the shortest string of digits that correctly represent the input | ||
41 | - // number. Depending on decimal_in_shortest_low and decimal_in_shortest_high | ||
42 | -@@ -197,7 +198,7 @@ class DoubleToStringConverter { | ||
43 | - // The last two conditions imply that the result will never contain more than | ||
44 | - // 1 + kMaxFixedDigitsBeforePoint + 1 + kMaxFixedDigitsAfterPoint characters | ||
45 | - // (one additional character for the sign, and one for the decimal point). | ||
46 | -- bool ToFixed(double value, | ||
47 | -+ MFBT_API(bool) ToFixed(double value, | ||
48 | - int requested_digits, | ||
49 | - StringBuilder* result_builder) const; | ||
50 | - | ||
51 | -@@ -229,7 +230,7 @@ class DoubleToStringConverter { | ||
52 | - // kMaxExponentialDigits + 8 characters (the sign, the digit before the | ||
53 | - // decimal point, the decimal point, the exponent character, the | ||
54 | - // exponent's sign, and at most 3 exponent digits). | ||
55 | -- bool ToExponential(double value, | ||
56 | -+ MFBT_API(bool) ToExponential(double value, | ||
57 | - int requested_digits, | ||
58 | - StringBuilder* result_builder) const; | ||
59 | - | ||
60 | -@@ -267,7 +268,7 @@ class DoubleToStringConverter { | ||
61 | - // The last condition implies that the result will never contain more than | ||
62 | - // kMaxPrecisionDigits + 7 characters (the sign, the decimal point, the | ||
63 | - // exponent character, the exponent's sign, and at most 3 exponent digits). | ||
64 | -- bool ToPrecision(double value, | ||
65 | -+ MFBT_API(bool) ToPrecision(double value, | ||
66 | - int precision, | ||
67 | - StringBuilder* result_builder) const; | ||
68 | - | ||
69 | -@@ -292,7 +293,7 @@ class DoubleToStringConverter { | ||
70 | - // kBase10MaximalLength. | ||
71 | - // Note that DoubleToAscii null-terminates its input. So the given buffer | ||
72 | - // should be at least kBase10MaximalLength + 1 characters long. | ||
73 | -- static const int kBase10MaximalLength = 17; | ||
74 | -+ static const MFBT_DATA(int) kBase10MaximalLength = 17; | ||
75 | - | ||
76 | - // Converts the given double 'v' to ascii. 'v' must not be NaN, +Infinity, or | ||
77 | - // -Infinity. In SHORTEST_SINGLE-mode this restriction also applies to 'v' | ||
78 | -@@ -332,7 +333,7 @@ class DoubleToStringConverter { | ||
79 | - // terminating null-character when computing the maximal output size. | ||
80 | - // The given length is only used in debug mode to ensure the buffer is big | ||
81 | - // enough. | ||
82 | -- static void DoubleToAscii(double v, | ||
83 | -+ static MFBT_API(void) DoubleToAscii(double v, | ||
84 | - DtoaMode mode, | ||
85 | - int requested_digits, | ||
86 | - char* buffer, | ||
87 | -@@ -343,7 +344,7 @@ class DoubleToStringConverter { | ||
88 | - | ||
89 | - private: | ||
90 | - // Implementation for ToShortest and ToShortestSingle. | ||
91 | -- bool ToShortestIeeeNumber(double value, | ||
92 | -+ MFBT_API(bool) ToShortestIeeeNumber(double value, | ||
93 | - StringBuilder* result_builder, | ||
94 | - DtoaMode mode) const; | ||
95 | - | ||
96 | -@@ -351,15 +352,15 @@ class DoubleToStringConverter { | ||
97 | - // corresponding string using the configured infinity/nan-symbol. | ||
98 | - // If either of them is NULL or the value is not special then the | ||
99 | - // function returns false. | ||
100 | -- bool HandleSpecialValues(double value, StringBuilder* result_builder) const; | ||
101 | -+ MFBT_API(bool) HandleSpecialValues(double value, StringBuilder* result_builder) const; | ||
102 | - // Constructs an exponential representation (i.e. 1.234e56). | ||
103 | - // The given exponent assumes a decimal point after the first decimal digit. | ||
104 | -- void CreateExponentialRepresentation(const char* decimal_digits, | ||
105 | -+ MFBT_API(void) CreateExponentialRepresentation(const char* decimal_digits, | ||
106 | - int length, | ||
107 | - int exponent, | ||
108 | - StringBuilder* result_builder) const; | ||
109 | - // Creates a decimal representation (i.e 1234.5678). | ||
110 | -- void CreateDecimalRepresentation(const char* decimal_digits, | ||
111 | -+ MFBT_API(void) CreateDecimalRepresentation(const char* decimal_digits, | ||
112 | - int length, | ||
113 | - int decimal_point, | ||
114 | - int digits_after_point, | ||
115 | diff --git a/mfbt/double-conversion/more-architectures.patch b/mfbt/double-conversion/more-architectures.patch | ||
116 | deleted file mode 100644 | ||
117 | index b8d3804..0000000 | ||
118 | --- a/mfbt/double-conversion/more-architectures.patch | ||
119 | +++ /dev/null | ||
120 | @@ -1,30 +0,0 @@ | ||
121 | -diff --git a/mfbt/double-conversion/utils.h b/mfbt/double-conversion/utils.h | ||
122 | ---- a/mfbt/double-conversion/utils.h | ||
123 | -+++ b/mfbt/double-conversion/utils.h | ||
124 | -@@ -48,20 +48,24 @@ | ||
125 | - // An easy way to test if the floating-point operations are correct is to | ||
126 | - // evaluate: 89255.0/1e22. If the floating-point stack is 64 bits wide then | ||
127 | - // the result is equal to 89255e-22. | ||
128 | - // The best way to test this, is to create a division-function and to compare | ||
129 | - // the output of the division with the expected result. (Inlining must be | ||
130 | - // disabled.) | ||
131 | - // On Linux,x86 89255e-22 != Div_double(89255.0/1e22) | ||
132 | - #if defined(_M_X64) || defined(__x86_64__) || \ | ||
133 | -- defined(__ARMEL__) || \ | ||
134 | -+ defined(__ARMEL__) || defined(__avr32__) || \ | ||
135 | -+ defined(__hppa__) || defined(__ia64__) || \ | ||
136 | -+ defined(__mips__) || defined(__powerpc__) || \ | ||
137 | -+ defined(__sparc__) || defined(__sparc) || defined(__s390__) || \ | ||
138 | -+ defined(__SH4__) || defined(__alpha__) || \ | ||
139 | - defined(_MIPS_ARCH_MIPS32R2) | ||
140 | - #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 | ||
141 | --#elif defined(_M_IX86) || defined(__i386__) | ||
142 | -+#elif defined(_M_IX86) || defined(__i386__) || defined(__i386) | ||
143 | - #if defined(_WIN32) | ||
144 | - // Windows uses a 64bit wide floating point stack. | ||
145 | - #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 | ||
146 | - #else | ||
147 | - #undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS | ||
148 | - #endif // _WIN32 | ||
149 | - #else | ||
150 | - #error Target architecture was not detected as supported by Double-Conversion. | ||
151 | diff --git a/mfbt/double-conversion/update.sh b/mfbt/double-conversion/update.sh | ||
152 | index 81add8e..9ef2e91 100755 | ||
153 | --- a/mfbt/double-conversion/update.sh | ||
154 | +++ b/mfbt/double-conversion/update.sh | ||
155 | @@ -4,14 +4,12 @@ | ||
156 | # double-conversion source that we need. | ||
157 | |||
158 | cp $1/LICENSE ./ | ||
159 | -cp $1/README ./ | ||
160 | +cp $1/COPYING ./ | ||
161 | |||
162 | # Includes | ||
163 | -cp $1/src/*.h ./ | ||
164 | +cp $1/double-conversion/*.h ./ | ||
165 | |||
166 | # Source | ||
167 | -cp $1/src/*.cc ./ | ||
168 | +cp $1/double-conversion/*.cc ./ | ||
169 | |||
170 | -patch -p3 < add-mfbt-api-markers.patch | ||
171 | patch -p3 < use-StandardInteger.patch | ||
172 | -patch -p3 < more-architectures.patch | ||
173 | -- | ||
174 | 2.17.0 | ||
175 | |||