Skip to content

Commit a2b7d3b

Browse files
committed
[JavaScriptCore] FTL buildfix for EFL platform.
https://bugs.webkit.org/show_bug.cgi?id=133546 Reviewed by Darin Adler. * ftl/FTLAbstractHeap.cpp: (JSC::FTL::IndexedAbstractHeap::IndexedAbstractHeap): * ftl/FTLLocation.cpp: (JSC::FTL::Location::forStackmaps): * ftl/FTLLowerDFGToLLVM.cpp: (JSC::FTL::LowerDFGToLLVM::opposite): * ftl/FTLOSRExitCompiler.cpp: (JSC::FTL::compileStub): * ftl/FTLStackMaps.cpp: (JSC::FTL::StackMaps::Constant::dump): * llvm/InitializeLLVMPOSIX.cpp: (JSC::initializeLLVMPOSIX): Canonical link: https://commits.webkit.org/152365@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170525 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent a13c556 commit a2b7d3b

7 files changed

Lines changed: 28 additions & 4 deletions

File tree

Source/JavaScriptCore/ChangeLog

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
2014-06-27 László Langó <llango.u-szeged@partner.samsung.com>
2+
3+
[JavaScriptCore] FTL buildfix for EFL platform.
4+
https://bugs.webkit.org/show_bug.cgi?id=133546
5+
6+
Reviewed by Darin Adler.
7+
8+
* ftl/FTLAbstractHeap.cpp:
9+
(JSC::FTL::IndexedAbstractHeap::IndexedAbstractHeap):
10+
* ftl/FTLLocation.cpp:
11+
(JSC::FTL::Location::forStackmaps):
12+
* ftl/FTLLowerDFGToLLVM.cpp:
13+
(JSC::FTL::LowerDFGToLLVM::opposite):
14+
* ftl/FTLOSRExitCompiler.cpp:
15+
(JSC::FTL::compileStub):
16+
* ftl/FTLStackMaps.cpp:
17+
(JSC::FTL::StackMaps::Constant::dump):
18+
* llvm/InitializeLLVMPOSIX.cpp:
19+
(JSC::initializeLLVMPOSIX):
20+
121
2014-06-26 Benjamin Poulain <benjamin@webkit.org>
222

323
iOS 8 beta 2 ES6 'Set' clear() broken

Source/JavaScriptCore/ftl/FTLAbstractHeap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ IndexedAbstractHeap::IndexedAbstractHeap(LContext context, AbstractHeap* parent,
6464
// See if there is a common shift amount we could use instead of multiplying. Don't
6565
// try too hard. This is just a speculative optimization to reduce load on LLVM.
6666
for (unsigned i = 0; i < 4; ++i) {
67-
if ((1 << i) == m_elementSize) {
67+
if (1U << i == m_elementSize) {
6868
if (i)
6969
m_scaleTerm = constInt(intPtrType(context), i, ZeroExtend);
7070
m_canShift = true;

Source/JavaScriptCore/ftl/FTLLocation.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ Location Location::forStackmaps(const StackMaps* stackmaps, const StackMaps::Loc
5959
}
6060

6161
RELEASE_ASSERT_NOT_REACHED();
62+
63+
return Location();
6264
}
6365

6466
void Location::dump(PrintStream& out) const

Source/JavaScriptCore/ftl/FTLLowerDFGToLLVM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4854,6 +4854,7 @@ class LowerDFGToLLVM {
48544854
return Int52;
48554855
}
48564856
RELEASE_ASSERT_NOT_REACHED();
4857+
return Int52;
48574858
}
48584859

48594860
LValue lowWhicheverInt52(Edge edge, Int52Kind& kind)

Source/JavaScriptCore/ftl/FTLOSRExitCompiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ using namespace DFG;
4949
static void compileStub(
5050
unsigned exitID, JITCode* jitCode, OSRExit& exit, VM* vm, CodeBlock* codeBlock)
5151
{
52-
StackMaps::Record* record;
52+
StackMaps::Record* record = nullptr;
5353

5454
for (unsigned i = jitCode->stackmaps.records.size(); i--;) {
5555
record = &jitCode->stackmaps.records[i];

Source/JavaScriptCore/ftl/FTLStackMaps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void StackMaps::Constant::parse(StackMaps::ParseContext& context)
5050

5151
void StackMaps::Constant::dump(PrintStream& out) const
5252
{
53-
out.printf("0x%016llx", integer);
53+
out.printf("0x%016llx", static_cast<unsigned long long>(integer));
5454
}
5555

5656
void StackMaps::StackSize::parse(StackMaps::ParseContext& context)

Source/JavaScriptCore/llvm/InitializeLLVMPOSIX.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535

3636
namespace JSC {
3737

38-
typedef LLVMAPI* (*InitializerFunction)(void (*)(const char*, ...));
38+
typedef void (*LoggerFunction)(const char*, ...) WTF_ATTRIBUTE_PRINTF(1, 2);
39+
typedef LLVMAPI* (*InitializerFunction)(LoggerFunction);
3940

4041
void initializeLLVMPOSIX(const char* libraryName)
4142
{

0 commit comments

Comments
 (0)