diff options
author | relrel | 2020-11-26 11:18:27 +0000 |
---|---|---|
committer | relrel | 2020-11-26 11:18:27 +0000 |
commit | 80bfcde85cc4a516c01bf28c48121bbea5c7ae2b (patch) | |
tree | 7078361bb7b1c7215c3b595ab861a5287813ffbe | |
parent | 60fd6a67829294ddb78f87c4ebb6cf57c4187ec0 (diff) | |
download | aur-80bfcde85cc4a516c01bf28c48121bbea5c7ae2b.tar.gz |
Remove ignored files
-rw-r--r-- | template-utils-fix.patch | 12 | ||||
-rw-r--r-- | v8-icu67.patch | 150 | ||||
-rw-r--r-- | v8_libbase.pc | 10 | ||||
-rw-r--r-- | v8_libplatform.pc | 10 |
4 files changed, 0 insertions, 182 deletions
diff --git a/template-utils-fix.patch b/template-utils-fix.patch deleted file mode 100644 index 73c995317829..000000000000 --- a/template-utils-fix.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/v8/src/base/template-utils.h b/src/base/template-utils.h -index 8f89672e1a..64a4cb0996 100644 ---- a/v8/src/base/template-utils.h -+++ b/v8/src/base/template-utils.h -@@ -6,6 +6,7 @@ - #define V8_BASE_TEMPLATE_UTILS_H_ - - #include <array> -+#include <ostream> - #include <functional> - #include <type_traits> - #include <utility> diff --git a/v8-icu67.patch b/v8-icu67.patch deleted file mode 100644 index 1fc295c9e3b0..000000000000 --- a/v8-icu67.patch +++ /dev/null @@ -1,150 +0,0 @@ -diff --git a/src/objects/js-number-format.cc b/src/objects/js-number-format.cc -index 7d50f947f7..85f388a799 100644 ---- a/v8/src/objects/js-number-format.cc -+++ b/v8/src/objects/js-number-format.cc -@@ -1239,44 +1239,34 @@ MaybeHandle<JSNumberFormat> JSNumberFormat::New(Isolate* isolate, - } - - namespace { --Maybe<icu::UnicodeString> IcuFormatNumber( -+Maybe<bool> IcuFormatNumber( - Isolate* isolate, - const icu::number::LocalizedNumberFormatter& number_format, -- Handle<Object> numeric_obj, icu::FieldPositionIterator* fp_iter) { -+ Handle<Object> numeric_obj, icu::number::FormattedNumber* formatted) { - // If it is BigInt, handle it differently. - UErrorCode status = U_ZERO_ERROR; -- icu::number::FormattedNumber formatted; - if (numeric_obj->IsBigInt()) { - Handle<BigInt> big_int = Handle<BigInt>::cast(numeric_obj); - Handle<String> big_int_string; - ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, big_int_string, - BigInt::ToString(isolate, big_int), -- Nothing<icu::UnicodeString>()); -- formatted = number_format.formatDecimal( -+ Nothing<bool>()); -+ *formatted = number_format.formatDecimal( - {big_int_string->ToCString().get(), big_int_string->length()}, status); - } else { - double number = numeric_obj->IsNaN() - ? std::numeric_limits<double>::quiet_NaN() - : numeric_obj->Number(); -- formatted = number_format.formatDouble(number, status); -+ *formatted = number_format.formatDouble(number, status); - } - if (U_FAILURE(status)) { - // This happen because of icu data trimming trim out "unit". - // See https://bugs.chromium.org/p/v8/issues/detail?id=8641 - THROW_NEW_ERROR_RETURN_VALUE(isolate, - NewTypeError(MessageTemplate::kIcuError), -- Nothing<icu::UnicodeString>()); -- } -- if (fp_iter) { -- formatted.getAllFieldPositions(*fp_iter, status); -- } -- icu::UnicodeString result = formatted.toString(status); -- if (U_FAILURE(status)) { -- THROW_NEW_ERROR_RETURN_VALUE(isolate, -- NewTypeError(MessageTemplate::kIcuError), -- Nothing<icu::UnicodeString>()); -+ Nothing<bool>()); - } -- return Just(result); -+ return Just(true); - } - - } // namespace -@@ -1287,10 +1277,16 @@ MaybeHandle<String> JSNumberFormat::FormatNumeric( - Handle<Object> numeric_obj) { - DCHECK(numeric_obj->IsNumeric()); - -- Maybe<icu::UnicodeString> maybe_format = -- IcuFormatNumber(isolate, number_format, numeric_obj, nullptr); -+ icu::number::FormattedNumber formatted; -+ Maybe<bool> maybe_format = -+ IcuFormatNumber(isolate, number_format, numeric_obj, &formatted); - MAYBE_RETURN(maybe_format, Handle<String>()); -- return Intl::ToString(isolate, maybe_format.FromJust()); -+ UErrorCode status = U_ZERO_ERROR; -+ icu::UnicodeString result = formatted.toString(status); -+ if (U_FAILURE(status)) { -+ THROW_NEW_ERROR(isolate, NewTypeError(MessageTemplate::kIcuError), String); -+ } -+ return Intl::ToString(isolate, result); - } - - namespace { -@@ -1403,12 +1399,18 @@ std::vector<NumberFormatSpan> FlattenRegionsToParts( - } - - namespace { --Maybe<int> ConstructParts(Isolate* isolate, const icu::UnicodeString& formatted, -- icu::FieldPositionIterator* fp_iter, -+Maybe<int> ConstructParts(Isolate* isolate, -+ icu::number::FormattedNumber* formatted, - Handle<JSArray> result, int start_index, - Handle<Object> numeric_obj, bool style_is_unit) { -+ UErrorCode status = U_ZERO_ERROR; -+ icu::UnicodeString formatted_text = formatted->toString(status); -+ if (U_FAILURE(status)) { -+ THROW_NEW_ERROR_RETURN_VALUE( -+ isolate, NewTypeError(MessageTemplate::kIcuError), Nothing<int>()); -+ } - DCHECK(numeric_obj->IsNumeric()); -- int32_t length = formatted.length(); -+ int32_t length = formatted_text.length(); - int index = start_index; - if (length == 0) return Just(index); - -@@ -1417,13 +1419,14 @@ Maybe<int> ConstructParts(Isolate* isolate, const icu::UnicodeString& formatted, - // other region covers some part of the formatted string. It's possible - // there's another field with exactly the same begin and end as this backdrop, - // in which case the backdrop's field_id of -1 will give it lower priority. -- regions.push_back(NumberFormatSpan(-1, 0, formatted.length())); -+ regions.push_back(NumberFormatSpan(-1, 0, formatted_text.length())); - - { -- icu::FieldPosition fp; -- while (fp_iter->next(fp)) { -- regions.push_back(NumberFormatSpan(fp.getField(), fp.getBeginIndex(), -- fp.getEndIndex())); -+ icu::ConstrainedFieldPosition cfp; -+ cfp.constrainCategory(UFIELD_CATEGORY_NUMBER); -+ while (formatted->nextPosition(cfp, status)) { -+ regions.push_back( -+ NumberFormatSpan(cfp.getField(), cfp.getStart(), cfp.getLimit())); - } - } - -@@ -1445,7 +1448,7 @@ Maybe<int> ConstructParts(Isolate* isolate, const icu::UnicodeString& formatted, - Handle<String> substring; - ASSIGN_RETURN_ON_EXCEPTION_VALUE( - isolate, substring, -- Intl::ToString(isolate, formatted, part.begin_pos, part.end_pos), -+ Intl::ToString(isolate, formatted_text, part.begin_pos, part.end_pos), - Nothing<int>()); - Intl::AddElement(isolate, result, index, field_type_string, substring); - ++index; -@@ -1465,9 +1468,9 @@ MaybeHandle<JSArray> JSNumberFormat::FormatToParts( - number_format->icu_number_formatter().raw(); - CHECK_NOT_NULL(fmt); - -- icu::FieldPositionIterator fp_iter; -- Maybe<icu::UnicodeString> maybe_format = -- IcuFormatNumber(isolate, *fmt, numeric_obj, &fp_iter); -+ icu::number::FormattedNumber formatted; -+ Maybe<bool> maybe_format = -+ IcuFormatNumber(isolate, *fmt, numeric_obj, &formatted); - MAYBE_RETURN(maybe_format, Handle<JSArray>()); - - UErrorCode status = U_ZERO_ERROR; -@@ -1477,8 +1480,7 @@ MaybeHandle<JSArray> JSNumberFormat::FormatToParts( - - Handle<JSArray> result = factory->NewJSArray(0); - Maybe<int> maybe_format_to_parts = -- ConstructParts(isolate, maybe_format.FromJust(), &fp_iter, result, 0, -- numeric_obj, style_is_unit); -+ ConstructParts(isolate, &formatted, result, 0, numeric_obj, style_is_unit); - MAYBE_RETURN(maybe_format_to_parts, Handle<JSArray>()); - - return result; diff --git a/v8_libbase.pc b/v8_libbase.pc deleted file mode 100644 index 64c9503c00d8..000000000000 --- a/v8_libbase.pc +++ /dev/null @@ -1,10 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=/usr/lib -includedir=${prefix}/include - -Name: v8 -Description: V8 JavaScript Engine - Base library -Version: @VERSION@ -Libs: -L${libdir} -lv8_libbase -Cflags: -I${includedir} diff --git a/v8_libplatform.pc b/v8_libplatform.pc deleted file mode 100644 index 54c697a197db..000000000000 --- a/v8_libplatform.pc +++ /dev/null @@ -1,10 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=/usr/lib -includedir=${prefix}/include - -Name: v8 -Description: V8 JavaScript Engine - Platform library -Version: @VERSION@ -Libs: -L${libdir} -lv8_libplatform -pthread -Cflags: -I${includedir} |