Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | JSObject: Create explicit instantiation of putByIndexBeyondVectorLengthWithoutAttributes |
| 2 | |
| 3 | Reason for change: newer gcc might optimize away the templates |
| 4 | and they wont be available for other .cpp files to use as these |
| 5 | are used in a different .cpp we need to tell compiler to explicitly |
| 6 | instantiate them. |
| 7 | |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | |
| 10 | Upstream-Status: Pending |
| 11 | |
| 12 | Index: webkitgtk-2.8.5/Source/JavaScriptCore/runtime/JSObject.cpp |
| 13 | =================================================================== |
| 14 | --- webkitgtk-2.8.5.orig/Source/JavaScriptCore/runtime/JSObject.cpp |
| 15 | +++ webkitgtk-2.8.5/Source/JavaScriptCore/runtime/JSObject.cpp |
| 16 | @@ -1965,6 +1965,10 @@ void JSObject::putByIndexBeyondVectorLen |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | +template void JSObject::putByIndexBeyondVectorLengthWithoutAttributes<Int32Shape>(ExecState* exec, unsigned i, JSValue value); |
| 21 | +template void JSObject::putByIndexBeyondVectorLengthWithoutAttributes<DoubleShape>(ExecState* exec, unsigned i, JSValue value); |
| 22 | +template void JSObject::putByIndexBeyondVectorLengthWithoutAttributes<ContiguousShape>(ExecState* exec, unsigned i, JSValue value); |
| 23 | + |
| 24 | void JSObject::putByIndexBeyondVectorLengthWithArrayStorage(ExecState* exec, unsigned i, JSValue value, bool shouldThrow, ArrayStorage* storage) |
| 25 | { |
| 26 | VM& vm = exec->vm(); |