Skip to content

Commit 5570d06

Browse files
committed
Merge branch 'TrompoGames-master'
2 parents 794f93e + 589461e commit 5570d06

File tree

8 files changed

+84
-30
lines changed

8 files changed

+84
-30
lines changed

JavaScriptCore/API/OpaqueJSString.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ PassRefPtr<OpaqueJSString> OpaqueJSString::create(const String& string)
4141

4242
String OpaqueJSString::string() const
4343
{
44+
#pragma clang diagnostic push
45+
#pragma clang diagnostic ignored "-Wundefined-bool-conversion"
4446
if (!this)
47+
#pragma clang diagnostic pop
4548
return String();
4649

4750
// Return a copy of the wrapped string, because the caller may make it an Identifier.
@@ -50,7 +53,10 @@ String OpaqueJSString::string() const
5053

5154
Identifier OpaqueJSString::identifier(VM* vm) const
5255
{
56+
#pragma clang diagnostic push
57+
#pragma clang diagnostic ignored "-Wundefined-bool-conversion"
5358
if (!this || m_string.isNull())
59+
#pragma clang diagnostic pop
5460
return Identifier();
5561

5662
if (m_string.isEmpty())

JavaScriptCore/API/OpaqueJSString.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ struct OpaqueJSString : public ThreadSafeRefCounted<OpaqueJSString> {
5353

5454
JS_EXPORT_PRIVATE static PassRefPtr<OpaqueJSString> create(const String&);
5555

56+
#pragma clang diagnostic push
57+
#pragma clang diagnostic ignored "-Wundefined-bool-conversion"
5658
const UChar* characters() { return !!this ? m_string.characters() : 0; }
5759
unsigned length() { return !!this ? m_string.length() : 0; }
60+
#pragma clang diagnostic pop
5861

5962
JS_EXPORT_PRIVATE String string() const;
6063
JSC::Identifier identifier(JSC::VM*) const;

JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj

Lines changed: 64 additions & 28 deletions
Large diffs are not rendered by default.

JavaScriptCore/assembler/MacroAssembler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ class MacroAssembler : public MacroAssemblerBase {
986986
if (bitwise_cast<uint64_t>(value * 1.0) != bitwise_cast<uint64_t>(value))
987987
return shouldConsiderBlinding();
988988

989-
value = abs(value);
989+
value = fabs(value);
990990
// Only allow a limited set of fractional components
991991
double scaledValue = value * 8;
992992
if (scaledValue / 8 != value)

JavaScriptCore/interpreter/CallFrame.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,10 @@ namespace JSC {
269269

270270
bool isVMEntrySentinel() const
271271
{
272+
#pragma clang diagnostic push
273+
#pragma clang diagnostic ignored "-Wundefined-bool-conversion"
272274
return !!this && codeBlock() == vmEntrySentinelCodeBlock();
275+
#pragma clang diagnostic pop
273276
}
274277

275278
CallFrame* vmEntrySentinelCallerFrame() const

JavaScriptCore/parser/SourceProvider.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ namespace JSC {
5555
intptr_t asID()
5656
{
5757
ASSERT(this);
58+
#pragma clang diagnostic push
59+
#pragma clang diagnostic ignored "-Wundefined-bool-conversion"
5860
if (!this) // Be defensive in release mode.
61+
#pragma clang diagnostic pop
5962
return nullID;
6063
if (!m_id)
6164
getID();

WTF/WTF.xcodeproj/project.pbxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,7 @@
13331333
isa = XCBuildConfiguration;
13341334
baseConfigurationReference = 6541CAF41630DB26006D0DEC /* CopyWTFHeaders.xcconfig */;
13351335
buildSettings = {
1336+
ENABLE_BITCODE = YES;
13361337
PRODUCT_NAME = "$(TARGET_NAME)";
13371338
};
13381339
name = Debug;
@@ -1341,6 +1342,7 @@
13411342
isa = XCBuildConfiguration;
13421343
baseConfigurationReference = 6541CAF41630DB26006D0DEC /* CopyWTFHeaders.xcconfig */;
13431344
buildSettings = {
1345+
ENABLE_BITCODE = YES;
13441346
PRODUCT_NAME = "$(TARGET_NAME)";
13451347
};
13461348
name = Release;
@@ -1349,6 +1351,7 @@
13491351
isa = XCBuildConfiguration;
13501352
baseConfigurationReference = 6541CAF41630DB26006D0DEC /* CopyWTFHeaders.xcconfig */;
13511353
buildSettings = {
1354+
ENABLE_BITCODE = YES;
13521355
PRODUCT_NAME = "$(TARGET_NAME)";
13531356
};
13541357
name = Production;

WTF/wtf/dtoa/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ namespace double_conversion {
294294
inline Dest BitCast(const Source& source) {
295295
// Compile time assertion: sizeof(Dest) == sizeof(Source)
296296
// A compile error here means your Dest and Source have different sizes.
297-
typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1];
297+
//typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1];
298298

299299
Dest dest;
300300
memcpy(&dest, &source, sizeof(dest));

0 commit comments

Comments
 (0)