Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
JavaScriptCore fails to build using GCC 5
https://bugs.webkit.org/show_bug.cgi?id=147815

Patch by Khem Raj <raj.khem@gmail.com> on 2015-08-28
Reviewed by Filip Pizlo.

* runtime/JSObject.cpp: Explicitly instantiate all variants of
putByIndexBeyondVectorLengthWithAttributes used by JSArray.cpp.

Canonical link: https://commits.webkit.org/166711@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189133 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
kraj authored and webkit-commit-queue committed Aug 28, 2015
1 parent 751a6cc commit 3e1dd3a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/JavaScriptCore/ChangeLog
@@ -1,3 +1,13 @@
2015-08-28 Khem Raj <raj.khem@gmail.com>

JavaScriptCore fails to build using GCC 5
https://bugs.webkit.org/show_bug.cgi?id=147815

Reviewed by Filip Pizlo.

* runtime/JSObject.cpp: Explicitly instantiate all variants of
putByIndexBeyondVectorLengthWithAttributes used by JSArray.cpp.

2015-08-28 Mark Lam <mark.lam@apple.com>

Refactor the JIT printer out of the AbstractMacroAssembler into MacroAssemblerPrinter.
Expand Down
5 changes: 5 additions & 0 deletions Source/JavaScriptCore/runtime/JSObject.cpp
Expand Up @@ -1956,6 +1956,11 @@ void JSObject::putByIndexBeyondVectorLengthWithoutAttributes(ExecState* exec, un
}
}

// Explicit instantiations needed by JSArray.cpp.
template void JSObject::putByIndexBeyondVectorLengthWithoutAttributes<Int32Shape>(ExecState*, unsigned, JSValue);
template void JSObject::putByIndexBeyondVectorLengthWithoutAttributes<DoubleShape>(ExecState*, unsigned, JSValue);
template void JSObject::putByIndexBeyondVectorLengthWithoutAttributes<ContiguousShape>(ExecState*, unsigned, JSValue);

void JSObject::putByIndexBeyondVectorLengthWithArrayStorage(ExecState* exec, unsigned i, JSValue value, bool shouldThrow, ArrayStorage* storage)
{
VM& vm = exec->vm();
Expand Down

0 comments on commit 3e1dd3a

Please sign in to comment.