docstring_tokens
stringlengths 18
16.9k
| code_tokens
stringlengths 75
1.81M
| html_url
stringlengths 74
116
| file_name
stringlengths 3
311
|
---|---|---|---|
keep keep keep keep replace replace replace replace keep keep keep keep keep
|
<mask> return v ? (T(1) << findLastSet(v - 1)) : 1;
<mask> }
<mask>
<mask> template <class T>
<mask> inline constexpr
<mask> typename std::enable_if<
<mask> std::is_integral<T>::value && std::is_unsigned<T>::value,
<mask> bool>::type
<mask> isPowTwo(T v) {
<mask> return (v != 0) && !(v & (v - 1));
<mask> }
<mask>
<mask> /**
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return x ? 8 * sizeof(unsigned long) - __builtin_clzl(x) : 0;
</s> add return x ? ((8 * sizeof(unsigned long) - 1) ^ __builtin_clzl(x)) + 1 : 0; </s> remove return x ? 8 * sizeof(unsigned long long) - __builtin_clzll(x) : 0;
</s> add return x ? ((8 * sizeof(unsigned long long) - 1) ^ __builtin_clzll(x)) + 1
: 0; </s> remove return x ? 8 * sizeof(unsigned int) - __builtin_clz(x) : 0;
</s> add // If X is a power of two X - Y = ((X - 1) ^ Y) + 1. Doing this transformation
// allows GCC to remove its own xor that it adds to implement clz using bsr
return x ? ((8 * sizeof(unsigned int) - 1) ^ __builtin_clz(x)) + 1 : 0; </s> remove template <class T>
void doNotOptimizeAway(T&& datum) {
asm volatile("" : "+r" (datum));
</s> add namespace detail {
template <typename T>
struct DoNotOptimizeAwayNeedsIndirect {
using Decayed = typename std::decay<T>::type;
// First two constraints ensure it can be an "r" operand.
// std::is_pointer check is because callers seem to expect that
// doNotOptimizeAway(&x) is equivalent to doNotOptimizeAway(x).
constexpr static bool value = !folly::IsTriviallyCopyable<Decayed>::value ||
sizeof(Decayed) > sizeof(long) || std::is_pointer<Decayed>::value;
};
} // detail namespace
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"X"(datum));
}
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory");
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" : "+r"(datum));
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory"); </s> remove /*
* The enable_if junk here is necessary to avoid ambiguous
* conversions relating to bool and double when you implicitly
* convert an int or long to a dynamic.
*/
template<class T, class Enable = void> struct ConversionHelper;
template<class T>
struct ConversionHelper<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T,bool>::value
>::type
> {
typedef int64_t type;
};
template <>
struct ConversionHelper<float> {
typedef double type;
};
template <class T>
struct ConversionHelper<
T,
typename std::enable_if<
(!std::is_integral<T>::value || std::is_same<T, bool>::value) &&
!std::is_same<T, float>::value &&
!std::is_same<T, std::nullptr_t>::value>::type> {
typedef T type;
};
template<class T>
struct ConversionHelper<
T,
typename std::enable_if<
std::is_same<T,std::nullptr_t>::value
>::type
> {
typedef void* type;
};
</s> add </s> remove throw std::out_of_range("sorted_vector_map::at");
</s> add std::__throw_out_of_range("sorted_vector_map::at");
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/Bits.h
|
keep add keep keep keep keep keep
|
<mask> * may be included from C- as well as C++-based projects. */
<mask>
<mask> /* Define a convenience macro to test when address sanitizer is being used
<mask> * across the different compilers (e.g. clang, gcc) */
<mask> #if defined(__clang__)
<mask> # if __has_feature(address_sanitizer)
<mask> # define FOLLY_SANITIZE_ADDRESS 1
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove # define _XOPEN_SOURCE 500 // may be needed to get the rwlock calls
</s> add # ifndef _XOPEN_SOURCE // Some other header might have already set it for us.
# define _XOPEN_SOURCE 500 // may be needed to get the rwlock calls
# endif </s> add // Annoying stuff for windows -- makes sure clients can import these functions
#ifndef GOOGLE_GLOG_DLL_DECL
# if defined(_WIN32) && !defined(__CYGWIN__)
# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport)
# else
# define GOOGLE_GLOG_DLL_DECL
# endif
#endif
</s> add // Annoying stuff for windows -- makes sure clients can import these functions
#ifndef GOOGLE_GLOG_DLL_DECL
# if defined(_WIN32) && !defined(__CYGWIN__)
# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport)
# else
# define GOOGLE_GLOG_DLL_DECL
# endif
#endif
</s> remove // Annoying stuff for windows -- makes sure clients can import these functions
#ifndef GOOGLE_GLOG_DLL_DECL
# if defined(_WIN32) && !defined(__CYGWIN__)
# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport)
# else
# define GOOGLE_GLOG_DLL_DECL
# endif
#endif
</s> add </s> remove // Annoying stuff for windows -- makes sure clients can import these functions
#ifndef GOOGLE_GLOG_DLL_DECL
# if defined(_WIN32) && !defined(__CYGWIN__)
# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport)
# else
# define GOOGLE_GLOG_DLL_DECL
# endif
#endif
</s> add </s> remove - Parameter AutoLogAppEventsEnabled: Flag value, expressed as a value from 0 - false or 1 - true.
</s> add @param AutoLogAppEventsEnabled Flag value, expressed as a value from 0 - false or 1 - true.
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/CPortability.h
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask>
<mask> // locks acquired and all valid, need to modify the links under the locks.
<mask> newNode =
<mask> NodeType::create(recycler_.alloc(), nodeHeight, std::forward<U>(data));
<mask> for (int layer = 0; layer < nodeHeight; ++layer) {
<mask> newNode->setSkip(layer, succs[layer]);
<mask> preds[layer]->setSkip(layer, newNode);
<mask> }
<mask>
<mask> newNode->setFullyLinked();
<mask> newSize = incrementSize(1);
<mask> break;
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove for (int layer = nodeHeight - 1; layer >= 0; --layer) {
preds[layer]->setSkip(layer, nodeToDelete->skip(layer));
</s> add for (int k = nodeHeight - 1; k >= 0; --k) {
preds[k]->setSkip(k, nodeToDelete->skip(k)); </s> add MutexLock l(&sink_mutex_);
delete sinks_;
sinks_ = NULL; </s> remove LogDestination* log = log_destination(i);
</s> add LogDestination* log = log_destinations_[i]; </s> remove symbol_offset = map_start_address;
</s> add ElfW(Phdr) phdr;
// We need to find the PT_LOAD segment corresponding to the read-execute
// file mapping in order to correctly perform the offset adjustment.
for (unsigned i = 0; i != elf_header.e_phnum; ++i) {
if (!ReadFromOffsetExact(fd, &phdr, sizeof(phdr),
elf_header.e_phoff + i * sizeof(phdr)))
return false;
if (phdr.p_type == PT_LOAD &&
(phdr.p_flags & (PF_R | PF_X)) == (PF_R | PF_X)) {
// Find the mapped address corresponding to virtual address zero. We do
// this by first adding p_offset. This gives us the mapped address of
// the start of the segment, or in other words the mapped address
// corresponding to the virtual address of the segment. (Note that this
// is distinct from the start address, as p_offset is not guaranteed to
// be page aligned.) We then subtract p_vaddr, which takes us to virtual
// address zero.
symbol_offset = map_base_address + phdr.p_offset - phdr.p_vaddr;
break;
}
}
if (symbol_offset == 0)
return false; </s> remove #include <folly/dynamic.h>
</s> add </s> add other.accessAllThreadsLock_ = nullptr;
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ConcurrentSkipList.h
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask> if (!lockNodesForChange(nodeHeight, guards, preds, succs, false)) {
<mask> continue; // this will unlock all the locks
<mask> }
<mask>
<mask> for (int layer = nodeHeight - 1; layer >= 0; --layer) {
<mask> preds[layer]->setSkip(layer, nodeToDelete->skip(layer));
<mask> }
<mask>
<mask> incrementSize(-1);
<mask> break;
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove for (int layer = 0; layer < nodeHeight; ++layer) {
newNode->setSkip(layer, succs[layer]);
preds[layer]->setSkip(layer, newNode);
</s> add for (int k = 0; k < nodeHeight; ++k) {
newNode->setSkip(k, succs[k]);
preds[k]->setSkip(k, newNode); </s> add MutexLock l(&sink_mutex_);
delete sinks_;
sinks_ = NULL; </s> remove symbol_offset = map_start_address;
</s> add ElfW(Phdr) phdr;
// We need to find the PT_LOAD segment corresponding to the read-execute
// file mapping in order to correctly perform the offset adjustment.
for (unsigned i = 0; i != elf_header.e_phnum; ++i) {
if (!ReadFromOffsetExact(fd, &phdr, sizeof(phdr),
elf_header.e_phoff + i * sizeof(phdr)))
return false;
if (phdr.p_type == PT_LOAD &&
(phdr.p_flags & (PF_R | PF_X)) == (PF_R | PF_X)) {
// Find the mapped address corresponding to virtual address zero. We do
// this by first adding p_offset. This gives us the mapped address of
// the start of the segment, or in other words the mapped address
// corresponding to the virtual address of the segment. (Note that this
// is distinct from the start address, as p_offset is not guaranteed to
// be page aligned.) We then subtract p_vaddr, which takes us to virtual
// address zero.
symbol_offset = map_base_address + phdr.p_offset - phdr.p_vaddr;
break;
}
}
if (symbol_offset == 0)
return false; </s> remove if (RefCounted::refs(ml_.data_) > 1) {
// Ensure unique.
size_t effectiveCapacity = ml_.capacity();
auto const newRC = RefCounted::create(&effectiveCapacity);
// If this fails, someone placed the wrong capacity in an
// fbstring.
FBSTRING_ASSERT(effectiveCapacity >= ml_.capacity());
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique.
unshare(); </s> remove LogDestination* log = log_destination(i);
</s> add LogDestination* log = log_destinations_[i]; </s> remove return category() == Category::isSmall ? smallSize() : ml_.size_;
</s> add size_t ret = ml_.size_;
/* static */ if (kIsLittleEndian) {
// We can save a couple instructions, because the category is
// small iff the last char, as unsigned, is <= maxSmallSize.
typedef typename std::make_unsigned<Char>::type UChar;
auto maybeSmallSize = size_t(maxSmallSize) -
size_t(static_cast<UChar>(small_[maxSmallSize]));
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ret = (static_cast<ssize_t>(maybeSmallSize) >= 0) ? maybeSmallSize : ret;
} else {
ret = (category() == Category::isSmall) ? smallSize() : ret;
}
return ret;
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ConcurrentSkipList.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> }
<mask>
<mask> template <class Tgt>
<mask> Tgt to(StringPiece* src) {
<mask> Tgt result;
<mask> using Error = detail::ParseToError<Tgt>;
<mask> return parseTo(*src, result)
<mask> .thenOrThrow(
<mask> [&, src](StringPiece sp) -> Tgt {
<mask> *src = sp;
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add // Raw pointers don't have an operator->() member function, so the
// second overload will be SFINAEd out in that case. Otherwise, the
// second is preferred in the partial order for getPointer(_, 0).
template <class Iterator>
auto getPointer(const Iterator& it, long) -> decltype(std::addressof(*it)) {
return std::addressof(*it);
}
template <class Iterator>
auto getPointer(const Iterator& it, int) -> decltype(it.operator->()) {
return it.operator->();
}
</s> remove template <class T>
void doNotOptimizeAway(T&& datum) {
asm volatile("" : "+r" (datum));
</s> add namespace detail {
template <typename T>
struct DoNotOptimizeAwayNeedsIndirect {
using Decayed = typename std::decay<T>::type;
// First two constraints ensure it can be an "r" operand.
// std::is_pointer check is because callers seem to expect that
// doNotOptimizeAway(&x) is equivalent to doNotOptimizeAway(x).
constexpr static bool value = !folly::IsTriviallyCopyable<Decayed>::value ||
sizeof(Decayed) > sizeof(long) || std::is_pointer<Decayed>::value;
};
} // detail namespace
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"X"(datum));
}
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory");
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" : "+r"(datum));
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory"); </s> remove template<class T>
</s> add // Integral types except bool convert to int64_t, float types to double.
template <class T>
struct dynamic::NumericTypeHelper<
T, typename std::enable_if<std::is_integral<T>::value>::type> {
using type = int64_t;
};
template <>
struct dynamic::NumericTypeHelper<bool> {
using type = bool;
};
template <>
struct dynamic::NumericTypeHelper<float> {
using type = double;
};
template <>
struct dynamic::NumericTypeHelper<double> {
using type = double;
};
template<class T, class NumericType /* = typename NumericTypeHelper<T>::type */> </s> remove if (RefCounted::refs(ml_.data_) > 1) {
// Ensure unique.
size_t effectiveCapacity = ml_.capacity();
auto const newRC = RefCounted::create(&effectiveCapacity);
// If this fails, someone placed the wrong capacity in an
// fbstring.
FBSTRING_ASSERT(effectiveCapacity >= ml_.capacity());
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique.
unshare(); </s> remove if (!found) {
VModuleInfo* info = new VModuleInfo;
info->module_pattern = module_pattern;
info->vlog_level = log_level;
info->next = vmodule_list;
vmodule_list = info;
}
</s> add </s> remove typedef std::conditional<sizeof(size_t) == 4, uint32_t, uint64_t>::type
category_type;
</s> add typedef uint8_t category_type;
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/Conv.h
|
keep keep add keep keep keep keep keep
|
<mask> using type = const T*;
<mask> };
<mask>
<mask> template <class Iterator>
<mask> class Enumerator {
<mask> public:
<mask> explicit Enumerator(Iterator it) : it_(std::move(it)) {}
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove template<class T>
</s> add // Integral types except bool convert to int64_t, float types to double.
template <class T>
struct dynamic::NumericTypeHelper<
T, typename std::enable_if<std::is_integral<T>::value>::type> {
using type = int64_t;
};
template <>
struct dynamic::NumericTypeHelper<bool> {
using type = bool;
};
template <>
struct dynamic::NumericTypeHelper<float> {
using type = double;
};
template <>
struct dynamic::NumericTypeHelper<double> {
using type = double;
};
template<class T, class NumericType /* = typename NumericTypeHelper<T>::type */> </s> remove template<class T, class Tag=void>
</s> add template <class T, class Tag = void, class AccessMode = void> </s> remove explicit constexpr ExpectedUnion(EmptyTag) noexcept
: ch_{}, which_(Which::eEmpty) {}
</s> add explicit constexpr ExpectedUnion(EmptyTag) noexcept {} </s> remove template<class Iterator>
</s> add template <class Iterator> </s> remove Which which_;
</s> add Which which_ = Which::eEmpty; </s> remove typedef threadlocal_detail::StaticMeta<Tag> StaticMeta;
</s> add typedef threadlocal_detail::StaticMeta<Tag, AccessMode> StaticMeta;
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/Enumerate.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> reference operator*() {
<mask> return *it_;
<mask> }
<mask> pointer operator->() {
<mask> return std::addressof(**this);
<mask> }
<mask>
<mask> // Const Proxy: Force const references.
<mask> typename MakeConst<reference>::type operator*() const {
<mask> return *it_;
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return std::addressof(**this);
</s> add return getPointer(it_, 0); </s> remove throwException();
</s> add if (*this) {
throwException();
} </s> remove throw std::out_of_range("index out of range");
</s> add std::__throw_out_of_range("index out of range"); </s> remove const Char * c_str() const {
auto const c = category();
if (c == Category::isSmall) {
FBSTRING_ASSERT(small_[smallSize()] == '\0');
return small_;
}
FBSTRING_ASSERT(c == Category::isMedium || c == Category::isLarge);
FBSTRING_ASSERT(ml_.data_[ml_.size_] == '\0');
return ml_.data_;
</s> add const Char* c_str() const {
const Char* ptr = ml_.data_;
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ptr = (category() == Category::isSmall) ? small_ : ptr;
return ptr; </s> add LogStream(const LogStream&);
LogStream& operator=(const LogStream&); </s> remove return find_first_not_of(s, pos, traits_type::length(s));
</s> add return find_first_not_of(s, pos, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/Enumerate.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> typename MakeConst<reference>::type operator*() const {
<mask> return *it_;
<mask> }
<mask> typename MakeConst<pointer>::type operator->() const {
<mask> return std::addressof(**this);
<mask> }
<mask>
<mask> private:
<mask> const Iterator& it_;
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return std::addressof(**this);
</s> add return getPointer(it_, 0); </s> remove throwException();
</s> add if (*this) {
throwException();
} </s> add // Raw pointers don't have an operator->() member function, so the
// second overload will be SFINAEd out in that case. Otherwise, the
// second is preferred in the partial order for getPointer(_, 0).
template <class Iterator>
auto getPointer(const Iterator& it, long) -> decltype(std::addressof(*it)) {
return std::addressof(*it);
}
template <class Iterator>
auto getPointer(const Iterator& it, int) -> decltype(it.operator->()) {
return it.operator->();
}
</s> add LogStream(const LogStream&);
LogStream& operator=(const LogStream&); </s> remove throw std::out_of_range("index out of range");
</s> add std::__throw_out_of_range("index out of range"); </s> remove return replace(i1, i2, s, traits_type::length(s));
</s> add return replace(i1, i2, s, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/Enumerate.h
|
keep keep keep add keep keep keep keep keep
|
<mask> #include <boost/utility.hpp>
<mask> #include <boost/intrusive/list.hpp>
<mask> #include <boost/intrusive/unordered_set.hpp>
<mask> #include <boost/iterator/iterator_adaptor.hpp>
<mask>
<mask> namespace folly {
<mask>
<mask> /**
<mask> * A general purpose LRU evicting cache. Designed to support constant time
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add #include <iostream> </s> add #include <folly/dynamic.h>
#include <folly/portability/BitsFunctexcept.h> </s> add #include <folly/portability/BitsFunctexcept.h> </s> remove #include <folly/dynamic.h>
</s> add </s> add #include <folly/detail/TryDetail.h> </s> remove #if !defined(FOLLY_ALLOW_TFO) && defined(__linux__) && !defined(__ANDROID__)
</s> add #if !defined(FOLLY_ALLOW_TFO)
#if defined(__linux__) || defined(__APPLE__)
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/EvictingCacheMap.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> */
<mask> TValue& get(const TKey& key) {
<mask> auto it = find(key);
<mask> if (it == end()) {
<mask> throw std::out_of_range("Key does not exist");
<mask> }
<mask> return it->second;
<mask> }
<mask>
<mask> /**
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove throw std::out_of_range("Key does not exist");
</s> add std::__throw_out_of_range("Key does not exist"); </s> remove throw std::out_of_range("sorted_vector_map::at");
</s> add std::__throw_out_of_range("sorted_vector_map::at"); </s> remove throw std::out_of_range("sorted_vector_map::at");
</s> add std::__throw_out_of_range("sorted_vector_map::at"); </s> remove throw std::out_of_range("out of range in dynamic array");
</s> add std::__throw_out_of_range("out of range in dynamic array"); </s> remove const Char * c_str() const {
auto const c = category();
if (c == Category::isSmall) {
FBSTRING_ASSERT(small_[smallSize()] == '\0');
return small_;
}
FBSTRING_ASSERT(c == Category::isMedium || c == Category::isLarge);
FBSTRING_ASSERT(ml_.data_[ml_.size_] == '\0');
return ml_.data_;
</s> add const Char* c_str() const {
const Char* ptr = ml_.data_;
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ptr = (category() == Category::isSmall) ? small_ : ptr;
return ptr; </s> remove auto const c = category();
if (c == Category::isSmall) {
return;
}
if (c == Category::isMedium) {
free(ml_.data_);
</s> add if (category() == Category::isSmall) {
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/EvictingCacheMap.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> */
<mask> const TValue& getWithoutPromotion(const TKey& key) const {
<mask> auto it = findWithoutPromotion(key);
<mask> if (it == end()) {
<mask> throw std::out_of_range("Key does not exist");
<mask> }
<mask> return it->second;
<mask> }
<mask>
<mask> TValue& getWithoutPromotion(const TKey& key) {
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove throw std::out_of_range("Key does not exist");
</s> add std::__throw_out_of_range("Key does not exist"); </s> remove throw std::out_of_range("sorted_vector_map::at");
</s> add std::__throw_out_of_range("sorted_vector_map::at"); </s> remove throw std::out_of_range("sorted_vector_map::at");
</s> add std::__throw_out_of_range("sorted_vector_map::at"); </s> remove throw std::out_of_range("out of range in dynamic array");
</s> add std::__throw_out_of_range("out of range in dynamic array"); </s> remove const Char * c_str() const {
auto const c = category();
if (c == Category::isSmall) {
FBSTRING_ASSERT(small_[smallSize()] == '\0');
return small_;
}
FBSTRING_ASSERT(c == Category::isMedium || c == Category::isLarge);
FBSTRING_ASSERT(ml_.data_[ml_.size_] == '\0');
return ml_.data_;
</s> add const Char* c_str() const {
const Char* ptr = ml_.data_;
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ptr = (category() == Category::isSmall) ? small_ : ptr;
return ptr; </s> remove auto const c = category();
if (c == Category::isSmall) {
return;
}
if (c == Category::isMedium) {
free(ml_.data_);
</s> add if (category() == Category::isSmall) {
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/EvictingCacheMap.h
|
keep add keep keep keep keep keep
|
<mask> #include <cassert>
<mask> #include <exception>
<mask> #include <memory>
<mask> #include <folly/ExceptionString.h>
<mask> #include <folly/detail/ExceptionWrapper.h>
<mask>
<mask> namespace folly {
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add #include <folly/portability/BitsFunctexcept.h> </s> remove #include <initializer_list>
</s> add </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <folly/dynamic.h>
#include <folly/portability/BitsFunctexcept.h> </s> add #include <folly/detail/TryDetail.h> </s> remove #include <folly/dynamic.h>
</s> add
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ExceptionWrapper.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> explicit exception_wrapper(std::exception_ptr eptr) {
<mask> assign_eptr(eptr);
<mask> }
<mask>
<mask> void throwException() const {
<mask> if (throwfn_) {
<mask> throwfn_(item_.get());
<mask> } else if (eptr_) {
<mask> std::rethrow_exception(eptr_);
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add std::cerr
<< "Cannot use `throwException` with an empty folly::exception_wrapper"
<< std::endl;
std::terminate(); </s> remove [children addObject:child];
} else if (child == rootVC.view) {
</s> add UIViewController *vc = [FBSDKViewHierarchy getParentViewController:child];
if (vc != nil && vc.view == child) {
[children addObject:vc];
} else {
[children addObject:child];
}
} else { </s> remove ml_.capacity_ = kIsLittleEndian
? maxSmallSize << (8 * (sizeof(size_t) - sizeof(Char)))
: maxSmallSize << 2;
small_[0] = '\0';
FBSTRING_ASSERT(category() == Category::isSmall && size() == 0);
</s> add setSmallSize(0);
}
FOLLY_MALLOC_NOINLINE void destroyMediumLarge() noexcept {
auto const c = category();
FBSTRING_ASSERT(c != Category::isSmall);
if (c == Category::isMedium) {
free(ml_.data_);
} else {
RefCounted::decrementRefs(ml_.data_);
} </s> remove for (NSObject *child in subviews) {
[children addObject:child];
</s> add for (UIView *child in subviews) {
UIViewController *vc = [FBSDKViewHierarchy getParentViewController:child];
if (vc && vc.view == child) {
[children addObject:vc];
} else {
[children addObject:child];
} </s> remove : meta_(threadlocal_detail::StaticMeta<Tag>::instance()),
lock_(&meta_.lock_) {
</s> add : meta_(threadlocal_detail::StaticMeta<Tag, AccessMode>::instance()),
accessAllThreadsLock_(&meta_.accessAllThreadsLock_),
lock_(&meta_.lock_) {
accessAllThreadsLock_->lock(); </s> remove inline void fbstring_core<Char>::reserveMedium(const size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveMedium(
const size_t minCapacity) {
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ExceptionWrapper.h
|
keep add keep keep keep keep keep keep
|
<mask> std::rethrow_exception(eptr_);
<mask> }
<mask> }
<mask>
<mask> explicit operator bool() const {
<mask> return item_ || eptr_;
<mask> }
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove void throwException() const {
</s> add // If the exception_wrapper does not contain an exception, std::terminate()
// is invoked to assure the [[noreturn]] behaviour.
[[noreturn]] void throwException() const { </s> remove throwException();
</s> add if (*this) {
throwException();
} </s> remove const Char * c_str() const {
auto const c = category();
if (c == Category::isSmall) {
FBSTRING_ASSERT(small_[smallSize()] == '\0');
return small_;
}
FBSTRING_ASSERT(c == Category::isMedium || c == Category::isLarge);
FBSTRING_ASSERT(ml_.data_[ml_.size_] == '\0');
return ml_.data_;
</s> add const Char* c_str() const {
const Char* ptr = ml_.data_;
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ptr = (category() == Category::isSmall) ? small_ : ptr;
return ptr; </s> add !strcmp(term, "screen-256color") || </s> remove explicit StaticMetaBase(ThreadEntry* (*threadEntry)());
</s> add StaticMetaBase(ThreadEntry* (*threadEntry)(), bool strict); </s> remove auto const c = category();
if (c == Category::isSmall) {
return;
}
if (c == Category::isMedium) {
free(ml_.data_);
</s> add if (category() == Category::isSmall) {
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ExceptionWrapper.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> !std::is_base_of<std::exception, typename std::decay<Ex>::type>::value,
<mask> bool>::type
<mask> with_exception(F f) const {
<mask> try {
<mask> throwException();
<mask> } catch (typename std::decay<Ex>::type& e) {
<mask> f(e);
<mask> return true;
<mask> } catch (...) {
<mask> // fall through
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove throwException();
</s> add if (*this) {
throwException();
} </s> remove inline constexpr
typename std::enable_if<
std::is_integral<T>::value && std::is_unsigned<T>::value,
bool>::type
</s> add inline FOLLY_INTRINSIC_CONSTEXPR typename std::
enable_if<std::is_integral<T>::value && std::is_unsigned<T>::value, T>::type
prevPowTwo(T v) {
return v ? (T(1) << (findLastSet(v) - 1)) : 0;
}
template <class T>
inline constexpr typename std::enable_if<
std::is_integral<T>::value && std::is_unsigned<T>::value,
bool>::type </s> remove return std::addressof(**this);
</s> add return getPointer(it_, 0); </s> remove return std::addressof(**this);
</s> add return getPointer(it_, 0); </s> remove out, out_size, start_address)) {
</s> add out, out_size, base_address)) { </s> add namespace glog_internal_namespace_ {
bool IsFailureSignalHandlerInstalled() {
#ifdef HAVE_SIGACTION
struct sigaction sig_action;
memset(&sig_action, 0, sizeof(sig_action));
sigemptyset(&sig_action.sa_mask);
sigaction(SIGABRT, NULL, &sig_action);
if (sig_action.sa_sigaction == &FailureSignalHandler)
return true;
#endif // HAVE_SIGACTION
return false;
}
} // namespace glog_internal_namespace_
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ExceptionWrapper.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> return eptr_;
<mask> }
<mask>
<mask> try {
<mask> throwException();
<mask> } catch (...) {
<mask> return std::current_exception();
<mask> }
<mask> return std::exception_ptr();
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove throwException();
</s> add if (*this) {
throwException();
} </s> add std::cerr
<< "Cannot use `throwException` with an empty folly::exception_wrapper"
<< std::endl;
std::terminate(); </s> remove out, out_size, start_address)) {
</s> add out, out_size, base_address)) { </s> remove inline dynamic::ObjectMaker dynamic::object(dynamic const& a, dynamic&& b) {
return ObjectMaker(a, std::move(b));
}
inline dynamic::ObjectMaker dynamic::object(dynamic&& a, dynamic const& b) {
return ObjectMaker(std::move(a), b);
}
inline dynamic::ObjectMaker
dynamic::object(dynamic const& a, dynamic const& b) {
return ObjectMaker(a, b);
}
</s> add </s> remove return std::addressof(**this);
</s> add return getPointer(it_, 0); </s> remove return std::addressof(**this);
</s> add return getPointer(it_, 0);
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ExceptionWrapper.h
|
keep keep keep replace keep replace keep keep keep keep
|
<mask> union {
<mask> Value value_;
<mask> Error error_;
<mask> char ch_;
<mask> };
<mask> Which which_;
<mask>
<mask> explicit constexpr ExpectedUnion(EmptyTag) noexcept
<mask> : ch_{}, which_(Which::eEmpty) {}
<mask> template <class... Vs>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove explicit constexpr ExpectedUnion(EmptyTag) noexcept
: ch_{}, which_(Which::eEmpty) {}
</s> add explicit constexpr ExpectedUnion(EmptyTag) noexcept {} </s> remove typedef threadlocal_detail::StaticMeta<Tag> StaticMeta;
</s> add typedef threadlocal_detail::StaticMeta<Tag, AccessMode> StaticMeta;
</s> remove explicit ObjectMaker(dynamic const& key, dynamic val)
: val_(dynamic::object)
{
val_.insert(key, std::move(val));
}
explicit ObjectMaker(dynamic&& key, dynamic val)
</s> add explicit ObjectMaker(dynamic key, dynamic val) </s> add // Raw pointers don't have an operator->() member function, so the
// second overload will be SFINAEd out in that case. Otherwise, the
// second is preferred in the partial order for getPointer(_, 0).
template <class Iterator>
auto getPointer(const Iterator& it, long) -> decltype(std::addressof(*it)) {
return std::addressof(*it);
}
template <class Iterator>
auto getPointer(const Iterator& it, int) -> decltype(it.operator->()) {
return it.operator->();
}
</s> add inline dynamic::dynamic() : dynamic(nullptr) {}
inline dynamic::dynamic(std::nullptr_t) : type_(NULLT) {}
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/Expected.h
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask> char ch_;
<mask> };
<mask> Which which_;
<mask>
<mask> explicit constexpr ExpectedUnion(EmptyTag) noexcept
<mask> : ch_{}, which_(Which::eEmpty) {}
<mask> template <class... Vs>
<mask> explicit constexpr ExpectedUnion(ValueTag, Vs&&... vs) noexcept(
<mask> noexcept(Value(static_cast<Vs&&>(vs)...)))
<mask> : value_(static_cast<Vs&&>(vs)...), which_(Which::eValue) {}
<mask> template <class... Es>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove Which which_;
</s> add Which which_ = Which::eEmpty; </s> remove char ch_;
</s> add char ch_{}; </s> remove typedef threadlocal_detail::StaticMeta<Tag> StaticMeta;
</s> add typedef threadlocal_detail::StaticMeta<Tag, AccessMode> StaticMeta;
</s> remove explicit ObjectMaker(dynamic const& key, dynamic val)
: val_(dynamic::object)
{
val_.insert(key, std::move(val));
}
explicit ObjectMaker(dynamic&& key, dynamic val)
</s> add explicit ObjectMaker(dynamic key, dynamic val) </s> remove template<class T, class Tag=void>
</s> add template <class T, class Tag = void, class AccessMode = void> </s> remove : meta_(threadlocal_detail::StaticMeta<Tag>::instance()),
lock_(nullptr),
id_(0) {
}
</s> add : meta_(threadlocal_detail::StaticMeta<Tag, AccessMode>::instance()),
accessAllThreadsLock_(nullptr),
lock_(nullptr),
id_(0) {}
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/Expected.h
|
keep keep add keep keep keep keep
|
<mask> */
<mask> template <class Pod>
<mask> inline void podCopy(const Pod* b, const Pod* e, Pod* d) {
<mask> FBSTRING_ASSERT(e >= b);
<mask> FBSTRING_ASSERT(d >= e || d + (e - b) <= b);
<mask> memcpy(d, b, (e - b) * sizeof(Pod));
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add FOLLY_MALLOC_NOINLINE </s> remove inline dynamic::ObjectMaker dynamic::object(dynamic const& a, dynamic&& b) {
return ObjectMaker(a, std::move(b));
}
inline dynamic::ObjectMaker dynamic::object(dynamic&& a, dynamic const& b) {
return ObjectMaker(std::move(a), b);
}
inline dynamic::ObjectMaker
dynamic::object(dynamic const& a, dynamic const& b) {
return ObjectMaker(a, b);
}
</s> add </s> remove inline void fbstring_core<Char>::reserveSmall(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveSmall( </s> remove inline dynamic::ObjectMaker dynamic::object(dynamic&& a, dynamic&& b) {
</s> add inline dynamic::ObjectMaker dynamic::object(dynamic a, dynamic b) { </s> remove inline void fbstring_core<Char>::reserveMedium(const size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveMedium(
const size_t minCapacity) { </s> remove inline void fbstring_core<Char>::initMedium(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initMedium(
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep replace replace replace replace replace replace keep keep replace keep keep
|
<mask> }
<mask>
<mask> ~fbstring_core() noexcept {
<mask> auto const c = category();
<mask> if (c == Category::isSmall) {
<mask> return;
<mask> }
<mask> if (c == Category::isMedium) {
<mask> free(ml_.data_);
<mask> return;
<mask> }
<mask> RefCounted::decrementRefs(ml_.data_);
<mask> }
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove ml_.capacity_ = kIsLittleEndian
? maxSmallSize << (8 * (sizeof(size_t) - sizeof(Char)))
: maxSmallSize << 2;
small_[0] = '\0';
FBSTRING_ASSERT(category() == Category::isSmall && size() == 0);
</s> add setSmallSize(0);
}
FOLLY_MALLOC_NOINLINE void destroyMediumLarge() noexcept {
auto const c = category();
FBSTRING_ASSERT(c != Category::isSmall);
if (c == Category::isMedium) {
free(ml_.data_);
} else {
RefCounted::decrementRefs(ml_.data_);
} </s> remove const Char * c_str() const {
auto const c = category();
if (c == Category::isSmall) {
FBSTRING_ASSERT(small_[smallSize()] == '\0');
return small_;
}
FBSTRING_ASSERT(c == Category::isMedium || c == Category::isLarge);
FBSTRING_ASSERT(ml_.data_[ml_.size_] == '\0');
return ml_.data_;
</s> add const Char* c_str() const {
const Char* ptr = ml_.data_;
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ptr = (category() == Category::isSmall) ? small_ : ptr;
return ptr; </s> remove inline void fbstring_core<Char>::reserveMedium(const size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveMedium(
const size_t minCapacity) { </s> remove throw std::out_of_range("Key does not exist");
</s> add std::__throw_out_of_range("Key does not exist"); </s> remove if (![[FBSDKServerConfigurationManager cachedServerConfiguration] isDefaults]) {
</s> add if (![[FBSDKServerConfigurationManager cachedServerConfiguration] isDefaults]
&& [[NSDate date] timeIntervalSinceDate:[FBSDKServerConfigurationManager cachedServerConfiguration].timestamp]
< FBSDK_SERVER_CONFIGURATION_MANAGER_CACHE_TIMEOUT) {
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> }
<mask> fbstring_detail::assume_unreachable();
<mask> }
<mask>
<mask> const Char * c_str() const {
<mask> auto const c = category();
<mask> if (c == Category::isSmall) {
<mask> FBSTRING_ASSERT(small_[smallSize()] == '\0');
<mask> return small_;
<mask> }
<mask> FBSTRING_ASSERT(c == Category::isMedium || c == Category::isLarge);
<mask> FBSTRING_ASSERT(ml_.data_[ml_.size_] == '\0');
<mask> return ml_.data_;
<mask> }
<mask>
<mask> void shrink(const size_t delta) {
<mask> if (category() == Category::isSmall) {
<mask> shrinkSmall(delta);
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove auto const c = category();
if (c == Category::isSmall) {
return;
}
if (c == Category::isMedium) {
free(ml_.data_);
</s> add if (category() == Category::isSmall) { </s> remove ml_.capacity_ = kIsLittleEndian
? maxSmallSize << (8 * (sizeof(size_t) - sizeof(Char)))
: maxSmallSize << 2;
small_[0] = '\0';
FBSTRING_ASSERT(category() == Category::isSmall && size() == 0);
</s> add setSmallSize(0);
}
FOLLY_MALLOC_NOINLINE void destroyMediumLarge() noexcept {
auto const c = category();
FBSTRING_ASSERT(c != Category::isSmall);
if (c == Category::isMedium) {
free(ml_.data_);
} else {
RefCounted::decrementRefs(ml_.data_);
} </s> remove return category() == Category::isSmall ? smallSize() : ml_.size_;
</s> add size_t ret = ml_.size_;
/* static */ if (kIsLittleEndian) {
// We can save a couple instructions, because the category is
// small iff the last char, as unsigned, is <= maxSmallSize.
typedef typename std::make_unsigned<Char>::type UChar;
auto maybeSmallSize = size_t(maxSmallSize) -
size_t(static_cast<UChar>(small_[maxSmallSize]));
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ret = (static_cast<ssize_t>(maybeSmallSize) >= 0) ? maybeSmallSize : ret;
} else {
ret = (category() == Category::isSmall) ? smallSize() : ret;
}
return ret; </s> remove inline void fbstring_core<Char>::copyMedium(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyMedium(
const fbstring_core& rhs) { </s> remove inline void fbstring_core<Char>::copyLarge(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyLarge(
const fbstring_core& rhs) { </s> remove throw std::out_of_range("Key does not exist");
</s> add std::__throw_out_of_range("Key does not exist");
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep add keep keep keep keep
|
<mask> }
<mask> }
<mask>
<mask> void reserve(size_t minCapacity, bool disableSSO = FBSTRING_DISABLE_SSO) {
<mask> switch (category()) {
<mask> case Category::isSmall:
<mask> reserveSmall(minCapacity, disableSSO);
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return category() == Category::isSmall ? smallSize() : ml_.size_;
</s> add size_t ret = ml_.size_;
/* static */ if (kIsLittleEndian) {
// We can save a couple instructions, because the category is
// small iff the last char, as unsigned, is <= maxSmallSize.
typedef typename std::make_unsigned<Char>::type UChar;
auto maybeSmallSize = size_t(maxSmallSize) -
size_t(static_cast<UChar>(small_[maxSmallSize]));
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ret = (static_cast<ssize_t>(maybeSmallSize) >= 0) ? maybeSmallSize : ret;
} else {
ret = (category() == Category::isSmall) ? smallSize() : ret;
}
return ret; </s> remove inline void fbstring_core<Char>::reserveSmall(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveSmall( </s> add namespace glog_internal_namespace_ {
bool IsFailureSignalHandlerInstalled() {
#ifdef HAVE_SIGACTION
struct sigaction sig_action;
memset(&sig_action, 0, sizeof(sig_action));
sigemptyset(&sig_action.sa_mask);
sigaction(SIGABRT, NULL, &sig_action);
if (sig_action.sa_sigaction == &FailureSignalHandler)
return true;
#endif // HAVE_SIGACTION
return false;
}
} // namespace glog_internal_namespace_
</s> remove return dynamic(Array{std::forward<Args>(args)...}, PrivateTag());
</s> add return dynamic(Array{std::forward<Args>(args)...}); </s> add DCHECK(accessAllThreadsLock_ != nullptr);
accessAllThreadsLock_->unlock(); </s> remove : meta_(threadlocal_detail::StaticMeta<Tag>::instance()),
lock_(&meta_.lock_) {
</s> add : meta_(threadlocal_detail::StaticMeta<Tag, AccessMode>::instance()),
accessAllThreadsLock_(&meta_.accessAllThreadsLock_),
lock_(&meta_.lock_) {
accessAllThreadsLock_->lock();
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> *expandNoinit(1, /* expGrowth = */ true) = c;
<mask> }
<mask>
<mask> size_t size() const {
<mask> return category() == Category::isSmall ? smallSize() : ml_.size_;
<mask> }
<mask>
<mask> size_t capacity() const {
<mask> switch (category()) {
<mask> case Category::isSmall:
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add FOLLY_MALLOC_NOINLINE </s> remove enum : size_t {
lastChar = sizeof(MediumLarge) - 1,
maxSmallSize = lastChar / sizeof(Char),
maxMediumSize = 254 / sizeof(Char), // coincides with the small
// bin size in dlmalloc
categoryExtractMask = kIsLittleEndian
? sizeof(size_t) == 4 ? 0xC0000000 : size_t(0xC000000000000000)
: 0x3,
capacityExtractMask = kIsLittleEndian
? ~categoryExtractMask
: 0x0 /*unused*/,
};
</s> add constexpr static size_t lastChar = sizeof(MediumLarge) - 1;
constexpr static size_t maxSmallSize = lastChar / sizeof(Char);
constexpr static size_t maxMediumSize = 254 / sizeof(Char);
constexpr static uint8_t categoryExtractMask = kIsLittleEndian ? 0xC0 : 0x3;
constexpr static size_t kCategoryShift = (sizeof(size_t) - 1) * 8;
constexpr static size_t capacityExtractMask = kIsLittleEndian
? ~(size_t(categoryExtractMask) << kCategoryShift)
: 0x0 /* unused */;
</s> remove const Char * c_str() const {
auto const c = category();
if (c == Category::isSmall) {
FBSTRING_ASSERT(small_[smallSize()] == '\0');
return small_;
}
FBSTRING_ASSERT(c == Category::isMedium || c == Category::isLarge);
FBSTRING_ASSERT(ml_.data_[ml_.size_] == '\0');
return ml_.data_;
</s> add const Char* c_str() const {
const Char* ptr = ml_.data_;
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ptr = (category() == Category::isSmall) ? small_ : ptr;
return ptr; </s> remove ml_.capacity_ = kIsLittleEndian
? maxSmallSize << (8 * (sizeof(size_t) - sizeof(Char)))
: maxSmallSize << 2;
small_[0] = '\0';
FBSTRING_ASSERT(category() == Category::isSmall && size() == 0);
</s> add setSmallSize(0);
}
FOLLY_MALLOC_NOINLINE void destroyMediumLarge() noexcept {
auto const c = category();
FBSTRING_ASSERT(c != Category::isSmall);
if (c == Category::isMedium) {
free(ml_.data_);
} else {
RefCounted::decrementRefs(ml_.data_);
} </s> remove isMedium = kIsLittleEndian
? sizeof(size_t) == 4 ? 0x80000000 : 0x8000000000000000
: 0x2,
isLarge = kIsLittleEndian
? sizeof(size_t) == 4 ? 0x40000000 : 0x4000000000000000
: 0x1,
</s> add isMedium = kIsLittleEndian ? 0x80 : 0x2,
isLarge = kIsLittleEndian ? 0x40 : 0x1, </s> remove fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
</s> add if (FBSTRING_LIKELY(effectiveSize > 0)) {
fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
}
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep replace replace keep replace replace replace replace replace keep keep keep keep
|
<mask> // Disabled
<mask> fbstring_core & operator=(const fbstring_core & rhs);
<mask>
<mask> // Equivalent to setSmallSize(0) but a few ns faster in
<mask> // microbenchmarks.
<mask> void reset() {
<mask> ml_.capacity_ = kIsLittleEndian
<mask> ? maxSmallSize << (8 * (sizeof(size_t) - sizeof(Char)))
<mask> : maxSmallSize << 2;
<mask> small_[0] = '\0';
<mask> FBSTRING_ASSERT(category() == Category::isSmall && size() == 0);
<mask> }
<mask>
<mask> struct RefCounted {
<mask> std::atomic<size_t> refCount_;
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove enum : size_t {
lastChar = sizeof(MediumLarge) - 1,
maxSmallSize = lastChar / sizeof(Char),
maxMediumSize = 254 / sizeof(Char), // coincides with the small
// bin size in dlmalloc
categoryExtractMask = kIsLittleEndian
? sizeof(size_t) == 4 ? 0xC0000000 : size_t(0xC000000000000000)
: 0x3,
capacityExtractMask = kIsLittleEndian
? ~categoryExtractMask
: 0x0 /*unused*/,
};
</s> add constexpr static size_t lastChar = sizeof(MediumLarge) - 1;
constexpr static size_t maxSmallSize = lastChar / sizeof(Char);
constexpr static size_t maxMediumSize = 254 / sizeof(Char);
constexpr static uint8_t categoryExtractMask = kIsLittleEndian ? 0xC0 : 0x3;
constexpr static size_t kCategoryShift = (sizeof(size_t) - 1) * 8;
constexpr static size_t capacityExtractMask = kIsLittleEndian
? ~(size_t(categoryExtractMask) << kCategoryShift)
: 0x0 /* unused */;
</s> remove capacity_ = kIsLittleEndian
? cap | static_cast<category_type>(cat)
: (cap << 2) | static_cast<category_type>(cat);
</s> add capacity_ = kIsLittleEndian
? cap | (static_cast<size_t>(cat) << kCategoryShift)
: (cap << 2) | static_cast<size_t>(cat); </s> remove isMedium = kIsLittleEndian
? sizeof(size_t) == 4 ? 0x80000000 : 0x8000000000000000
: 0x2,
isLarge = kIsLittleEndian
? sizeof(size_t) == 4 ? 0x40000000 : 0x4000000000000000
: 0x1,
</s> add isMedium = kIsLittleEndian ? 0x80 : 0x2,
isLarge = kIsLittleEndian ? 0x40 : 0x1, </s> remove inline void fbstring_core<Char>::copyLarge(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyLarge(
const fbstring_core& rhs) { </s> remove inline void fbstring_core<Char>::copyMedium(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyMedium(
const fbstring_core& rhs) {
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> static RefCounted * create(const Char * data, size_t * size) {
<mask> const size_t effectiveSize = *size;
<mask> auto result = create(size);
<mask> fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
<mask> return result;
<mask> }
<mask>
<mask> static RefCounted * reallocate(Char *const data,
<mask> const size_t currentSize,
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove inline void fbstring_core<Char>::initMedium(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initMedium( </s> remove inline void fbstring_core<Char>::initLarge(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initLarge( </s> remove enum : size_t {
lastChar = sizeof(MediumLarge) - 1,
maxSmallSize = lastChar / sizeof(Char),
maxMediumSize = 254 / sizeof(Char), // coincides with the small
// bin size in dlmalloc
categoryExtractMask = kIsLittleEndian
? sizeof(size_t) == 4 ? 0xC0000000 : size_t(0xC000000000000000)
: 0x3,
capacityExtractMask = kIsLittleEndian
? ~categoryExtractMask
: 0x0 /*unused*/,
};
</s> add constexpr static size_t lastChar = sizeof(MediumLarge) - 1;
constexpr static size_t maxSmallSize = lastChar / sizeof(Char);
constexpr static size_t maxMediumSize = 254 / sizeof(Char);
constexpr static uint8_t categoryExtractMask = kIsLittleEndian ? 0xC0 : 0x3;
constexpr static size_t kCategoryShift = (sizeof(size_t) - 1) * 8;
constexpr static size_t capacityExtractMask = kIsLittleEndian
? ~(size_t(categoryExtractMask) << kCategoryShift)
: 0x0 /* unused */;
</s> remove fbstring_detail::podCopy(data, data + size, ml_.data_);
</s> add if (FBSTRING_LIKELY(size > 0)) {
fbstring_detail::podCopy(data, data + size, ml_.data_);
} </s> remove return static_cast<Category>(ml_.capacity_ & categoryExtractMask);
</s> add return static_cast<Category>(bytes_[lastChar] & categoryExtractMask); </s> remove const Char * c_str() const {
auto const c = category();
if (c == Category::isSmall) {
FBSTRING_ASSERT(small_[smallSize()] == '\0');
return small_;
}
FBSTRING_ASSERT(c == Category::isMedium || c == Category::isLarge);
FBSTRING_ASSERT(ml_.data_[ml_.size_] == '\0');
return ml_.data_;
</s> add const Char* c_str() const {
const Char* ptr = ml_.data_;
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ptr = (category() == Category::isSmall) ? small_ : ptr;
return ptr;
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep replace replace keep keep keep replace replace replace replace replace replace keep keep keep
|
<mask>
<mask> typedef std::conditional<sizeof(size_t) == 4, uint32_t, uint64_t>::type
<mask> category_type;
<mask>
<mask> enum class Category : category_type {
<mask> isSmall = 0,
<mask> isMedium = kIsLittleEndian
<mask> ? sizeof(size_t) == 4 ? 0x80000000 : 0x8000000000000000
<mask> : 0x2,
<mask> isLarge = kIsLittleEndian
<mask> ? sizeof(size_t) == 4 ? 0x40000000 : 0x4000000000000000
<mask> : 0x1,
<mask> };
<mask>
<mask> Category category() const {
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove enum : size_t {
lastChar = sizeof(MediumLarge) - 1,
maxSmallSize = lastChar / sizeof(Char),
maxMediumSize = 254 / sizeof(Char), // coincides with the small
// bin size in dlmalloc
categoryExtractMask = kIsLittleEndian
? sizeof(size_t) == 4 ? 0xC0000000 : size_t(0xC000000000000000)
: 0x3,
capacityExtractMask = kIsLittleEndian
? ~categoryExtractMask
: 0x0 /*unused*/,
};
</s> add constexpr static size_t lastChar = sizeof(MediumLarge) - 1;
constexpr static size_t maxSmallSize = lastChar / sizeof(Char);
constexpr static size_t maxMediumSize = 254 / sizeof(Char);
constexpr static uint8_t categoryExtractMask = kIsLittleEndian ? 0xC0 : 0x3;
constexpr static size_t kCategoryShift = (sizeof(size_t) - 1) * 8;
constexpr static size_t capacityExtractMask = kIsLittleEndian
? ~(size_t(categoryExtractMask) << kCategoryShift)
: 0x0 /* unused */;
</s> remove capacity_ = kIsLittleEndian
? cap | static_cast<category_type>(cat)
: (cap << 2) | static_cast<category_type>(cat);
</s> add capacity_ = kIsLittleEndian
? cap | (static_cast<size_t>(cat) << kCategoryShift)
: (cap << 2) | static_cast<size_t>(cat); </s> remove return category() == Category::isSmall ? smallSize() : ml_.size_;
</s> add size_t ret = ml_.size_;
/* static */ if (kIsLittleEndian) {
// We can save a couple instructions, because the category is
// small iff the last char, as unsigned, is <= maxSmallSize.
typedef typename std::make_unsigned<Char>::type UChar;
auto maybeSmallSize = size_t(maxSmallSize) -
size_t(static_cast<UChar>(small_[maxSmallSize]));
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ret = (static_cast<ssize_t>(maybeSmallSize) >= 0) ? maybeSmallSize : ret;
} else {
ret = (category() == Category::isSmall) ? smallSize() : ret;
}
return ret; </s> remove int error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
</s> add uint64_t error = (remaining_decimals == 0 ? 0 : kDenominator / 2); </s> remove ml_.capacity_ = kIsLittleEndian
? maxSmallSize << (8 * (sizeof(size_t) - sizeof(Char)))
: maxSmallSize << 2;
small_[0] = '\0';
FBSTRING_ASSERT(category() == Category::isSmall && size() == 0);
</s> add setSmallSize(0);
}
FOLLY_MALLOC_NOINLINE void destroyMediumLarge() noexcept {
auto const c = category();
FBSTRING_ASSERT(c != Category::isSmall);
if (c == Category::isMedium) {
free(ml_.data_);
} else {
RefCounted::decrementRefs(ml_.data_);
}
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> };
<mask>
<mask> Category category() const {
<mask> // works for both big-endian and little-endian
<mask> return static_cast<Category>(ml_.capacity_ & categoryExtractMask);
<mask> }
<mask>
<mask> struct MediumLarge {
<mask> Char * data_;
<mask> size_t size_;
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove isMedium = kIsLittleEndian
? sizeof(size_t) == 4 ? 0x80000000 : 0x8000000000000000
: 0x2,
isLarge = kIsLittleEndian
? sizeof(size_t) == 4 ? 0x40000000 : 0x4000000000000000
: 0x1,
</s> add isMedium = kIsLittleEndian ? 0x80 : 0x2,
isLarge = kIsLittleEndian ? 0x40 : 0x1, </s> remove fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
</s> add if (FBSTRING_LIKELY(effectiveSize > 0)) {
fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
} </s> add uint8_t bytes_[sizeof(MediumLarge)]; // For accessing the last byte. </s> remove enum : size_t {
lastChar = sizeof(MediumLarge) - 1,
maxSmallSize = lastChar / sizeof(Char),
maxMediumSize = 254 / sizeof(Char), // coincides with the small
// bin size in dlmalloc
categoryExtractMask = kIsLittleEndian
? sizeof(size_t) == 4 ? 0xC0000000 : size_t(0xC000000000000000)
: 0x3,
capacityExtractMask = kIsLittleEndian
? ~categoryExtractMask
: 0x0 /*unused*/,
};
</s> add constexpr static size_t lastChar = sizeof(MediumLarge) - 1;
constexpr static size_t maxSmallSize = lastChar / sizeof(Char);
constexpr static size_t maxMediumSize = 254 / sizeof(Char);
constexpr static uint8_t categoryExtractMask = kIsLittleEndian ? 0xC0 : 0x3;
constexpr static size_t kCategoryShift = (sizeof(size_t) - 1) * 8;
constexpr static size_t capacityExtractMask = kIsLittleEndian
? ~(size_t(categoryExtractMask) << kCategoryShift)
: 0x0 /* unused */;
</s> remove const Char * c_str() const {
auto const c = category();
if (c == Category::isSmall) {
FBSTRING_ASSERT(small_[smallSize()] == '\0');
return small_;
}
FBSTRING_ASSERT(c == Category::isMedium || c == Category::isLarge);
FBSTRING_ASSERT(ml_.data_[ml_.size_] == '\0');
return ml_.data_;
</s> add const Char* c_str() const {
const Char* ptr = ml_.data_;
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ptr = (category() == Category::isSmall) ? small_ : ptr;
return ptr; </s> remove inline void fbstring_core<Char>::initMedium(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initMedium(
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> : capacity_ >> 2;
<mask> }
<mask>
<mask> void setCapacity(size_t cap, Category cat) {
<mask> capacity_ = kIsLittleEndian
<mask> ? cap | static_cast<category_type>(cat)
<mask> : (cap << 2) | static_cast<category_type>(cat);
<mask> }
<mask> };
<mask>
<mask> union {
<mask> Char small_[sizeof(MediumLarge) / sizeof(Char)];
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove enum : size_t {
lastChar = sizeof(MediumLarge) - 1,
maxSmallSize = lastChar / sizeof(Char),
maxMediumSize = 254 / sizeof(Char), // coincides with the small
// bin size in dlmalloc
categoryExtractMask = kIsLittleEndian
? sizeof(size_t) == 4 ? 0xC0000000 : size_t(0xC000000000000000)
: 0x3,
capacityExtractMask = kIsLittleEndian
? ~categoryExtractMask
: 0x0 /*unused*/,
};
</s> add constexpr static size_t lastChar = sizeof(MediumLarge) - 1;
constexpr static size_t maxSmallSize = lastChar / sizeof(Char);
constexpr static size_t maxMediumSize = 254 / sizeof(Char);
constexpr static uint8_t categoryExtractMask = kIsLittleEndian ? 0xC0 : 0x3;
constexpr static size_t kCategoryShift = (sizeof(size_t) - 1) * 8;
constexpr static size_t capacityExtractMask = kIsLittleEndian
? ~(size_t(categoryExtractMask) << kCategoryShift)
: 0x0 /* unused */;
</s> add uint8_t bytes_[sizeof(MediumLarge)]; // For accessing the last byte. </s> remove isMedium = kIsLittleEndian
? sizeof(size_t) == 4 ? 0x80000000 : 0x8000000000000000
: 0x2,
isLarge = kIsLittleEndian
? sizeof(size_t) == 4 ? 0x40000000 : 0x4000000000000000
: 0x1,
</s> add isMedium = kIsLittleEndian ? 0x80 : 0x2,
isLarge = kIsLittleEndian ? 0x40 : 0x1, </s> remove ml_.capacity_ = kIsLittleEndian
? maxSmallSize << (8 * (sizeof(size_t) - sizeof(Char)))
: maxSmallSize << 2;
small_[0] = '\0';
FBSTRING_ASSERT(category() == Category::isSmall && size() == 0);
</s> add setSmallSize(0);
}
FOLLY_MALLOC_NOINLINE void destroyMediumLarge() noexcept {
auto const c = category();
FBSTRING_ASSERT(c != Category::isSmall);
if (c == Category::isMedium) {
free(ml_.data_);
} else {
RefCounted::decrementRefs(ml_.data_);
} </s> remove typedef std::conditional<sizeof(size_t) == 4, uint32_t, uint64_t>::type
category_type;
</s> add typedef uint8_t category_type; </s> remove // Equivalent to setSmallSize(0) but a few ns faster in
// microbenchmarks.
</s> add
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep add keep keep keep keep
|
<mask>
<mask> union {
<mask> Char small_[sizeof(MediumLarge) / sizeof(Char)];
<mask> MediumLarge ml_;
<mask> };
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove capacity_ = kIsLittleEndian
? cap | static_cast<category_type>(cat)
: (cap << 2) | static_cast<category_type>(cat);
</s> add capacity_ = kIsLittleEndian
? cap | (static_cast<size_t>(cat) << kCategoryShift)
: (cap << 2) | static_cast<size_t>(cat); </s> remove enum : size_t {
lastChar = sizeof(MediumLarge) - 1,
maxSmallSize = lastChar / sizeof(Char),
maxMediumSize = 254 / sizeof(Char), // coincides with the small
// bin size in dlmalloc
categoryExtractMask = kIsLittleEndian
? sizeof(size_t) == 4 ? 0xC0000000 : size_t(0xC000000000000000)
: 0x3,
capacityExtractMask = kIsLittleEndian
? ~categoryExtractMask
: 0x0 /*unused*/,
};
</s> add constexpr static size_t lastChar = sizeof(MediumLarge) - 1;
constexpr static size_t maxSmallSize = lastChar / sizeof(Char);
constexpr static size_t maxMediumSize = 254 / sizeof(Char);
constexpr static uint8_t categoryExtractMask = kIsLittleEndian ? 0xC0 : 0x3;
constexpr static size_t kCategoryShift = (sizeof(size_t) - 1) * 8;
constexpr static size_t capacityExtractMask = kIsLittleEndian
? ~(size_t(categoryExtractMask) << kCategoryShift)
: 0x0 /* unused */;
</s> remove return static_cast<Category>(ml_.capacity_ & categoryExtractMask);
</s> add return static_cast<Category>(bytes_[lastChar] & categoryExtractMask); </s> remove char ch_;
</s> add char ch_{}; </s> remove fbstring_detail::podCopy(data, data + size, ml_.data_);
</s> add if (FBSTRING_LIKELY(size > 0)) {
fbstring_detail::podCopy(data, data + size, ml_.data_);
} </s> remove int error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
</s> add uint64_t error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> Char small_[sizeof(MediumLarge) / sizeof(Char)];
<mask> MediumLarge ml_;
<mask> };
<mask>
<mask> enum : size_t {
<mask> lastChar = sizeof(MediumLarge) - 1,
<mask> maxSmallSize = lastChar / sizeof(Char),
<mask> maxMediumSize = 254 / sizeof(Char), // coincides with the small
<mask> // bin size in dlmalloc
<mask> categoryExtractMask = kIsLittleEndian
<mask> ? sizeof(size_t) == 4 ? 0xC0000000 : size_t(0xC000000000000000)
<mask> : 0x3,
<mask> capacityExtractMask = kIsLittleEndian
<mask> ? ~categoryExtractMask
<mask> : 0x0 /*unused*/,
<mask> };
<mask> static_assert(!(sizeof(MediumLarge) % sizeof(Char)),
<mask> "Corrupt memory layout for fbstring.");
<mask>
<mask> size_t smallSize() const {
<mask> FBSTRING_ASSERT(category() == Category::isSmall);
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove isMedium = kIsLittleEndian
? sizeof(size_t) == 4 ? 0x80000000 : 0x8000000000000000
: 0x2,
isLarge = kIsLittleEndian
? sizeof(size_t) == 4 ? 0x40000000 : 0x4000000000000000
: 0x1,
</s> add isMedium = kIsLittleEndian ? 0x80 : 0x2,
isLarge = kIsLittleEndian ? 0x40 : 0x1, </s> remove capacity_ = kIsLittleEndian
? cap | static_cast<category_type>(cat)
: (cap << 2) | static_cast<category_type>(cat);
</s> add capacity_ = kIsLittleEndian
? cap | (static_cast<size_t>(cat) << kCategoryShift)
: (cap << 2) | static_cast<size_t>(cat); </s> remove typedef std::conditional<sizeof(size_t) == 4, uint32_t, uint64_t>::type
category_type;
</s> add typedef uint8_t category_type; </s> add uint8_t bytes_[sizeof(MediumLarge)]; // For accessing the last byte. </s> remove int error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
</s> add uint64_t error = (remaining_decimals == 0 ? 0 : kDenominator / 2); </s> remove return category() == Category::isSmall ? smallSize() : ml_.size_;
</s> add size_t ret = ml_.size_;
/* static */ if (kIsLittleEndian) {
// We can save a couple instructions, because the category is
// small iff the last char, as unsigned, is <= maxSmallSize.
typedef typename std::make_unsigned<Char>::type UChar;
auto maybeSmallSize = size_t(maxSmallSize) -
size_t(static_cast<UChar>(small_[maxSmallSize]));
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ret = (static_cast<ssize_t>(maybeSmallSize) >= 0) ? maybeSmallSize : ret;
} else {
ret = (category() == Category::isSmall) ? smallSize() : ret;
}
return ret;
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep add keep keep keep keep keep
|
<mask> void shrinkSmall(size_t delta);
<mask> void shrinkMedium(size_t delta);
<mask> void shrinkLarge(size_t delta);
<mask>
<mask> Char* mutableDataLarge();
<mask> };
<mask>
<mask> template <class Char>
<mask> inline void fbstring_core<Char>::copySmall(const fbstring_core& rhs) {
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove inline void fbstring_core<Char>::copyLarge(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyLarge(
const fbstring_core& rhs) { </s> remove inline void fbstring_core<Char>::copyMedium(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyMedium(
const fbstring_core& rhs) { </s> remove inline void fbstring_core<Char>::initLarge(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initLarge( </s> remove inline void fbstring_core<Char>::initMedium(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initMedium( </s> remove inline void fbstring_core<Char>::reserveSmall(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveSmall( </s> remove inline void fbstring_core<Char>::reserveMedium(const size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveMedium(
const size_t minCapacity) {
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> category() == Category::isSmall && this->size() == rhs.size());
<mask> }
<mask>
<mask> template <class Char>
<mask> inline void fbstring_core<Char>::copyMedium(const fbstring_core& rhs) {
<mask> // Medium strings are copied eagerly. Don't forget to allocate
<mask> // one extra Char for the null terminator.
<mask> auto const allocSize = goodMallocSize((1 + rhs.ml_.size_) * sizeof(Char));
<mask> ml_.data_ = static_cast<Char*>(checkedMalloc(allocSize));
<mask> // Also copies terminator.
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove inline void fbstring_core<Char>::initMedium(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initMedium( </s> remove fbstring_detail::podCopy(data, data + size, ml_.data_);
</s> add if (FBSTRING_LIKELY(size > 0)) {
fbstring_detail::podCopy(data, data + size, ml_.data_);
} </s> remove inline void fbstring_core<Char>::copyLarge(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyLarge(
const fbstring_core& rhs) { </s> remove if (RefCounted::refs(ml_.data_) > 1) {
// Ensure unique.
size_t effectiveCapacity = ml_.capacity();
auto const newRC = RefCounted::create(&effectiveCapacity);
// If this fails, someone placed the wrong capacity in an
// fbstring.
FBSTRING_ASSERT(effectiveCapacity >= ml_.capacity());
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique.
unshare(); </s> remove inline void fbstring_core<Char>::initLarge(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initLarge( </s> remove minCapacity = std::max(minCapacity, ml_.capacity());
auto const newRC = RefCounted::create(&minCapacity);
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
ml_.setCapacity(minCapacity, Category::isLarge);
// size remains unchanged
</s> add unshare(minCapacity);
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> FBSTRING_ASSERT(category() == Category::isMedium);
<mask> }
<mask>
<mask> template <class Char>
<mask> inline void fbstring_core<Char>::copyLarge(const fbstring_core& rhs) {
<mask> // Large strings are just refcounted
<mask> ml_ = rhs.ml_;
<mask> RefCounted::incrementRefs(ml_.data_);
<mask> FBSTRING_ASSERT(category() == Category::isLarge && size() == rhs.size());
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove inline void fbstring_core<Char>::copyMedium(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyMedium(
const fbstring_core& rhs) { </s> remove inline void fbstring_core<Char>::reserveMedium(const size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveMedium(
const size_t minCapacity) { </s> remove inline void fbstring_core<Char>::reserveSmall(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveSmall( </s> remove inline void fbstring_core<Char>::reserveLarge(size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveLarge(
size_t minCapacity) { </s> remove inline void fbstring_core<Char>::initLarge(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initLarge( </s> remove ml_.capacity_ = kIsLittleEndian
? maxSmallSize << (8 * (sizeof(size_t) - sizeof(Char)))
: maxSmallSize << 2;
small_[0] = '\0';
FBSTRING_ASSERT(category() == Category::isSmall && size() == 0);
</s> add setSmallSize(0);
}
FOLLY_MALLOC_NOINLINE void destroyMediumLarge() noexcept {
auto const c = category();
FBSTRING_ASSERT(c != Category::isSmall);
if (c == Category::isMedium) {
free(ml_.data_);
} else {
RefCounted::decrementRefs(ml_.data_);
}
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> setSmallSize(size);
<mask> }
<mask>
<mask> template <class Char>
<mask> inline void fbstring_core<Char>::initMedium(
<mask> const Char* const data, const size_t size) {
<mask> // Medium strings are allocated normally. Don't forget to
<mask> // allocate one extra Char for the terminating null.
<mask> auto const allocSize = goodMallocSize((1 + size) * sizeof(Char));
<mask> ml_.data_ = static_cast<Char*>(checkedMalloc(allocSize));
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove fbstring_detail::podCopy(data, data + size, ml_.data_);
</s> add if (FBSTRING_LIKELY(size > 0)) {
fbstring_detail::podCopy(data, data + size, ml_.data_);
} </s> remove inline void fbstring_core<Char>::copyMedium(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyMedium(
const fbstring_core& rhs) { </s> remove inline void fbstring_core<Char>::initLarge(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initLarge( </s> remove fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
</s> add if (FBSTRING_LIKELY(effectiveSize > 0)) {
fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
} </s> remove if (RefCounted::refs(ml_.data_) > 1) {
// Ensure unique.
size_t effectiveCapacity = ml_.capacity();
auto const newRC = RefCounted::create(&effectiveCapacity);
// If this fails, someone placed the wrong capacity in an
// fbstring.
FBSTRING_ASSERT(effectiveCapacity >= ml_.capacity());
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique.
unshare(); </s> remove inline void fbstring_core<Char>::copyLarge(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyLarge(
const fbstring_core& rhs) {
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> // Medium strings are allocated normally. Don't forget to
<mask> // allocate one extra Char for the terminating null.
<mask> auto const allocSize = goodMallocSize((1 + size) * sizeof(Char));
<mask> ml_.data_ = static_cast<Char*>(checkedMalloc(allocSize));
<mask> fbstring_detail::podCopy(data, data + size, ml_.data_);
<mask> ml_.size_ = size;
<mask> ml_.setCapacity(allocSize / sizeof(Char) - 1, Category::isMedium);
<mask> ml_.data_[size] = '\0';
<mask> }
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove inline void fbstring_core<Char>::initMedium(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initMedium( </s> remove inline void fbstring_core<Char>::copyMedium(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyMedium(
const fbstring_core& rhs) { </s> remove inline void fbstring_core<Char>::initLarge(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initLarge( </s> remove fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
</s> add if (FBSTRING_LIKELY(effectiveSize > 0)) {
fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
} </s> remove minCapacity = std::max(minCapacity, ml_.capacity());
auto const newRC = RefCounted::create(&minCapacity);
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
ml_.setCapacity(minCapacity, Category::isLarge);
// size remains unchanged
</s> add unshare(minCapacity); </s> remove if (RefCounted::refs(ml_.data_) > 1) {
// Ensure unique.
size_t effectiveCapacity = ml_.capacity();
auto const newRC = RefCounted::create(&effectiveCapacity);
// If this fails, someone placed the wrong capacity in an
// fbstring.
FBSTRING_ASSERT(effectiveCapacity >= ml_.capacity());
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique.
unshare();
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> ml_.data_[size] = '\0';
<mask> }
<mask>
<mask> template <class Char>
<mask> inline void fbstring_core<Char>::initLarge(
<mask> const Char* const data, const size_t size) {
<mask> // Large strings are allocated differently
<mask> size_t effectiveCapacity = size;
<mask> auto const newRC = RefCounted::create(data, &effectiveCapacity);
<mask> ml_.data_ = newRC->data_;
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove inline void fbstring_core<Char>::initMedium(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initMedium( </s> remove if (RefCounted::refs(ml_.data_) > 1) {
// Ensure unique.
size_t effectiveCapacity = ml_.capacity();
auto const newRC = RefCounted::create(&effectiveCapacity);
// If this fails, someone placed the wrong capacity in an
// fbstring.
FBSTRING_ASSERT(effectiveCapacity >= ml_.capacity());
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique.
unshare(); </s> remove fbstring_detail::podCopy(data, data + size, ml_.data_);
</s> add if (FBSTRING_LIKELY(size > 0)) {
fbstring_detail::podCopy(data, data + size, ml_.data_);
} </s> remove inline void fbstring_core<Char>::copyMedium(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyMedium(
const fbstring_core& rhs) { </s> remove inline void fbstring_core<Char>::copyLarge(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyLarge(
const fbstring_core& rhs) { </s> remove fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
</s> add if (FBSTRING_LIKELY(effectiveSize > 0)) {
fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
}
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask>
<mask> template <class Char>
<mask> inline Char* fbstring_core<Char>::mutableDataLarge() {
<mask> FBSTRING_ASSERT(category() == Category::isLarge);
<mask> if (RefCounted::refs(ml_.data_) > 1) {
<mask> // Ensure unique.
<mask> size_t effectiveCapacity = ml_.capacity();
<mask> auto const newRC = RefCounted::create(&effectiveCapacity);
<mask> // If this fails, someone placed the wrong capacity in an
<mask> // fbstring.
<mask> FBSTRING_ASSERT(effectiveCapacity >= ml_.capacity());
<mask> // Also copies terminator.
<mask> fbstring_detail::podCopy(
<mask> ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
<mask> RefCounted::decrementRefs(ml_.data_);
<mask> ml_.data_ = newRC->data_;
<mask> }
<mask> return ml_.data_;
<mask> }
<mask>
<mask> template <class Char>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove minCapacity = std::max(minCapacity, ml_.capacity());
auto const newRC = RefCounted::create(&minCapacity);
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
ml_.setCapacity(minCapacity, Category::isLarge);
// size remains unchanged
</s> add unshare(minCapacity); </s> remove inline void fbstring_core<Char>::initLarge(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initLarge( </s> remove inline void fbstring_core<Char>::reserveLarge(size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveLarge(
size_t minCapacity) { </s> remove inline void fbstring_core<Char>::copyMedium(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyMedium(
const fbstring_core& rhs) { </s> remove // Ensure unique
if (RefCounted::refs(ml_.data_) > 1) {
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique </s> remove inline void fbstring_core<Char>::initMedium(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initMedium(
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep replace keep replace replace keep keep
|
<mask> template <class Char>
<mask> inline void fbstring_core<Char>::reserveLarge(size_t minCapacity) {
<mask> FBSTRING_ASSERT(category() == Category::isLarge);
<mask> // Ensure unique
<mask> if (RefCounted::refs(ml_.data_) > 1) {
<mask> // We must make it unique regardless; in-place reallocation is
<mask> // useless if the string is shared. In order to not surprise
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove if (RefCounted::refs(ml_.data_) > 1) {
// Ensure unique.
size_t effectiveCapacity = ml_.capacity();
auto const newRC = RefCounted::create(&effectiveCapacity);
// If this fails, someone placed the wrong capacity in an
// fbstring.
FBSTRING_ASSERT(effectiveCapacity >= ml_.capacity());
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique.
unshare(); </s> remove inline void fbstring_core<Char>::reserveMedium(const size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveMedium(
const size_t minCapacity) { </s> remove minCapacity = std::max(minCapacity, ml_.capacity());
auto const newRC = RefCounted::create(&minCapacity);
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
ml_.setCapacity(minCapacity, Category::isLarge);
// size remains unchanged
</s> add unshare(minCapacity); </s> remove inline void fbstring_core<Char>::reserveSmall(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveSmall( </s> remove inline void fbstring_core<Char>::copyLarge(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyLarge(
const fbstring_core& rhs) {
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> // useless if the string is shared. In order to not surprise
<mask> // people, reserve the new block at current capacity or
<mask> // more. That way, a string's capacity never shrinks after a
<mask> // call to reserve.
<mask> minCapacity = std::max(minCapacity, ml_.capacity());
<mask> auto const newRC = RefCounted::create(&minCapacity);
<mask> // Also copies terminator.
<mask> fbstring_detail::podCopy(
<mask> ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
<mask> RefCounted::decrementRefs(ml_.data_);
<mask> ml_.data_ = newRC->data_;
<mask> ml_.setCapacity(minCapacity, Category::isLarge);
<mask> // size remains unchanged
<mask> } else {
<mask> // String is not shared, so let's try to realloc (if needed)
<mask> if (minCapacity > ml_.capacity()) {
<mask> // Asking for more memory
<mask> auto const newRC = RefCounted::reallocate(
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove // Ensure unique
if (RefCounted::refs(ml_.data_) > 1) {
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique </s> remove if (RefCounted::refs(ml_.data_) > 1) {
// Ensure unique.
size_t effectiveCapacity = ml_.capacity();
auto const newRC = RefCounted::create(&effectiveCapacity);
// If this fails, someone placed the wrong capacity in an
// fbstring.
FBSTRING_ASSERT(effectiveCapacity >= ml_.capacity());
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique.
unshare(); </s> remove inline void fbstring_core<Char>::reserveLarge(size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveLarge(
size_t minCapacity) { </s> remove inline void fbstring_core<Char>::copyMedium(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyMedium(
const fbstring_core& rhs) { </s> remove fbstring_detail::podCopy(data, data + size, ml_.data_);
</s> add if (FBSTRING_LIKELY(size > 0)) {
fbstring_detail::podCopy(data, data + size, ml_.data_);
} </s> remove inline void fbstring_core<Char>::initLarge(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initLarge(
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> }
<mask> }
<mask>
<mask> template <class Char>
<mask> inline void fbstring_core<Char>::reserveMedium(const size_t minCapacity) {
<mask> FBSTRING_ASSERT(category() == Category::isMedium);
<mask> // String is not shared
<mask> if (minCapacity <= ml_.capacity()) {
<mask> return; // nothing to do, there's enough room
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove inline void fbstring_core<Char>::reserveSmall(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveSmall( </s> remove inline void fbstring_core<Char>::reserveLarge(size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveLarge(
size_t minCapacity) { </s> remove inline void fbstring_core<Char>::copyLarge(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyLarge(
const fbstring_core& rhs) { </s> remove // Ensure unique
if (RefCounted::refs(ml_.data_) > 1) {
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique </s> remove if (RefCounted::refs(ml_.data_) > 1) {
// Ensure unique.
size_t effectiveCapacity = ml_.capacity();
auto const newRC = RefCounted::create(&effectiveCapacity);
// If this fails, someone placed the wrong capacity in an
// fbstring.
FBSTRING_ASSERT(effectiveCapacity >= ml_.capacity());
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique.
unshare(); </s> remove inline void fbstring_core<Char>::initLarge(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initLarge(
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> }
<mask> }
<mask>
<mask> template <class Char>
<mask> inline void fbstring_core<Char>::reserveSmall(
<mask> size_t minCapacity, const bool disableSSO) {
<mask> FBSTRING_ASSERT(category() == Category::isSmall);
<mask> if (!disableSSO && minCapacity <= maxSmallSize) {
<mask> // small
<mask> // Nothing to do, everything stays put
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove inline void fbstring_core<Char>::reserveMedium(const size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveMedium(
const size_t minCapacity) { </s> remove inline void fbstring_core<Char>::copyLarge(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyLarge(
const fbstring_core& rhs) { </s> remove inline void fbstring_core<Char>::reserveLarge(size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveLarge(
size_t minCapacity) { </s> remove if (RefCounted::refs(ml_.data_) > 1) {
// Ensure unique.
size_t effectiveCapacity = ml_.capacity();
auto const newRC = RefCounted::create(&effectiveCapacity);
// If this fails, someone placed the wrong capacity in an
// fbstring.
FBSTRING_ASSERT(effectiveCapacity >= ml_.capacity());
// Also copies terminator.
fbstring_detail::podCopy(
ml_.data_, ml_.data_ + ml_.size_ + 1, newRC->data_);
RefCounted::decrementRefs(ml_.data_);
ml_.data_ = newRC->data_;
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique.
unshare(); </s> remove inline void fbstring_core<Char>::initLarge(
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::initLarge( </s> remove inline void fbstring_core<Char>::copyMedium(const fbstring_core& rhs) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::copyMedium(
const fbstring_core& rhs) {
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep add keep keep keep keep keep keep
|
<mask> const A& /* a */ = A()) {
<mask> assign(str, pos, n);
<mask> }
<mask>
<mask> /* implicit */ basic_fbstring(const value_type* s, const A& /*a*/ = A())
<mask> : store_(s, traitsLength(s)) {}
<mask>
<mask> FOLLY_MALLOC_NOINLINE
<mask> basic_fbstring(const value_type* s, size_type n, const A& /*a*/ = A())
<mask> : store_(s, n) {
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove : store_(s, basic_fbstring::traitsLength(s)) {
}
</s> add : store_(s, traitsLength(s)) {} </s> add FOLLY_MALLOC_NOINLINE </s> add FOLLY_MALLOC_NOINLINE </s> add FOLLY_MALLOC_NOINLINE </s> remove return rfind(s, pos, traits_type::length(s));
</s> add return rfind(s, pos, traitsLength(s)); </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask> assign(str, pos, n);
<mask> }
<mask>
<mask> /* implicit */ basic_fbstring(const value_type* s, const A& /*a*/ = A())
<mask> : store_(s, basic_fbstring::traitsLength(s)) {
<mask> }
<mask>
<mask> basic_fbstring(const value_type* s, size_type n, const A& /*a*/ = A())
<mask> : store_(s, n) {
<mask> }
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add FOLLY_MALLOC_NOINLINE </s> add FOLLY_MALLOC_NOINLINE </s> add FOLLY_MALLOC_NOINLINE </s> add FOLLY_MALLOC_NOINLINE </s> remove return rfind(s, pos, traits_type::length(s));
</s> add return rfind(s, pos, traitsLength(s)); </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep add keep keep keep keep
|
<mask> : store_(s, traitsLength(s)) {}
<mask>
<mask> basic_fbstring(const value_type* s, size_type n, const A& /*a*/ = A())
<mask> : store_(s, n) {
<mask> }
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove : store_(s, basic_fbstring::traitsLength(s)) {
}
</s> add : store_(s, traitsLength(s)) {} </s> add FOLLY_MALLOC_NOINLINE </s> add FOLLY_MALLOC_NOINLINE </s> add FOLLY_MALLOC_NOINLINE </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s)); </s> remove return rfind(s, pos, traits_type::length(s));
</s> add return rfind(s, pos, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep add keep keep keep keep
|
<mask> basic_fbstring(const value_type* s, size_type n, const A& /*a*/ = A())
<mask> : store_(s, n) {
<mask> }
<mask>
<mask> basic_fbstring(size_type n, value_type c, const A& /*a*/ = A()) {
<mask> auto const pData = store_.expandNoinit(n);
<mask> fbstring_detail::podFill(pData, pData + n, c);
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add FOLLY_MALLOC_NOINLINE </s> remove : store_(s, basic_fbstring::traitsLength(s)) {
}
</s> add : store_(s, traitsLength(s)) {} </s> add FOLLY_MALLOC_NOINLINE </s> remove basic_fbstring(
</s> add FOLLY_MALLOC_NOINLINE basic_fbstring( </s> add FOLLY_MALLOC_NOINLINE </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> fbstring_detail::podFill(pData, pData + n, c);
<mask> }
<mask>
<mask> template <class InIt>
<mask> basic_fbstring(
<mask> InIt begin,
<mask> InIt end,
<mask> typename std::enable_if<
<mask> !std::is_same<InIt, value_type*>::value,
<mask> const A>::type& /*a*/ = A()) {
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add FOLLY_MALLOC_NOINLINE </s> add FOLLY_MALLOC_NOINLINE </s> remove : store_(s, basic_fbstring::traitsLength(s)) {
}
</s> add : store_(s, traitsLength(s)) {} </s> add FOLLY_MALLOC_NOINLINE </s> remove inline constexpr
typename std::enable_if<
std::is_integral<T>::value && std::is_unsigned<T>::value,
bool>::type
</s> add inline FOLLY_INTRINSIC_CONSTEXPR typename std::
enable_if<std::is_integral<T>::value && std::is_unsigned<T>::value, T>::type
prevPowTwo(T v) {
return v ? (T(1) << (findLastSet(v) - 1)) : 0;
}
template <class T>
inline constexpr typename std::enable_if<
std::is_integral<T>::value && std::is_unsigned<T>::value,
bool>::type </s> remove template <class T>
void doNotOptimizeAway(T&& datum) {
asm volatile("" : "+r" (datum));
</s> add namespace detail {
template <typename T>
struct DoNotOptimizeAwayNeedsIndirect {
using Decayed = typename std::decay<T>::type;
// First two constraints ensure it can be an "r" operand.
// std::is_pointer check is because callers seem to expect that
// doNotOptimizeAway(&x) is equivalent to doNotOptimizeAway(x).
constexpr static bool value = !folly::IsTriviallyCopyable<Decayed>::value ||
sizeof(Decayed) > sizeof(long) || std::is_pointer<Decayed>::value;
};
} // detail namespace
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"X"(datum));
}
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory");
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" : "+r"(datum));
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory");
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep add keep keep keep keep keep
|
<mask> assign(begin, end);
<mask> }
<mask>
<mask> // Specialization for const char*, const char*
<mask> basic_fbstring(const value_type* b, const value_type* e, const A& /*a*/ = A())
<mask> : store_(b, e - b) {
<mask> }
<mask>
<mask> // Nonstandard constructor
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add FOLLY_MALLOC_NOINLINE </s> remove : store_(s, basic_fbstring::traitsLength(s)) {
}
</s> add : store_(s, traitsLength(s)) {} </s> add FOLLY_MALLOC_NOINLINE </s> add FOLLY_MALLOC_NOINLINE </s> add FBSTRING_ASSERT(b != nullptr);
FBSTRING_ASSERT(e != nullptr);
FBSTRING_ASSERT(d != nullptr); </s> remove const size_type n1(size()), n2(traits_type::length(s));
</s> add const size_type n1(size()), n2(traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep add keep keep keep keep keep keep
|
<mask>
<mask> // Construction from initialization list
<mask> basic_fbstring(std::initializer_list<value_type> il) {
<mask> assign(il.begin(), il.end());
<mask> }
<mask>
<mask> ~basic_fbstring() noexcept {}
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove ~basic_fbstring() noexcept {
}
</s> add ~basic_fbstring() noexcept {} </s> remove return assign(s, traits_type::length(s));
</s> add return assign(s, traitsLength(s)); </s> remove inline dynamic::dynamic(std::initializer_list<dynamic> il)
: dynamic(Array(std::move(il)), PrivateTag()) {}
inline dynamic& dynamic::operator=(std::initializer_list<dynamic> il) {
(*this) = dynamic(Array(std::move(il)), PrivateTag());
return *this;
}
</s> add </s> remove new (&u_.string) std::string(s);
}
inline dynamic::dynamic(std::string&& s) : type_(STRING) {
</s> add </s> remove explicit constexpr ExpectedUnion(EmptyTag) noexcept
: ch_{}, which_(Which::eEmpty) {}
</s> add explicit constexpr ExpectedUnion(EmptyTag) noexcept {} </s> remove char ch_;
</s> add char ch_{};
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask> basic_fbstring(std::initializer_list<value_type> il) {
<mask> assign(il.begin(), il.end());
<mask> }
<mask>
<mask> ~basic_fbstring() noexcept {
<mask> }
<mask>
<mask> basic_fbstring& operator=(const basic_fbstring& lhs);
<mask>
<mask> // Move assignment
<mask> basic_fbstring& operator=(basic_fbstring&& goner) noexcept;
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return assign(s, traits_type::length(s));
</s> add return assign(s, traitsLength(s)); </s> add FOLLY_MALLOC_NOINLINE </s> remove return append(s, traits_type::length(s));
</s> add return append(s, traitsLength(s)); </s> remove return replace(i1, i2, s, traits_type::length(s));
</s> add return replace(i1, i2, s, traitsLength(s)); </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s)); </s> remove return replace(pos, n1, s, traits_type::length(s));
</s> add return replace(pos, n1, s, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> basic_fbstring& append(const value_type* s, size_type n);
<mask>
<mask> basic_fbstring& append(const value_type* s) {
<mask> return append(s, traits_type::length(s));
<mask> }
<mask>
<mask> basic_fbstring& append(size_type n, value_type c);
<mask>
<mask> template<class InputIterator>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s)); </s> remove return assign(s, traits_type::length(s));
</s> add return assign(s, traitsLength(s)); </s> remove return replace(i1, i2, s, traits_type::length(s));
</s> add return replace(i1, i2, s, traitsLength(s)); </s> remove return replace(pos, n1, s, traits_type::length(s));
</s> add return replace(pos, n1, s, traitsLength(s)); </s> add FOLLY_MALLOC_NOINLINE </s> remove return compare(pos1, n1, s, traits_type::length(s));
</s> add return compare(pos1, n1, s, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> basic_fbstring& assign(const value_type* s, const size_type n);
<mask>
<mask> basic_fbstring& assign(const value_type* s) {
<mask> return assign(s, traits_type::length(s));
<mask> }
<mask>
<mask> basic_fbstring& assign(std::initializer_list<value_type> il) {
<mask> return assign(il.begin(), il.end());
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return append(s, traits_type::length(s));
</s> add return append(s, traitsLength(s)); </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s)); </s> remove return replace(i1, i2, s, traits_type::length(s));
</s> add return replace(i1, i2, s, traitsLength(s)); </s> remove ~basic_fbstring() noexcept {
}
</s> add ~basic_fbstring() noexcept {} </s> remove return replace(pos, n1, s, traits_type::length(s));
</s> add return replace(pos, n1, s, traitsLength(s)); </s> remove return compare(pos1, n1, s, traits_type::length(s));
</s> add return compare(pos1, n1, s, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> return *this;
<mask> }
<mask>
<mask> basic_fbstring& insert(size_type pos, const value_type* s) {
<mask> return insert(pos, s, traits_type::length(s));
<mask> }
<mask>
<mask> basic_fbstring& insert(size_type pos, size_type n, value_type c) {
<mask> enforce(pos <= length(), std::__throw_out_of_range, "");
<mask> insert(begin() + pos, n, c);
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return append(s, traits_type::length(s));
</s> add return append(s, traitsLength(s)); </s> remove return replace(pos, n1, s, traits_type::length(s));
</s> add return replace(pos, n1, s, traitsLength(s)); </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s)); </s> remove return rfind(s, pos, traits_type::length(s));
</s> add return rfind(s, pos, traitsLength(s)); </s> remove return find_last_of(s, pos, traits_type::length(s));
</s> add return find_last_of(s, pos, traitsLength(s)); </s> remove return compare(pos1, n1, s, traits_type::length(s));
</s> add return compare(pos1, n1, s, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> }
<mask>
<mask> // Replaces at most n1 chars of *this, starting with pos, with chars from s
<mask> basic_fbstring& replace(size_type pos, size_type n1, const value_type* s) {
<mask> return replace(pos, n1, s, traits_type::length(s));
<mask> }
<mask>
<mask> // Replaces at most n1 chars of *this, starting with pos, with n2
<mask> // occurrences of c
<mask> //
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s)); </s> remove return compare(pos1, n1, s, traits_type::length(s));
</s> add return compare(pos1, n1, s, traitsLength(s)); </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s)); </s> remove return rfind(s, pos, traits_type::length(s));
</s> add return rfind(s, pos, traitsLength(s)); </s> remove return find_last_of(s, pos, traits_type::length(s));
</s> add return find_last_of(s, pos, traitsLength(s)); </s> remove const size_type n1(size()), n2(traits_type::length(s));
</s> add const size_type n1(size()), n2(traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> return replace(i1, i2, str.data(), str.length());
<mask> }
<mask>
<mask> basic_fbstring& replace(iterator i1, iterator i2, const value_type* s) {
<mask> return replace(i1, i2, s, traits_type::length(s));
<mask> }
<mask>
<mask> private:
<mask> basic_fbstring& replaceImplDiscr(
<mask> iterator i1,
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return assign(s, traits_type::length(s));
</s> add return assign(s, traitsLength(s)); </s> remove return append(s, traits_type::length(s));
</s> add return append(s, traitsLength(s)); </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s)); </s> remove return replace(pos, n1, s, traits_type::length(s));
</s> add return replace(pos, n1, s, traitsLength(s)); </s> remove return compare(pos1, n1, s, traits_type::length(s));
</s> add return compare(pos1, n1, s, traitsLength(s)); </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> size_type find(const value_type* needle, size_type pos, size_type nsize)
<mask> const;
<mask>
<mask> size_type find(const value_type* s, size_type pos = 0) const {
<mask> return find(s, pos, traits_type::length(s));
<mask> }
<mask>
<mask> size_type find (value_type c, size_type pos = 0) const {
<mask> return find(&c, pos, 1);
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s)); </s> remove return find_first_not_of(s, pos, traits_type::length(s));
</s> add return find_first_not_of(s, pos, traitsLength(s)); </s> remove return find_last_of(s, pos, traits_type::length(s));
</s> add return find_last_of(s, pos, traitsLength(s)); </s> remove return find_last_not_of(s, pos, traits_type::length(s));
</s> add return find_last_not_of(s, pos, traitsLength(s)); </s> remove return rfind(s, pos, traits_type::length(s));
</s> add return rfind(s, pos, traitsLength(s)); </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> size_type rfind(const value_type* s, size_type pos, size_type n) const;
<mask>
<mask> size_type rfind(const value_type* s, size_type pos = npos) const {
<mask> return rfind(s, pos, traits_type::length(s));
<mask> }
<mask>
<mask> size_type rfind(value_type c, size_type pos = npos) const {
<mask> return rfind(&c, pos, 1);
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return find_last_of(s, pos, traits_type::length(s));
</s> add return find_last_of(s, pos, traitsLength(s)); </s> remove return find_last_not_of(s, pos, traits_type::length(s));
</s> add return find_last_not_of(s, pos, traitsLength(s)); </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s)); </s> remove return find(s, pos, traits_type::length(s));
</s> add return find(s, pos, traitsLength(s)); </s> remove return find_first_not_of(s, pos, traits_type::length(s));
</s> add return find_first_not_of(s, pos, traitsLength(s)); </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> size_type find_first_of(const value_type* s, size_type pos, size_type n)
<mask> const;
<mask>
<mask> size_type find_first_of(const value_type* s, size_type pos = 0) const {
<mask> return find_first_of(s, pos, traits_type::length(s));
<mask> }
<mask>
<mask> size_type find_first_of(value_type c, size_type pos = 0) const {
<mask> return find_first_of(&c, pos, 1);
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return find(s, pos, traits_type::length(s));
</s> add return find(s, pos, traitsLength(s)); </s> remove return find_first_not_of(s, pos, traits_type::length(s));
</s> add return find_first_not_of(s, pos, traitsLength(s)); </s> remove return rfind(s, pos, traits_type::length(s));
</s> add return rfind(s, pos, traitsLength(s)); </s> remove return find_last_of(s, pos, traits_type::length(s));
</s> add return find_last_of(s, pos, traitsLength(s)); </s> remove return find_last_not_of(s, pos, traits_type::length(s));
</s> add return find_last_not_of(s, pos, traitsLength(s)); </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> size_type find_last_of(const value_type* s, size_type pos, size_type n) const;
<mask>
<mask> size_type find_last_of (const value_type* s,
<mask> size_type pos = npos) const {
<mask> return find_last_of(s, pos, traits_type::length(s));
<mask> }
<mask>
<mask> size_type find_last_of (value_type c, size_type pos = npos) const {
<mask> return find_last_of(&c, pos, 1);
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return rfind(s, pos, traits_type::length(s));
</s> add return rfind(s, pos, traitsLength(s)); </s> remove return find_last_not_of(s, pos, traits_type::length(s));
</s> add return find_last_not_of(s, pos, traitsLength(s)); </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s)); </s> remove return find(s, pos, traits_type::length(s));
</s> add return find(s, pos, traitsLength(s)); </s> remove return find_first_not_of(s, pos, traits_type::length(s));
</s> add return find_first_not_of(s, pos, traitsLength(s)); </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> const;
<mask>
<mask> size_type find_first_not_of(const value_type* s,
<mask> size_type pos = 0) const {
<mask> return find_first_not_of(s, pos, traits_type::length(s));
<mask> }
<mask>
<mask> size_type find_first_not_of(value_type c, size_type pos = 0) const {
<mask> return find_first_not_of(&c, pos, 1);
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s)); </s> remove return find(s, pos, traits_type::length(s));
</s> add return find(s, pos, traitsLength(s)); </s> remove return rfind(s, pos, traits_type::length(s));
</s> add return rfind(s, pos, traitsLength(s)); </s> remove return find_last_of(s, pos, traits_type::length(s));
</s> add return find_last_of(s, pos, traitsLength(s)); </s> remove return find_last_not_of(s, pos, traits_type::length(s));
</s> add return find_last_not_of(s, pos, traitsLength(s)); </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> const;
<mask>
<mask> size_type find_last_not_of(const value_type* s,
<mask> size_type pos = npos) const {
<mask> return find_last_not_of(s, pos, traits_type::length(s));
<mask> }
<mask>
<mask> size_type find_last_not_of (value_type c, size_type pos = npos) const {
<mask> return find_last_not_of(&c, pos, 1);
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return find_last_of(s, pos, traits_type::length(s));
</s> add return find_last_of(s, pos, traitsLength(s)); </s> remove return rfind(s, pos, traits_type::length(s));
</s> add return rfind(s, pos, traitsLength(s)); </s> remove return find(s, pos, traits_type::length(s));
</s> add return find(s, pos, traitsLength(s)); </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s)); </s> remove return find_first_not_of(s, pos, traits_type::length(s));
</s> add return find_first_not_of(s, pos, traitsLength(s)); </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> }
<mask>
<mask> int compare(size_type pos1, size_type n1,
<mask> const value_type* s) const {
<mask> return compare(pos1, n1, s, traits_type::length(s));
<mask> }
<mask>
<mask> int compare(size_type pos1, size_type n1,
<mask> const value_type* s, size_type n2) const {
<mask> enforce(pos1 <= size(), std::__throw_out_of_range, "");
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return replace(pos, n1, s, traits_type::length(s));
</s> add return replace(pos, n1, s, traitsLength(s)); </s> remove return insert(pos, s, traits_type::length(s));
</s> add return insert(pos, s, traitsLength(s)); </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s)); </s> remove return rfind(s, pos, traits_type::length(s));
</s> add return rfind(s, pos, traitsLength(s)); </s> remove return find_last_of(s, pos, traits_type::length(s));
</s> add return find_last_of(s, pos, traitsLength(s)); </s> remove const size_type n1(size()), n2(traits_type::length(s));
</s> add const size_type n1(size()), n2(traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep replace
|
<mask> }
<mask>
<mask> // Code from Jean-Francois Bastien (03/26/2007)
<mask> int compare(const value_type* s) const {
<mask> // Could forward to compare(0, size(), s, traits_type::length(s))
<mask> // but that does two extra checks
<mask> const size_type n1(size()), n2(traits_type::length(s));
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove return compare(pos1, n1, s, traits_type::length(s));
</s> add return compare(pos1, n1, s, traitsLength(s)); </s> remove return replace(pos, n1, s, traits_type::length(s));
</s> add return replace(pos, n1, s, traitsLength(s)); </s> remove return assign(s, traits_type::length(s));
</s> add return assign(s, traitsLength(s)); </s> remove return rfind(s, pos, traits_type::length(s));
</s> add return rfind(s, pos, traitsLength(s)); </s> remove return find_first_of(s, pos, traits_type::length(s));
</s> add return find_first_of(s, pos, traitsLength(s));
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> Storage store_;
<mask> };
<mask>
<mask> template <typename E, class T, class A, class S>
<mask> inline typename basic_fbstring<E, T, A, S>::size_type
<mask> basic_fbstring<E, T, A, S>::traitsLength(const value_type* s) {
<mask> return s ? traits_type::length(s)
<mask> : (std::__throw_logic_error(
<mask> "basic_fbstring: null pointer initializer not valid"),
<mask> 0);
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove template<class T, class Tag=void>
</s> add template <class T, class Tag = void, class AccessMode = void> </s> remove template<class T>
</s> add // Integral types except bool convert to int64_t, float types to double.
template <class T>
struct dynamic::NumericTypeHelper<
T, typename std::enable_if<std::is_integral<T>::value>::type> {
using type = int64_t;
};
template <>
struct dynamic::NumericTypeHelper<bool> {
using type = bool;
};
template <>
struct dynamic::NumericTypeHelper<float> {
using type = double;
};
template <>
struct dynamic::NumericTypeHelper<double> {
using type = double;
};
template<class T, class NumericType /* = typename NumericTypeHelper<T>::type */> </s> remove typedef threadlocal_detail::StaticMeta<Tag> StaticMeta;
</s> add typedef threadlocal_detail::StaticMeta<Tag, AccessMode> StaticMeta;
</s> remove /*
* The enable_if junk here is necessary to avoid ambiguous
* conversions relating to bool and double when you implicitly
* convert an int or long to a dynamic.
*/
template<class T, class Enable = void> struct ConversionHelper;
template<class T>
struct ConversionHelper<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T,bool>::value
>::type
> {
typedef int64_t type;
};
template <>
struct ConversionHelper<float> {
typedef double type;
};
template <class T>
struct ConversionHelper<
T,
typename std::enable_if<
(!std::is_integral<T>::value || std::is_same<T, bool>::value) &&
!std::is_same<T, float>::value &&
!std::is_same<T, std::nullptr_t>::value>::type> {
typedef T type;
};
template<class T>
struct ConversionHelper<
T,
typename std::enable_if<
std::is_same<T,std::nullptr_t>::value
>::type
> {
typedef void* type;
};
</s> add </s> add template<class T, class Enable = void> struct NumericTypeHelper; </s> remove template<class T> /* implicit */ dynamic(T t);
</s> add template<class T, class NumericType = typename NumericTypeHelper<T>::type>
/* implicit */ dynamic(T t);
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/FBString.h
|
keep replace keep keep replace keep
|
<mask>
<mask> template<class T, class Tag=void>
<mask> class ThreadLocalPtr {
<mask> private:
<mask> typedef threadlocal_detail::StaticMeta<Tag> StaticMeta;
<mask> public:
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove inline typename basic_fbstring<E, T, A, S>::size_type
</s> add FOLLY_MALLOC_NOINLINE inline typename basic_fbstring<E, T, A, S>::size_type </s> add SharedMutex* accessAllThreadsLock_; </s> remove /*
* The enable_if junk here is necessary to avoid ambiguous
* conversions relating to bool and double when you implicitly
* convert an int or long to a dynamic.
*/
template<class T, class Enable = void> struct ConversionHelper;
template<class T>
struct ConversionHelper<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T,bool>::value
>::type
> {
typedef int64_t type;
};
template <>
struct ConversionHelper<float> {
typedef double type;
};
template <class T>
struct ConversionHelper<
T,
typename std::enable_if<
(!std::is_integral<T>::value || std::is_same<T, bool>::value) &&
!std::is_same<T, float>::value &&
!std::is_same<T, std::nullptr_t>::value>::type> {
typedef T type;
};
template<class T>
struct ConversionHelper<
T,
typename std::enable_if<
std::is_same<T,std::nullptr_t>::value
>::type
> {
typedef void* type;
};
</s> add </s> remove template <class Tag>
</s> add template <class Tag, class AccessMode> </s> remove template<class T>
</s> add // Integral types except bool convert to int64_t, float types to double.
template <class T>
struct dynamic::NumericTypeHelper<
T, typename std::enable_if<std::is_integral<T>::value>::type> {
using type = int64_t;
};
template <>
struct dynamic::NumericTypeHelper<bool> {
using type = bool;
};
template <>
struct dynamic::NumericTypeHelper<float> {
using type = double;
};
template <>
struct dynamic::NumericTypeHelper<double> {
using type = double;
};
template<class T, class NumericType /* = typename NumericTypeHelper<T>::type */>
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ThreadLocal.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> // Holds a global lock for iteration through all thread local child objects.
<mask> // Can be used as an iterable container.
<mask> // Use accessAllThreads() to obtain one.
<mask> class Accessor {
<mask> friend class ThreadLocalPtr<T,Tag>;
<mask>
<mask> threadlocal_detail::StaticMetaBase& meta_;
<mask> std::mutex* lock_;
<mask> uint32_t id_;
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add SharedMutex* accessAllThreadsLock_; </s> remove template <class Tag>
</s> add template <class Tag, class AccessMode> </s> add template<class T, class Enable = void> struct NumericTypeHelper; </s> add bool strict_; </s> add // Raw pointers don't have an operator->() member function, so the
// second overload will be SFINAEd out in that case. Otherwise, the
// second is preferred in the partial order for getPointer(_, 0).
template <class Iterator>
auto getPointer(const Iterator& it, long) -> decltype(std::addressof(*it)) {
return std::addressof(*it);
}
template <class Iterator>
auto getPointer(const Iterator& it, int) -> decltype(it.operator->()) {
return it.operator->();
}
</s> add /** Parameter key used to specify the type of ad in an FBSDKAppEventNameAdImpression
* or FBSDKAppEventNameAdClick event.
* E.g. "banner", "interstitial", "rewarded_video", "native" */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameAdType;
/** Parameter key used to specify the unique ID for all events within a subscription
* in an FBSDKAppEventNameSubscribe or FBSDKAppEventNameStartTrial event. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameOrderID;
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ThreadLocal.h
|
keep keep keep add keep keep keep keep keep keep
|
<mask> class Accessor {
<mask> friend class ThreadLocalPtr<T, Tag, AccessMode>;
<mask>
<mask> threadlocal_detail::StaticMetaBase& meta_;
<mask> std::mutex* lock_;
<mask> uint32_t id_;
<mask>
<mask> public:
<mask> class Iterator;
<mask> friend class Iterator;
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove friend class ThreadLocalPtr<T,Tag>;
</s> add friend class ThreadLocalPtr<T, Tag, AccessMode>; </s> remove template<class T, class Tag=void>
</s> add template <class T, class Tag = void, class AccessMode = void> </s> remove typedef threadlocal_detail::StaticMeta<Tag> StaticMeta;
</s> add typedef threadlocal_detail::StaticMeta<Tag, AccessMode> StaticMeta;
</s> remove inline typename basic_fbstring<E, T, A, S>::size_type
</s> add FOLLY_MALLOC_NOINLINE inline typename basic_fbstring<E, T, A, S>::size_type </s> remove template <class Tag>
</s> add template <class Tag, class AccessMode> </s> remove ~LogMessageFatal() @ac_cv___attribute___noreturn@;
</s> add @ac_cv___attribute___noreturn@ ~LogMessageFatal();
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ThreadLocal.h
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> Accessor(const Accessor&) = delete;
<mask> Accessor& operator=(const Accessor&) = delete;
<mask>
<mask> Accessor(Accessor&& other) noexcept
<mask> : meta_(other.meta_),
<mask> lock_(other.lock_),
<mask> id_(other.id_) {
<mask> other.id_ = 0;
<mask> other.lock_ = nullptr;
<mask> }
<mask>
<mask> Accessor& operator=(Accessor&& other) noexcept {
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add other.accessAllThreadsLock_ = nullptr; </s> remove typedef threadlocal_detail::StaticMeta<Tag> StaticMeta;
</s> add typedef threadlocal_detail::StaticMeta<Tag, AccessMode> StaticMeta;
</s> add DCHECK(accessAllThreadsLock_ != nullptr);
accessAllThreadsLock_->unlock(); </s> remove // These return rvalue-references instead of lvalue-references to allow
// constructs like this to moved instead of copied:
</s> add // This returns an rvalue-reference instead of an lvalue-reference
// to allow constructs like this to moved instead of copied: </s> add accessAllThreadsLock_ = nullptr; </s> remove ~basic_fbstring() noexcept {
}
</s> add ~basic_fbstring() noexcept {}
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ThreadLocal.h
|
keep keep add keep keep keep keep
|
<mask> lock_(other.lock_),
<mask> id_(other.id_) {
<mask> other.id_ = 0;
<mask> other.lock_ = nullptr;
<mask> }
<mask>
<mask> Accessor& operator=(Accessor&& other) noexcept {
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove : meta_(other.meta_),
lock_(other.lock_),
id_(other.id_) {
</s> add : meta_(other.meta_),
accessAllThreadsLock_(other.accessAllThreadsLock_),
lock_(other.lock_),
id_(other.id_) { </s> add DCHECK(accessAllThreadsLock_ != nullptr);
accessAllThreadsLock_->unlock(); </s> add accessAllThreadsLock_ = nullptr; </s> remove typedef threadlocal_detail::StaticMeta<Tag> StaticMeta;
</s> add typedef threadlocal_detail::StaticMeta<Tag, AccessMode> StaticMeta;
</s> remove for (int layer = nodeHeight - 1; layer >= 0; --layer) {
preds[layer]->setSkip(layer, nodeToDelete->skip(layer));
</s> add for (int k = nodeHeight - 1; k >= 0; --k) {
preds[k]->setSkip(k, nodeToDelete->skip(k)); </s> add MutexLock l(&sink_mutex_);
delete sinks_;
sinks_ = NULL;
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ThreadLocal.h
|
keep keep keep add keep keep keep keep keep keep
|
<mask> // *this is empty. Assert it.
<mask> assert(&meta_ == &other.meta_);
<mask> assert(lock_ == nullptr);
<mask> using std::swap;
<mask> swap(lock_, other.lock_);
<mask> swap(id_, other.id_);
<mask> }
<mask>
<mask> Accessor()
<mask> : meta_(threadlocal_detail::StaticMeta<Tag, AccessMode>::instance()),
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove : meta_(threadlocal_detail::StaticMeta<Tag>::instance()),
lock_(nullptr),
id_(0) {
}
</s> add : meta_(threadlocal_detail::StaticMeta<Tag, AccessMode>::instance()),
accessAllThreadsLock_(nullptr),
lock_(nullptr),
id_(0) {} </s> remove : meta_(threadlocal_detail::StaticMeta<Tag>::instance()),
lock_(&meta_.lock_) {
</s> add : meta_(threadlocal_detail::StaticMeta<Tag, AccessMode>::instance()),
accessAllThreadsLock_(&meta_.accessAllThreadsLock_),
lock_(&meta_.lock_) {
accessAllThreadsLock_->lock(); </s> remove const Char * c_str() const {
auto const c = category();
if (c == Category::isSmall) {
FBSTRING_ASSERT(small_[smallSize()] == '\0');
return small_;
}
FBSTRING_ASSERT(c == Category::isMedium || c == Category::isLarge);
FBSTRING_ASSERT(ml_.data_[ml_.size_] == '\0');
return ml_.data_;
</s> add const Char* c_str() const {
const Char* ptr = ml_.data_;
// With this syntax, GCC and Clang generate a CMOV instead of a branch.
ptr = (category() == Category::isSmall) ? small_ : ptr;
return ptr; </s> remove typedef std::conditional<sizeof(size_t) == 4, uint32_t, uint64_t>::type
category_type;
</s> add typedef uint8_t category_type; </s> remove ml_.capacity_ = kIsLittleEndian
? maxSmallSize << (8 * (sizeof(size_t) - sizeof(Char)))
: maxSmallSize << 2;
small_[0] = '\0';
FBSTRING_ASSERT(category() == Category::isSmall && size() == 0);
</s> add setSmallSize(0);
}
FOLLY_MALLOC_NOINLINE void destroyMediumLarge() noexcept {
auto const c = category();
FBSTRING_ASSERT(c != Category::isSmall);
if (c == Category::isMedium) {
free(ml_.data_);
} else {
RefCounted::decrementRefs(ml_.data_);
} </s> remove auto const c = category();
if (c == Category::isSmall) {
return;
}
if (c == Category::isMedium) {
free(ml_.data_);
</s> add if (category() == Category::isSmall) {
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ThreadLocal.h
|
keep keep keep keep replace replace replace replace keep keep keep replace replace
|
<mask> swap(id_, other.id_);
<mask> }
<mask>
<mask> Accessor()
<mask> : meta_(threadlocal_detail::StaticMeta<Tag>::instance()),
<mask> lock_(nullptr),
<mask> id_(0) {
<mask> }
<mask>
<mask> private:
<mask> explicit Accessor(uint32_t id)
<mask> : meta_(threadlocal_detail::StaticMeta<Tag>::instance()),
<mask> lock_(&meta_.lock_) {
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add swap(accessAllThreadsLock_, other.accessAllThreadsLock_); </s> remove explicit ObjectMaker(dynamic const& key, dynamic val)
: val_(dynamic::object)
{
val_.insert(key, std::move(val));
}
explicit ObjectMaker(dynamic&& key, dynamic val)
</s> add explicit ObjectMaker(dynamic key, dynamic val) </s> remove typedef threadlocal_detail::StaticMeta<Tag> StaticMeta;
</s> add typedef threadlocal_detail::StaticMeta<Tag, AccessMode> StaticMeta;
</s> remove explicit constexpr ExpectedUnion(EmptyTag) noexcept
: ch_{}, which_(Which::eEmpty) {}
</s> add explicit constexpr ExpectedUnion(EmptyTag) noexcept {} </s> remove explicit sorted_vector_set(
</s> add /* implicit */ sorted_vector_set(
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ThreadLocal.h
|
keep keep keep add keep keep keep keep
|
<mask>
<mask> void release() {
<mask> if (lock_) {
<mask> lock_->unlock();
<mask> id_ = 0;
<mask> lock_ = nullptr;
<mask> accessAllThreadsLock_ = nullptr;
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add accessAllThreadsLock_ = nullptr; </s> add other.accessAllThreadsLock_ = nullptr; </s> remove : meta_(threadlocal_detail::StaticMeta<Tag>::instance()),
lock_(&meta_.lock_) {
</s> add : meta_(threadlocal_detail::StaticMeta<Tag, AccessMode>::instance()),
accessAllThreadsLock_(&meta_.accessAllThreadsLock_),
lock_(&meta_.lock_) {
accessAllThreadsLock_->lock(); </s> remove : meta_(other.meta_),
lock_(other.lock_),
id_(other.id_) {
</s> add : meta_(other.meta_),
accessAllThreadsLock_(other.accessAllThreadsLock_),
lock_(other.lock_),
id_(other.id_) { </s> remove for (int layer = nodeHeight - 1; layer >= 0; --layer) {
preds[layer]->setSkip(layer, nodeToDelete->skip(layer));
</s> add for (int k = nodeHeight - 1; k >= 0; --k) {
preds[k]->setSkip(k, nodeToDelete->skip(k)); </s> add MutexLock l(&sink_mutex_);
delete sinks_;
sinks_ = NULL;
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ThreadLocal.h
|
keep keep add keep keep keep keep
|
<mask> accessAllThreadsLock_->unlock();
<mask> id_ = 0;
<mask> lock_ = nullptr;
<mask> }
<mask> }
<mask> };
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add DCHECK(accessAllThreadsLock_ != nullptr);
accessAllThreadsLock_->unlock(); </s> add other.accessAllThreadsLock_ = nullptr; </s> remove : meta_(other.meta_),
lock_(other.lock_),
id_(other.id_) {
</s> add : meta_(other.meta_),
accessAllThreadsLock_(other.accessAllThreadsLock_),
lock_(other.lock_),
id_(other.id_) { </s> remove : meta_(threadlocal_detail::StaticMeta<Tag>::instance()),
lock_(&meta_.lock_) {
</s> add : meta_(threadlocal_detail::StaticMeta<Tag, AccessMode>::instance()),
accessAllThreadsLock_(&meta_.accessAllThreadsLock_),
lock_(&meta_.lock_) {
accessAllThreadsLock_->lock(); </s> remove for (int layer = nodeHeight - 1; layer >= 0; --layer) {
preds[layer]->setSkip(layer, nodeToDelete->skip(layer));
</s> add for (int k = nodeHeight - 1; k >= 0; --k) {
preds[k]->setSkip(k, nodeToDelete->skip(k)); </s> add MutexLock l(&sink_mutex_);
delete sinks_;
sinks_ = NULL;
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/ThreadLocal.h
|
keep keep add keep keep keep keep keep keep
|
<mask>
<mask> #pragma once
<mask>
<mask> #include <stdexcept>
<mask>
<mask> namespace folly {
<mask>
<mask> template <class T>
<mask> Try<T>::Try(Try<T>&& t) noexcept : contains_(t.contains_) {
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove template <class T>
void doNotOptimizeAway(T&& datum) {
asm volatile("" : "+r" (datum));
</s> add namespace detail {
template <typename T>
struct DoNotOptimizeAwayNeedsIndirect {
using Decayed = typename std::decay<T>::type;
// First two constraints ensure it can be an "r" operand.
// std::is_pointer check is because callers seem to expect that
// doNotOptimizeAway(&x) is equivalent to doNotOptimizeAway(x).
constexpr static bool value = !folly::IsTriviallyCopyable<Decayed>::value ||
sizeof(Decayed) > sizeof(long) || std::is_pointer<Decayed>::value;
};
} // detail namespace
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"X"(datum));
}
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory");
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" : "+r"(datum));
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory"); </s> remove #include <initializer_list>
</s> add </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <iostream> </s> remove template<class T>
</s> add // Integral types except bool convert to int64_t, float types to double.
template <class T>
struct dynamic::NumericTypeHelper<
T, typename std::enable_if<std::is_integral<T>::value>::type> {
using type = int64_t;
};
template <>
struct dynamic::NumericTypeHelper<bool> {
using type = bool;
};
template <>
struct dynamic::NumericTypeHelper<float> {
using type = double;
};
template <>
struct dynamic::NumericTypeHelper<double> {
using type = double;
};
template<class T, class NumericType /* = typename NumericTypeHelper<T>::type */> </s> add #include <folly/dynamic.h>
#include <folly/portability/BitsFunctexcept.h>
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/Try-inl.h
|
keep keep add keep
|
<mask> }
<mask> }
<mask>
<mask> } // folly
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add template <typename... Ts>
std::tuple<Ts...> unwrapTryTuple(std::tuple<folly::Try<Ts>...>&& ts);
</s> remove template <class T>
void doNotOptimizeAway(T&& datum) {
asm volatile("" : "+r" (datum));
</s> add namespace detail {
template <typename T>
struct DoNotOptimizeAwayNeedsIndirect {
using Decayed = typename std::decay<T>::type;
// First two constraints ensure it can be an "r" operand.
// std::is_pointer check is because callers seem to expect that
// doNotOptimizeAway(&x) is equivalent to doNotOptimizeAway(x).
constexpr static bool value = !folly::IsTriviallyCopyable<Decayed>::value ||
sizeof(Decayed) > sizeof(long) || std::is_pointer<Decayed>::value;
};
} // detail namespace
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"X"(datum));
}
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory");
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" : "+r"(datum));
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory"); </s> remove data.advance(p - begin);
</s> add data.uncheckedAdvance(p - begin); </s> remove @ac_cv___attribute___noreturn@ ~NullStreamFatal() { _exit(1); }
</s> add @ac_cv___attribute___noreturn@ ~NullStreamFatal() throw () { _exit(1); } </s> remove inline void fbstring_core<Char>::reserveMedium(const size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveMedium(
const size_t minCapacity) { </s> remove __attribute__ ((noreturn)) ~NullStreamFatal() { _exit(1); }
</s> add __attribute__ ((noreturn)) ~NullStreamFatal() throw () { _exit(1); }
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/Try-inl.h
|
keep keep keep add keep keep keep
|
<mask> std::is_same<typename std::result_of<F()>::type, void>::value,
<mask> Try<void>>::type
<mask> makeTryWith(F&& f);
<mask>
<mask> } // folly
<mask>
<mask> #include <folly/Try-inl.h>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add #include <iostream> </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <folly/dynamic.h>
#include <folly/portability/BitsFunctexcept.h> </s> remove #if !defined(FOLLY_ALLOW_TFO) && defined(__linux__) && !defined(__ANDROID__)
</s> add #if !defined(FOLLY_ALLOW_TFO)
#if defined(__linux__) || defined(__APPLE__) </s> add #include <folly/detail/TryDetail.h>
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/Try.h
|
keep keep keep keep replace keep keep keep keep
|
<mask> }
<mask> val |= static_cast<uint64_t>(*p++) << shift;
<mask> }
<mask>
<mask> data.advance(p - begin);
<mask> return val;
<mask> }
<mask>
<mask> } // namespaces
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add std::cerr
<< "Cannot use `throwException` with an empty folly::exception_wrapper"
<< std::endl;
std::terminate(); </s> remove explicit StaticMetaBase(ThreadEntry* (*threadEntry)());
</s> add StaticMetaBase(ThreadEntry* (*threadEntry)(), bool strict); </s> remove inline constexpr
typename std::enable_if<
std::is_integral<T>::value && std::is_unsigned<T>::value,
bool>::type
</s> add inline FOLLY_INTRINSIC_CONSTEXPR typename std::
enable_if<std::is_integral<T>::value && std::is_unsigned<T>::value, T>::type
prevPowTwo(T v) {
return v ? (T(1) << (findLastSet(v) - 1)) : 0;
}
template <class T>
inline constexpr typename std::enable_if<
std::is_integral<T>::value && std::is_unsigned<T>::value,
bool>::type </s> remove ml_.capacity_ = kIsLittleEndian
? maxSmallSize << (8 * (sizeof(size_t) - sizeof(Char)))
: maxSmallSize << 2;
small_[0] = '\0';
FBSTRING_ASSERT(category() == Category::isSmall && size() == 0);
</s> add setSmallSize(0);
}
FOLLY_MALLOC_NOINLINE void destroyMediumLarge() noexcept {
auto const c = category();
FBSTRING_ASSERT(c != Category::isSmall);
if (c == Category::isMedium) {
free(ml_.data_);
} else {
RefCounted::decrementRefs(ml_.data_);
} </s> remove capacity_ = kIsLittleEndian
? cap | static_cast<category_type>(cat)
: (cap << 2) | static_cast<category_type>(cat);
</s> add capacity_ = kIsLittleEndian
? cap | (static_cast<size_t>(cat) << kCategoryShift)
: (cap << 2) | static_cast<size_t>(cat); </s> add template <typename... Ts>
std::tuple<Ts...> unwrapTryTuple(std::tuple<folly::Try<Ts>...>&& ts) {
return detail::TryTuple<Ts...>::unwrap(
std::forward<std::tuple<folly::Try<Ts>...>>(ts));
}
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/Varint.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> #include <folly/portability/Sockets.h>
<mask> #include <sys/types.h>
<mask>
<mask> #if !defined(FOLLY_ALLOW_TFO) && defined(__linux__) && !defined(__ANDROID__)
<mask> // only allow for linux right now
<mask> #define FOLLY_ALLOW_TFO 1
<mask> #endif
<mask>
<mask> namespace folly {
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add #endif </s> add #include <folly/dynamic.h>
#include <folly/portability/BitsFunctexcept.h> </s> add #include <iostream> </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <folly/portability/BitsFunctexcept.h> </s> remove // Annoying stuff for windows -- makes sure clients can import these functions
#ifndef GOOGLE_GLOG_DLL_DECL
# if defined(_WIN32) && !defined(__CYGWIN__)
# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport)
# else
# define GOOGLE_GLOG_DLL_DECL
# endif
#endif
</s> add
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/detail/SocketFastOpen.h
|
keep add keep keep keep keep
|
<mask> #define FOLLY_ALLOW_TFO 1
<mask> #endif
<mask>
<mask> namespace folly {
<mask> namespace detail {
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove #if !defined(FOLLY_ALLOW_TFO) && defined(__linux__) && !defined(__ANDROID__)
</s> add #if !defined(FOLLY_ALLOW_TFO)
#if defined(__linux__) || defined(__APPLE__) </s> add #include <folly/dynamic.h>
#include <folly/portability/BitsFunctexcept.h> </s> remove template <class T>
void doNotOptimizeAway(T&& datum) {
asm volatile("" : "+r" (datum));
</s> add namespace detail {
template <typename T>
struct DoNotOptimizeAwayNeedsIndirect {
using Decayed = typename std::decay<T>::type;
// First two constraints ensure it can be an "r" operand.
// std::is_pointer check is because callers seem to expect that
// doNotOptimizeAway(&x) is equivalent to doNotOptimizeAway(x).
constexpr static bool value = !folly::IsTriviallyCopyable<Decayed>::value ||
sizeof(Decayed) > sizeof(long) || std::is_pointer<Decayed>::value;
};
} // detail namespace
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"X"(datum));
}
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory");
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" : "+r"(datum));
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory"); </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <iostream> </s> add #include <folly/detail/TryDetail.h>
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/detail/SocketFastOpen.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> return meta.allocate(this);
<mask> }
<mask> };
<mask>
<mask> explicit StaticMetaBase(ThreadEntry* (*threadEntry)());
<mask>
<mask> ~StaticMetaBase() {
<mask> LOG(FATAL) << "StaticMeta lives forever!";
<mask> }
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add std::cerr
<< "Cannot use `throwException` with an empty folly::exception_wrapper"
<< std::endl;
std::terminate(); </s> remove capacity_ = kIsLittleEndian
? cap | static_cast<category_type>(cat)
: (cap << 2) | static_cast<category_type>(cat);
</s> add capacity_ = kIsLittleEndian
? cap | (static_cast<size_t>(cat) << kCategoryShift)
: (cap << 2) | static_cast<size_t>(cat); </s> add FBSDKServerConfigurationManagerAppEventsFeaturesUninstallTrackingEnabled = 1 << 7, </s> remove explicit ObjectMaker(dynamic const& key, dynamic val)
: val_(dynamic::object)
{
val_.insert(key, std::move(val));
}
explicit ObjectMaker(dynamic&& key, dynamic val)
</s> add explicit ObjectMaker(dynamic key, dynamic val) </s> remove data.advance(p - begin);
</s> add data.uncheckedAdvance(p - begin); </s> remove inline constexpr
typename std::enable_if<
std::is_integral<T>::value && std::is_unsigned<T>::value,
bool>::type
</s> add inline FOLLY_INTRINSIC_CONSTEXPR typename std::
enable_if<std::is_integral<T>::value && std::is_unsigned<T>::value, T>::type
prevPowTwo(T v) {
return v ? (T(1) << (findLastSet(v) - 1)) : 0;
}
template <class T>
inline constexpr typename std::enable_if<
std::is_integral<T>::value && std::is_unsigned<T>::value,
bool>::type
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/detail/ThreadLocalDetail.h
|
keep add keep keep keep keep keep
|
<mask> std::vector<uint32_t> freeIds_;
<mask> std::mutex lock_;
<mask> pthread_key_t pthreadKey_;
<mask> ThreadEntry head_;
<mask> ThreadEntry* (*threadEntry_)();
<mask> bool strict_;
<mask> };
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add bool strict_; </s> remove explicit StaticMetaBase(ThreadEntry* (*threadEntry)());
</s> add StaticMetaBase(ThreadEntry* (*threadEntry)(), bool strict); </s> add // Returns true if FailureSignalHandler is installed.
bool IsFailureSignalHandlerInstalled(); </s> add // Returns true if FailureSignalHandler is installed.
bool IsFailureSignalHandlerInstalled(); </s> remove template<class T>
</s> add // Integral types except bool convert to int64_t, float types to double.
template <class T>
struct dynamic::NumericTypeHelper<
T, typename std::enable_if<std::is_integral<T>::value>::type> {
using type = int64_t;
};
template <>
struct dynamic::NumericTypeHelper<bool> {
using type = bool;
};
template <>
struct dynamic::NumericTypeHelper<float> {
using type = double;
};
template <>
struct dynamic::NumericTypeHelper<double> {
using type = double;
};
template<class T, class NumericType /* = typename NumericTypeHelper<T>::type */> </s> add SharedMutex* accessAllThreadsLock_;
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/detail/ThreadLocalDetail.h
|
keep add keep keep keep keep keep keep
|
<mask> ThreadEntry head_;
<mask> ThreadEntry* (*threadEntry_)();
<mask> };
<mask>
<mask> // Held in a singleton to track our global instances.
<mask> // We have one of these per "Tag", by default one for the whole system
<mask> // (Tag=void).
<mask> //
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add SharedMutex accessAllThreadsLock_; </s> remove static auto instance = detail::createGlobal<StaticMeta<Tag>, void>();
</s> add /* library-local */ static auto instance =
detail::createGlobal<StaticMeta<Tag, AccessMode>, void>(); </s> add // Annoying stuff for windows -- makes sure clients can import these functions
#ifndef GOOGLE_GLOG_DLL_DECL
# if defined(_WIN32) && !defined(__CYGWIN__)
# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport)
# else
# define GOOGLE_GLOG_DLL_DECL
# endif
#endif
</s> add // Annoying stuff for windows -- makes sure clients can import these functions
#ifndef GOOGLE_GLOG_DLL_DECL
# if defined(_WIN32) && !defined(__CYGWIN__)
# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport)
# else
# define GOOGLE_GLOG_DLL_DECL
# endif
#endif
</s> remove // Set the default signal handler for SIGABRT, to avoid invoking our
// own signal handler installed by InstallFailedSignalHandler().
struct sigaction sig_action;
memset(&sig_action, 0, sizeof(sig_action));
sigemptyset(&sig_action.sa_mask);
sig_action.sa_handler = SIG_DFL;
sigaction(SIGABRT, &sig_action, NULL);
</s> add if (IsFailureSignalHandlerInstalled()) {
// Set the default signal handler for SIGABRT, to avoid invoking our
// own signal handler installed by InstallFailureSignalHandler().
struct sigaction sig_action;
memset(&sig_action, 0, sizeof(sig_action));
sigemptyset(&sig_action.sa_mask);
sig_action.sa_handler = SIG_DFL;
sigaction(SIGABRT, &sig_action, NULL);
} </s> remove static StaticMeta<Tag>& instance() {
</s> add static StaticMeta<Tag, AccessMode>& instance() {
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/detail/ThreadLocalDetail.h
|
keep replace keep replace keep
|
<mask> // StaticMeta; you can specify multiple Tag types to break that lock.
<mask> template <class Tag>
<mask> struct StaticMeta : StaticMetaBase {
<mask> StaticMeta() : StaticMetaBase(&StaticMeta::getThreadEntrySlow) {
<mask> registerAtFork(
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove template<class T, class Tag=void>
</s> add template <class T, class Tag = void, class AccessMode = void> </s> remove template<class T>
</s> add // Integral types except bool convert to int64_t, float types to double.
template <class T>
struct dynamic::NumericTypeHelper<
T, typename std::enable_if<std::is_integral<T>::value>::type> {
using type = int64_t;
};
template <>
struct dynamic::NumericTypeHelper<bool> {
using type = bool;
};
template <>
struct dynamic::NumericTypeHelper<float> {
using type = double;
};
template <>
struct dynamic::NumericTypeHelper<double> {
using type = double;
};
template<class T, class NumericType /* = typename NumericTypeHelper<T>::type */> </s> remove template <class T>
void doNotOptimizeAway(T&& datum) {
asm volatile("" : "+r" (datum));
</s> add namespace detail {
template <typename T>
struct DoNotOptimizeAwayNeedsIndirect {
using Decayed = typename std::decay<T>::type;
// First two constraints ensure it can be an "r" operand.
// std::is_pointer check is because callers seem to expect that
// doNotOptimizeAway(&x) is equivalent to doNotOptimizeAway(x).
constexpr static bool value = !folly::IsTriviallyCopyable<Decayed>::value ||
sizeof(Decayed) > sizeof(long) || std::is_pointer<Decayed>::value;
};
} // detail namespace
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"X"(datum));
}
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory");
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" : "+r"(datum));
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory"); </s> remove typedef threadlocal_detail::StaticMeta<Tag> StaticMeta;
</s> add typedef threadlocal_detail::StaticMeta<Tag, AccessMode> StaticMeta;
</s> add // Raw pointers don't have an operator->() member function, so the
// second overload will be SFINAEd out in that case. Otherwise, the
// second is preferred in the partial order for getPointer(_, 0).
template <class Iterator>
auto getPointer(const Iterator& it, long) -> decltype(std::addressof(*it)) {
return std::addressof(*it);
}
template <class Iterator>
auto getPointer(const Iterator& it, int) -> decltype(it.operator->()) {
return it.operator->();
}
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/detail/ThreadLocalDetail.h
|
keep keep replace keep keep replace keep
|
<mask> }
<mask>
<mask> static StaticMeta<Tag>& instance() {
<mask> // Leak it on exit, there's only one per process and we don't have to
<mask> // worry about synchronization with exiting threads.
<mask> static auto instance = detail::createGlobal<StaticMeta<Tag>, void>();
<mask> return *instance;
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove LogDestination* log = log_destination(i);
</s> add LogDestination* log = log_destinations_[i]; </s> add bool strict_; </s> remove _asm int 3
</s> add __debugbreak(); </s> add // Raw pointers don't have an operator->() member function, so the
// second overload will be SFINAEd out in that case. Otherwise, the
// second is preferred in the partial order for getPointer(_, 0).
template <class Iterator>
auto getPointer(const Iterator& it, long) -> decltype(std::addressof(*it)) {
return std::addressof(*it);
}
template <class Iterator>
auto getPointer(const Iterator& it, int) -> decltype(it.operator->()) {
return it.operator->();
}
</s> remove fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
</s> add if (FBSTRING_LIKELY(effectiveSize > 0)) {
fbstring_detail::podCopy(data, data + effectiveSize, result->data_);
}
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/detail/ThreadLocalDetail.h
|
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> struct Destroy {
<mask> template<class T> static void destroy(T* t) { t->~T(); }
<mask> };
<mask>
<mask> /*
<mask> * The enable_if junk here is necessary to avoid ambiguous
<mask> * conversions relating to bool and double when you implicitly
<mask> * convert an int or long to a dynamic.
<mask> */
<mask> template<class T, class Enable = void> struct ConversionHelper;
<mask> template<class T>
<mask> struct ConversionHelper<
<mask> T,
<mask> typename std::enable_if<
<mask> std::is_integral<T>::value && !std::is_same<T,bool>::value
<mask> >::type
<mask> > {
<mask> typedef int64_t type;
<mask> };
<mask> template <>
<mask> struct ConversionHelper<float> {
<mask> typedef double type;
<mask> };
<mask> template <class T>
<mask> struct ConversionHelper<
<mask> T,
<mask> typename std::enable_if<
<mask> (!std::is_integral<T>::value || std::is_same<T, bool>::value) &&
<mask> !std::is_same<T, float>::value &&
<mask> !std::is_same<T, std::nullptr_t>::value>::type> {
<mask> typedef T type;
<mask> };
<mask> template<class T>
<mask> struct ConversionHelper<
<mask> T,
<mask> typename std::enable_if<
<mask> std::is_same<T,std::nullptr_t>::value
<mask> >::type
<mask> > {
<mask> typedef void* type;
<mask> };
<mask>
<mask> /*
<mask> * Helper for implementing numeric conversions in operators on
<mask> * numbers. Just promotes to double when one of the arguments is
<mask> * double, or throws if either is not a numeric type.
<mask> */
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove template<class T>
</s> add // Integral types except bool convert to int64_t, float types to double.
template <class T>
struct dynamic::NumericTypeHelper<
T, typename std::enable_if<std::is_integral<T>::value>::type> {
using type = int64_t;
};
template <>
struct dynamic::NumericTypeHelper<bool> {
using type = bool;
};
template <>
struct dynamic::NumericTypeHelper<float> {
using type = double;
};
template <>
struct dynamic::NumericTypeHelper<double> {
using type = double;
};
template<class T, class NumericType /* = typename NumericTypeHelper<T>::type */> </s> add template<class T, class Enable = void> struct NumericTypeHelper; </s> remove template<class T> /* implicit */ dynamic(T t);
</s> add template<class T, class NumericType = typename NumericTypeHelper<T>::type>
/* implicit */ dynamic(T t); </s> remove template <class T>
void doNotOptimizeAway(T&& datum) {
asm volatile("" : "+r" (datum));
</s> add namespace detail {
template <typename T>
struct DoNotOptimizeAwayNeedsIndirect {
using Decayed = typename std::decay<T>::type;
// First two constraints ensure it can be an "r" operand.
// std::is_pointer check is because callers seem to expect that
// doNotOptimizeAway(&x) is equivalent to doNotOptimizeAway(x).
constexpr static bool value = !folly::IsTriviallyCopyable<Decayed>::value ||
sizeof(Decayed) > sizeof(long) || std::is_pointer<Decayed>::value;
};
} // detail namespace
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"X"(datum));
}
template <typename T>
auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory");
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
!detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" : "+r"(datum));
}
template <typename T>
auto makeUnpredictable(T& datum) -> typename std::enable_if<
detail::DoNotOptimizeAwayNeedsIndirect<T>::value>::type {
asm volatile("" ::"m"(datum) : "memory"); </s> remove template<class T, class Tag=void>
</s> add template <class T, class Tag = void, class AccessMode = void> </s> remove dynamic(Array&& array, PrivateTag);
</s> add explicit dynamic(Array&& array);
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic-inl.h
|
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
|
<mask> struct dynamic::ObjectMaker {
<mask> friend struct dynamic;
<mask>
<mask> explicit ObjectMaker() : val_(dynamic::object) {}
<mask> explicit ObjectMaker(dynamic const& key, dynamic val)
<mask> : val_(dynamic::object)
<mask> {
<mask> val_.insert(key, std::move(val));
<mask> }
<mask> explicit ObjectMaker(dynamic&& key, dynamic val)
<mask> : val_(dynamic::object)
<mask> {
<mask> val_.insert(std::move(key), std::move(val));
<mask> }
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove ObjectMaker&& operator()(dynamic const& key, dynamic val) {
val_.insert(key, std::move(val));
return std::move(*this);
}
ObjectMaker&& operator()(dynamic&& key, dynamic val) {
</s> add ObjectMaker&& operator()(dynamic key, dynamic val) { </s> remove // These return rvalue-references instead of lvalue-references to allow
// constructs like this to moved instead of copied:
</s> add // This returns an rvalue-reference instead of an lvalue-reference
// to allow constructs like this to moved instead of copied: </s> remove inline dynamic::ObjectMaker dynamic::object(dynamic const& a, dynamic&& b) {
return ObjectMaker(a, std::move(b));
}
inline dynamic::ObjectMaker dynamic::object(dynamic&& a, dynamic const& b) {
return ObjectMaker(std::move(a), b);
}
inline dynamic::ObjectMaker
dynamic::object(dynamic const& a, dynamic const& b) {
return ObjectMaker(a, b);
}
</s> add </s> remove char ch_;
</s> add char ch_{}; </s> remove inline dynamic::dynamic(Array&& r, PrivateTag) : type_(ARRAY) {
</s> add inline dynamic::dynamic(Array&& r) : type_(ARRAY) { </s> remove : meta_(threadlocal_detail::StaticMeta<Tag>::instance()),
lock_(nullptr),
id_(0) {
}
</s> add : meta_(threadlocal_detail::StaticMeta<Tag, AccessMode>::instance()),
accessAllThreadsLock_(nullptr),
lock_(nullptr),
id_(0) {}
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic-inl.h
|
keep keep keep replace replace keep replace replace replace replace replace replace keep keep keep keep
|
<mask> ObjectMaker& operator=(ObjectMaker const&) = delete;
<mask> ObjectMaker& operator=(ObjectMaker&&) = delete;
<mask>
<mask> // These return rvalue-references instead of lvalue-references to allow
<mask> // constructs like this to moved instead of copied:
<mask> // dynamic a = dynamic::object("a", "b")("c", "d")
<mask> ObjectMaker&& operator()(dynamic const& key, dynamic val) {
<mask> val_.insert(key, std::move(val));
<mask> return std::move(*this);
<mask> }
<mask>
<mask> ObjectMaker&& operator()(dynamic&& key, dynamic val) {
<mask> val_.insert(std::move(key), std::move(val));
<mask> return std::move(*this);
<mask> }
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove explicit ObjectMaker(dynamic const& key, dynamic val)
: val_(dynamic::object)
{
val_.insert(key, std::move(val));
}
explicit ObjectMaker(dynamic&& key, dynamic val)
</s> add explicit ObjectMaker(dynamic key, dynamic val) </s> remove // This looks like a case for perfect forwarding, but our use of
// std::initializer_list for constructing dynamic arrays makes it less
// functional than doing this manually.
// TODO(ott, 10300209): When the initializer_list constructor is gone,
// simplify this.
</s> add </s> remove return dynamic(Array{std::forward<Args>(args)...}, PrivateTag());
</s> add return dynamic(Array{std::forward<Args>(args)...}); </s> remove inline dynamic::ObjectMaker dynamic::object(dynamic const& a, dynamic&& b) {
return ObjectMaker(a, std::move(b));
}
inline dynamic::ObjectMaker dynamic::object(dynamic&& a, dynamic const& b) {
return ObjectMaker(std::move(a), b);
}
inline dynamic::ObjectMaker
dynamic::object(dynamic const& a, dynamic const& b) {
return ObjectMaker(a, b);
}
</s> add </s> remove throw std::out_of_range("out of range in dynamic array");
</s> add std::__throw_out_of_range("out of range in dynamic array");
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic-inl.h
|
keep keep keep keep replace keep keep replace replace replace replace replace replace keep keep keep keep
|
<mask> inline void dynamic::array(EmptyArrayTag) {}
<mask>
<mask> template <class... Args>
<mask> inline dynamic dynamic::array(Args&& ...args) {
<mask> return dynamic(Array{std::forward<Args>(args)...}, PrivateTag());
<mask> }
<mask>
<mask> // This looks like a case for perfect forwarding, but our use of
<mask> // std::initializer_list for constructing dynamic arrays makes it less
<mask> // functional than doing this manually.
<mask>
<mask> // TODO(ott, 10300209): When the initializer_list constructor is gone,
<mask> // simplify this.
<mask> inline dynamic::ObjectMaker dynamic::object() { return ObjectMaker(); }
<mask> inline dynamic::ObjectMaker dynamic::object(dynamic&& a, dynamic&& b) {
<mask> return ObjectMaker(std::move(a), std::move(b));
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove inline dynamic::ObjectMaker dynamic::object(dynamic&& a, dynamic&& b) {
</s> add inline dynamic::ObjectMaker dynamic::object(dynamic a, dynamic b) { </s> remove inline dynamic::ObjectMaker dynamic::object(dynamic const& a, dynamic&& b) {
return ObjectMaker(a, std::move(b));
}
inline dynamic::ObjectMaker dynamic::object(dynamic&& a, dynamic const& b) {
return ObjectMaker(std::move(a), b);
}
inline dynamic::ObjectMaker
dynamic::object(dynamic const& a, dynamic const& b) {
return ObjectMaker(a, b);
}
</s> add </s> remove inline void fbstring_core<Char>::reserveLarge(size_t minCapacity) {
</s> add FOLLY_MALLOC_NOINLINE inline void fbstring_core<Char>::reserveLarge(
size_t minCapacity) { </s> remove ObjectMaker&& operator()(dynamic const& key, dynamic val) {
val_.insert(key, std::move(val));
return std::move(*this);
}
ObjectMaker&& operator()(dynamic&& key, dynamic val) {
</s> add ObjectMaker&& operator()(dynamic key, dynamic val) { </s> remove inline dynamic::dynamic(std::initializer_list<dynamic> il)
: dynamic(Array(std::move(il)), PrivateTag()) {}
inline dynamic& dynamic::operator=(std::initializer_list<dynamic> il) {
(*this) = dynamic(Array(std::move(il)), PrivateTag());
return *this;
}
</s> add
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic-inl.h
|
keep keep keep keep replace keep keep replace replace replace replace replace replace replace replace replace replace keep
|
<mask>
<mask> // TODO(ott, 10300209): When the initializer_list constructor is gone,
<mask> // simplify this.
<mask> inline dynamic::ObjectMaker dynamic::object() { return ObjectMaker(); }
<mask> inline dynamic::ObjectMaker dynamic::object(dynamic&& a, dynamic&& b) {
<mask> return ObjectMaker(std::move(a), std::move(b));
<mask> }
<mask> inline dynamic::ObjectMaker dynamic::object(dynamic const& a, dynamic&& b) {
<mask> return ObjectMaker(a, std::move(b));
<mask> }
<mask> inline dynamic::ObjectMaker dynamic::object(dynamic&& a, dynamic const& b) {
<mask> return ObjectMaker(std::move(a), b);
<mask> }
<mask> inline dynamic::ObjectMaker
<mask> dynamic::object(dynamic const& a, dynamic const& b) {
<mask> return ObjectMaker(a, b);
<mask> }
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove // This looks like a case for perfect forwarding, but our use of
// std::initializer_list for constructing dynamic arrays makes it less
// functional than doing this manually.
// TODO(ott, 10300209): When the initializer_list constructor is gone,
// simplify this.
</s> add </s> remove explicit ObjectMaker(dynamic const& key, dynamic val)
: val_(dynamic::object)
{
val_.insert(key, std::move(val));
}
explicit ObjectMaker(dynamic&& key, dynamic val)
</s> add explicit ObjectMaker(dynamic key, dynamic val) </s> add FBSTRING_ASSERT(b != nullptr);
FBSTRING_ASSERT(e != nullptr);
FBSTRING_ASSERT(d != nullptr); </s> remove inline dynamic::dynamic(std::string const& s)
</s> add inline dynamic::dynamic(std::string s) </s> remove new (&u_.string) std::string(s);
}
inline dynamic::dynamic(std::string&& s) : type_(STRING) {
</s> add
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic-inl.h
|
keep keep keep add keep keep keep keep keep
|
<mask> };
<mask>
<mask> //////////////////////////////////////////////////////////////////////
<mask>
<mask> inline dynamic::dynamic(void (*)(EmptyArrayTag))
<mask> : type_(ARRAY)
<mask> {
<mask> new (&u_.array) Array();
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove inline dynamic::dynamic(Array&& r, PrivateTag) : type_(ARRAY) {
</s> add inline dynamic::dynamic(Array&& r) : type_(ARRAY) { </s> remove template<class Iterator>
</s> add template <class Iterator> </s> remove typedef typename detail::ConversionHelper<T>::type U;
type_ = TypeInfo<U>::type;
new (getAddress<U>()) U(std::move(t));
</s> add type_ = TypeInfo<NumericType>::type;
new (getAddress<NumericType>()) NumericType(t); </s> remove new (&u_.string) std::string(s);
}
inline dynamic::dynamic(std::string&& s) : type_(STRING) {
</s> add </s> remove inline dynamic::dynamic(std::initializer_list<dynamic> il)
: dynamic(Array(std::move(il)), PrivateTag()) {}
inline dynamic& dynamic::operator=(std::initializer_list<dynamic> il) {
(*this) = dynamic(Array(std::move(il)), PrivateTag());
return *this;
}
</s> add </s> remove inline dynamic::dynamic(std::string const& s)
</s> add inline dynamic::dynamic(std::string s)
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic-inl.h
|
keep keep keep replace keep keep keep keep keep keep keep keep replace replace replace replace keep keep keep
|
<mask> new (&u_.string) std::string(s);
<mask> }
<mask>
<mask> inline dynamic::dynamic(std::string const& s)
<mask> : type_(STRING)
<mask> {
<mask> new (&u_.string) std::string(s);
<mask> }
<mask>
<mask> inline dynamic::dynamic(std::string const& s)
<mask> : type_(STRING)
<mask> {
<mask> new (&u_.string) std::string(s);
<mask> }
<mask>
<mask> inline dynamic::dynamic(std::string&& s) : type_(STRING) {
<mask> new (&u_.string) std::string(std::move(s));
<mask> }
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove inline dynamic::dynamic(std::initializer_list<dynamic> il)
: dynamic(Array(std::move(il)), PrivateTag()) {}
inline dynamic& dynamic::operator=(std::initializer_list<dynamic> il) {
(*this) = dynamic(Array(std::move(il)), PrivateTag());
return *this;
}
</s> add </s> add inline dynamic::dynamic() : dynamic(nullptr) {}
inline dynamic::dynamic(std::nullptr_t) : type_(NULLT) {}
</s> remove inline dynamic::dynamic(Array&& r, PrivateTag) : type_(ARRAY) {
</s> add inline dynamic::dynamic(Array&& r) : type_(ARRAY) { </s> remove inline dynamic::ObjectMaker dynamic::object(dynamic const& a, dynamic&& b) {
return ObjectMaker(a, std::move(b));
}
inline dynamic::ObjectMaker dynamic::object(dynamic&& a, dynamic const& b) {
return ObjectMaker(std::move(a), b);
}
inline dynamic::ObjectMaker
dynamic::object(dynamic const& a, dynamic const& b) {
return ObjectMaker(a, b);
}
</s> add </s> remove typedef typename detail::ConversionHelper<T>::type U;
type_ = TypeInfo<U>::type;
new (getAddress<U>()) U(std::move(t));
</s> add type_ = TypeInfo<NumericType>::type;
new (getAddress<NumericType>()) NumericType(t);
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic-inl.h
|
keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> inline dynamic::dynamic(std::string&& s) : type_(STRING) {
<mask> new (&u_.string) std::string(std::move(s));
<mask> }
<mask>
<mask> inline dynamic::dynamic(std::initializer_list<dynamic> il)
<mask> : dynamic(Array(std::move(il)), PrivateTag()) {}
<mask>
<mask> inline dynamic& dynamic::operator=(std::initializer_list<dynamic> il) {
<mask> (*this) = dynamic(Array(std::move(il)), PrivateTag());
<mask> return *this;
<mask> }
<mask>
<mask> inline dynamic::dynamic(ObjectMaker&& maker)
<mask> : type_(OBJECT)
<mask> {
<mask> new (getAddress<ObjectImpl>())
<mask> ObjectImpl(std::move(*maker.val_.getAddress<ObjectImpl>()));
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove new (&u_.string) std::string(s);
}
inline dynamic::dynamic(std::string&& s) : type_(STRING) {
</s> add </s> remove inline dynamic::dynamic(std::string const& s)
</s> add inline dynamic::dynamic(std::string s) </s> add inline dynamic::dynamic() : dynamic(nullptr) {}
inline dynamic::dynamic(std::nullptr_t) : type_(NULLT) {}
</s> remove inline dynamic::dynamic(Array&& r, PrivateTag) : type_(ARRAY) {
</s> add inline dynamic::dynamic(Array&& r) : type_(ARRAY) { </s> remove typedef typename detail::ConversionHelper<T>::type U;
type_ = TypeInfo<U>::type;
new (getAddress<U>()) U(std::move(t));
</s> add type_ = TypeInfo<NumericType>::type;
new (getAddress<NumericType>()) NumericType(t); </s> remove inline dynamic::ObjectMaker dynamic::object(dynamic const& a, dynamic&& b) {
return ObjectMaker(a, std::move(b));
}
inline dynamic::ObjectMaker dynamic::object(dynamic&& a, dynamic const& b) {
return ObjectMaker(std::move(a), b);
}
inline dynamic::ObjectMaker
dynamic::object(dynamic const& a, dynamic const& b) {
return ObjectMaker(a, b);
}
</s> add
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic-inl.h
|
keep keep keep keep replace keep replace replace replace keep keep keep
|
<mask> }
<mask>
<mask> inline dynamic::~dynamic() noexcept { destroy(); }
<mask>
<mask> template<class T>
<mask> dynamic::dynamic(T t) {
<mask> typedef typename detail::ConversionHelper<T>::type U;
<mask> type_ = TypeInfo<U>::type;
<mask> new (getAddress<U>()) U(std::move(t));
<mask> }
<mask>
<mask> template<class Iterator>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove template<class Iterator>
</s> add template <class Iterator> </s> remove /*
* The enable_if junk here is necessary to avoid ambiguous
* conversions relating to bool and double when you implicitly
* convert an int or long to a dynamic.
*/
template<class T, class Enable = void> struct ConversionHelper;
template<class T>
struct ConversionHelper<
T,
typename std::enable_if<
std::is_integral<T>::value && !std::is_same<T,bool>::value
>::type
> {
typedef int64_t type;
};
template <>
struct ConversionHelper<float> {
typedef double type;
};
template <class T>
struct ConversionHelper<
T,
typename std::enable_if<
(!std::is_integral<T>::value || std::is_same<T, bool>::value) &&
!std::is_same<T, float>::value &&
!std::is_same<T, std::nullptr_t>::value>::type> {
typedef T type;
};
template<class T>
struct ConversionHelper<
T,
typename std::enable_if<
std::is_same<T,std::nullptr_t>::value
>::type
> {
typedef void* type;
};
</s> add </s> remove dynamic(Array&& array, PrivateTag);
</s> add explicit dynamic(Array&& array); </s> remove typedef threadlocal_detail::StaticMeta<Tag> StaticMeta;
</s> add typedef threadlocal_detail::StaticMeta<Tag, AccessMode> StaticMeta;
</s> remove inline constexpr
typename std::enable_if<
std::is_integral<T>::value && std::is_unsigned<T>::value,
bool>::type
</s> add inline FOLLY_INTRINSIC_CONSTEXPR typename std::
enable_if<std::is_integral<T>::value && std::is_unsigned<T>::value, T>::type
prevPowTwo(T v) {
return v ? (T(1) << (findLastSet(v) - 1)) : 0;
}
template <class T>
inline constexpr typename std::enable_if<
std::is_integral<T>::value && std::is_unsigned<T>::value,
bool>::type
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic-inl.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> type_ = TypeInfo<U>::type;
<mask> new (getAddress<U>()) U(std::move(t));
<mask> }
<mask>
<mask> template<class Iterator>
<mask> dynamic::dynamic(Iterator first, Iterator last)
<mask> : type_(ARRAY)
<mask> {
<mask> new (&u_.array) Array(first, last);
<mask> }
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove typedef typename detail::ConversionHelper<T>::type U;
type_ = TypeInfo<U>::type;
new (getAddress<U>()) U(std::move(t));
</s> add type_ = TypeInfo<NumericType>::type;
new (getAddress<NumericType>()) NumericType(t); </s> remove template<class Iterator> dynamic(Iterator first, Iterator last);
</s> add template<class Iterator>
explicit dynamic(Iterator first, Iterator last); </s> remove template<class T>
</s> add // Integral types except bool convert to int64_t, float types to double.
template <class T>
struct dynamic::NumericTypeHelper<
T, typename std::enable_if<std::is_integral<T>::value>::type> {
using type = int64_t;
};
template <>
struct dynamic::NumericTypeHelper<bool> {
using type = bool;
};
template <>
struct dynamic::NumericTypeHelper<float> {
using type = double;
};
template <>
struct dynamic::NumericTypeHelper<double> {
using type = double;
};
template<class T, class NumericType /* = typename NumericTypeHelper<T>::type */> </s> remove inline dynamic::dynamic(Array&& r, PrivateTag) : type_(ARRAY) {
</s> add inline dynamic::dynamic(Array&& r) : type_(ARRAY) { </s> add inline dynamic::dynamic() : dynamic(nullptr) {}
inline dynamic::dynamic(std::nullptr_t) : type_(NULLT) {}
</s> remove inline dynamic::dynamic(std::initializer_list<dynamic> il)
: dynamic(Array(std::move(il)), PrivateTag()) {}
inline dynamic& dynamic::operator=(std::initializer_list<dynamic> il) {
(*this) = dynamic(Array(std::move(il)), PrivateTag());
return *this;
}
</s> add
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic-inl.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> }
<mask>
<mask> //////////////////////////////////////////////////////////////////////
<mask>
<mask> inline dynamic::dynamic(Array&& r, PrivateTag) : type_(ARRAY) {
<mask> new (&u_.array) Array(std::move(r));
<mask> }
<mask>
<mask> #define FOLLY_DYNAMIC_DEC_TYPEINFO(T, str, val) \
<mask> template <> struct dynamic::TypeInfo<T> { \
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add inline dynamic::dynamic() : dynamic(nullptr) {}
inline dynamic::dynamic(std::nullptr_t) : type_(NULLT) {}
</s> remove template<class Iterator>
</s> add template <class Iterator> </s> remove template<class T>
</s> add // Integral types except bool convert to int64_t, float types to double.
template <class T>
struct dynamic::NumericTypeHelper<
T, typename std::enable_if<std::is_integral<T>::value>::type> {
using type = int64_t;
};
template <>
struct dynamic::NumericTypeHelper<bool> {
using type = bool;
};
template <>
struct dynamic::NumericTypeHelper<float> {
using type = double;
};
template <>
struct dynamic::NumericTypeHelper<double> {
using type = double;
};
template<class T, class NumericType /* = typename NumericTypeHelper<T>::type */> </s> add // Returns true if FailureSignalHandler is installed.
bool IsFailureSignalHandlerInstalled(); </s> add // Returns true if FailureSignalHandler is installed.
bool IsFailureSignalHandlerInstalled(); </s> remove explicit ObjectMaker(dynamic const& key, dynamic val)
: val_(dynamic::object)
{
val_.insert(key, std::move(val));
}
explicit ObjectMaker(dynamic&& key, dynamic val)
</s> add explicit ObjectMaker(dynamic key, dynamic val)
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic-inl.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> //
<mask>
<mask> FOLLY_DYNAMIC_DEC_TYPEINFO(void*, "null", dynamic::NULLT)
<mask> FOLLY_DYNAMIC_DEC_TYPEINFO(bool, "boolean", dynamic::BOOL)
<mask> FOLLY_DYNAMIC_DEC_TYPEINFO(std::string, "string", dynamic::STRING)
<mask> FOLLY_DYNAMIC_DEC_TYPEINFO(dynamic::Array, "array", dynamic::ARRAY)
<mask> FOLLY_DYNAMIC_DEC_TYPEINFO(double, "double", dynamic::DOUBLE)
<mask> FOLLY_DYNAMIC_DEC_TYPEINFO(int64_t, "int64", dynamic::INT64)
<mask> FOLLY_DYNAMIC_DEC_TYPEINFO(dynamic::ObjectImpl, "object", dynamic::OBJECT)
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add // Set the log file mode.
DECLARE_int32(logfile_mode);
</s> remove // Ensure unique
if (RefCounted::refs(ml_.data_) > 1) {
</s> add if (RefCounted::refs(ml_.data_) > 1) { // Ensure unique </s> remove // Check flags. We are only interested in "r-x" maps.
if (memcmp(flags_start, "r-x", 3) != 0) { // Not a "r-x" map.
</s> add // Check flags. We are only interested in "r*x" maps.
if (flags_start[0] != 'r' || flags_start[2] != 'x') { </s> add bool strict_; </s> remove #endif // NDEBUG
</s> add #endif // DCHECK_IS_ON() </s> remove #endif // NDEBUG
</s> add #endif // DCHECK_IS_ON()
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic-inl.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> * See the License for the specific language governing permissions and
<mask> * limitations under the License.
<mask> */
<mask>
<mask> #include <folly/dynamic.h>
<mask> #include <folly/Hash.h>
<mask>
<mask> namespace folly {
<mask>
<mask> //////////////////////////////////////////////////////////////////////
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add #include <folly/dynamic.h>
#include <folly/portability/BitsFunctexcept.h> </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <iostream> </s> add #include <folly/detail/TryDetail.h> </s> remove #if !defined(FOLLY_ALLOW_TFO) && defined(__linux__) && !defined(__ANDROID__)
</s> add #if !defined(FOLLY_ALLOW_TFO)
#if defined(__linux__) || defined(__APPLE__)
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic.cpp
|
keep keep keep add keep keep keep keep keep keep
|
<mask> * limitations under the License.
<mask> */
<mask>
<mask> #include <folly/Hash.h>
<mask>
<mask> namespace folly {
<mask>
<mask> //////////////////////////////////////////////////////////////////////
<mask>
<mask> #define FOLLY_DYNAMIC_DEF_TYPEINFO(T) \
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove #include <folly/dynamic.h>
</s> add </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <iostream> </s> remove #if !defined(FOLLY_ALLOW_TFO) && defined(__linux__) && !defined(__ANDROID__)
</s> add #if !defined(FOLLY_ALLOW_TFO)
#if defined(__linux__) || defined(__APPLE__) </s> add #include <folly/detail/TryDetail.h>
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic.cpp
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> if (!idx.isInt()) {
<mask> throw TypeError("int64", idx.type());
<mask> }
<mask> if (idx < 0 || idx >= parray->size()) {
<mask> throw std::out_of_range("out of range in dynamic array");
<mask> }
<mask> return (*parray)[idx.asInt()];
<mask> } else if (auto* pobject = get_nothrow<ObjectImpl>()) {
<mask> auto it = pobject->find(idx);
<mask> if (it == pobject->end()) {
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove throw std::out_of_range("sorted_vector_map::at");
</s> add std::__throw_out_of_range("sorted_vector_map::at"); </s> remove throw std::out_of_range("Key does not exist");
</s> add std::__throw_out_of_range("Key does not exist"); </s> remove throw std::out_of_range("Key does not exist");
</s> add std::__throw_out_of_range("Key does not exist"); </s> remove throw std::out_of_range("sorted_vector_map::at");
</s> add std::__throw_out_of_range("sorted_vector_map::at"); </s> remove auto const c = category();
if (c == Category::isSmall) {
return;
}
if (c == Category::isMedium) {
free(ml_.data_);
</s> add if (category() == Category::isSmall) { </s> remove throw std::out_of_range("index out of range");
</s> add std::__throw_out_of_range("index out of range");
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic.cpp
|
keep keep keep keep replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> *
<mask> * Also see folly/json.h for the serialization and deserialization
<mask> * functions for JSON.
<mask> *
<mask> * Note: dynamic is not DefaultConstructible. Rationale:
<mask> *
<mask> * - The intuitive thing to initialize a defaulted dynamic to would
<mask> * be nullptr.
<mask> *
<mask> * - However, the expression dynamic d = {} is required to call the
<mask> * default constructor by the standard, which is confusing
<mask> * behavior for dynamic unless the default constructor creates an
<mask> * empty array.
<mask> *
<mask> * Additional documentation is in folly/docs/Dynamic.md.
<mask> *
<mask> * @author Jordan DeLong <[email protected]>
<mask> */
<mask>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> remove * Create a new array from an initializer list.
*
* For example:
*
* dynamic v = { 1, 2, 3, "foo" };
*/
// TODO(ott, 10300209): Remove once all uses have been eradicated.
FOLLY_DEPRECATED(
"Initializer list syntax is deprecated (#10300209). Use dynamic::array.")
/* implicit */ dynamic(std::initializer_list<dynamic> il);
FOLLY_DEPRECATED(
"Initializer list syntax is deprecated (#10300209). Use dynamic::array.")
dynamic& operator=(std::initializer_list<dynamic> il);
/*
* Conversion constructors from most of the other types.
</s> add * Constructors for integral and float types.
* Other types are SFINAEd out with NumericTypeHelper. </s> remove * lexical order. Example:
</s> add * the current scope. Example: </s> remove template<class T> /* implicit */ dynamic(T t);
</s> add template<class T, class NumericType = typename NumericTypeHelper<T>::type>
/* implicit */ dynamic(T t); </s> remove template<class Iterator> dynamic(Iterator first, Iterator last);
</s> add template<class Iterator>
explicit dynamic(Iterator first, Iterator last); </s> remove #include <folly/dynamic.h>
</s> add </s> remove static ObjectMaker object(dynamic&&, dynamic&&);
static ObjectMaker object(dynamic const&, dynamic&&);
static ObjectMaker object(dynamic&&, dynamic const&);
static ObjectMaker object(dynamic const&, dynamic const&);
</s> add static ObjectMaker object(dynamic, dynamic);
/**
* Default constructor, initializes with nullptr.
*/
dynamic();
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic.h
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> #pragma once
<mask>
<mask> #include <cstdint>
<mask> #include <initializer_list>
<mask> #include <memory>
<mask> #include <ostream>
<mask> #include <string>
<mask> #include <type_traits>
<mask> #include <unordered_map>
</s> [sdk31] Update CocoaPods with RN SDK 31 files
Folly was updated, so I went back to the Podspec files for older RN versions and made them use the slightly newer version of Folly used with RN 0.57. </s> add #include <iostream> </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <folly/detail/TryDetail.h> </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <folly/portability/BitsFunctexcept.h> </s> add #include <folly/dynamic.h>
#include <folly/portability/BitsFunctexcept.h>
|
https://github.com/expo/expo/commit/4ac77874d024d32c5f0121f2f6d5c864eabbb1d7
|
ios/Pods/Folly/folly/dynamic.h
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.