From 846cdbdbf965fc50478bcc4c6436e3dc6a489f3f Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 14 Oct 2021 19:01:18 -0400 Subject: Initial commit. --- www-client/chromium/files/chromium-union.patch | 54 ++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 www-client/chromium/files/chromium-union.patch (limited to 'www-client/chromium/files/chromium-union.patch') diff --git a/www-client/chromium/files/chromium-union.patch b/www-client/chromium/files/chromium-union.patch new file mode 100644 index 0000000..be41f6d --- /dev/null +++ b/www-client/chromium/files/chromium-union.patch @@ -0,0 +1,54 @@ +diff --git a/base/values.h b/base/values.h +index 6f2cd3cc3..7f148d259 100644 +--- a/base/values.h ++++ b/base/values.h +@@ -415,42 +415,13 @@ class BASE_EXPORT Value { + // of 24, without losing any information. Results are unchanged for x86, + // x86_64 and arm64 (16, 32 and 32 bytes respectively). + union { +- struct { +- // TODO(crbug.com/646113): Make these private once DictionaryValue and +- // ListValue are properly inlined. +- Type type_ : 8; +- }; +- struct { +- Type bool_type_ : 8; +- bool bool_value_; +- }; +- struct { +- Type int_type_ : 8; +- int int_value_; +- }; +- struct { +- Type double_type_ : 8; +- // Subtle: On architectures that require it, the compiler will ensure +- // that |double_value_|'s offset is a multiple of 8 (e.g. 32-bit ARM). +- // See technical note above to understand why it is important. +- double double_value_; +- }; +- struct { +- Type string_type_ : 8; +- std::string string_value_; +- }; +- struct { +- Type binary_type_ : 8; +- BlobStorage binary_value_; +- }; +- struct { +- Type dict_type_ : 8; +- DictStorage dict_; +- }; +- struct { +- Type list_type_ : 8; +- ListStorage list_; +- }; ++ bool bool_value_; ++ int int_value_; ++ double double_value_; ++ std::string string_value_; ++ BlobStorage binary_value_; ++ DictStorage dict_; ++ ListStorage list_; + }; + + private: -- cgit v1.2.3