summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/StackAlignment.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-05-20 09:56:07 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-05-20 09:56:07 +0000
commit41386e9cb918eed93b3f13648cbef387e371e451 (patch)
treea97f9d7bd1d9d091833286085f72da9d83fd0606 /Source/JavaScriptCore/runtime/StackAlignment.h
parente15dd966d523731101f70ccf768bba12435a0208 (diff)
downloadWebKitGtk-tarball-41386e9cb918eed93b3f13648cbef387e371e451.tar.gz
webkitgtk-2.4.9webkitgtk-2.4.9
Diffstat (limited to 'Source/JavaScriptCore/runtime/StackAlignment.h')
-rw-r--r--Source/JavaScriptCore/runtime/StackAlignment.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/Source/JavaScriptCore/runtime/StackAlignment.h b/Source/JavaScriptCore/runtime/StackAlignment.h
index d29802b3f..b803e4ded 100644
--- a/Source/JavaScriptCore/runtime/StackAlignment.h
+++ b/Source/JavaScriptCore/runtime/StackAlignment.h
@@ -27,8 +27,6 @@
#define StackAlignment_h
#include "JSCJSValue.h"
-#include "JSStack.h"
-#include <wtf/MathExtras.h>
namespace JSC {
@@ -40,25 +38,6 @@ inline unsigned stackAlignmentRegisters()
return stackAlignmentBytes() / sizeof(EncodedJSValue);
}
-// Align argument count taking into account the CallFrameHeaderSize may be
-// an "unaligned" count of registers.
-inline unsigned roundArgumentCountToAlignFrame(unsigned argumentCount)
-{
- return WTF::roundUpToMultipleOf(stackAlignmentRegisters(), argumentCount + JSStack::CallFrameHeaderSize) - JSStack::CallFrameHeaderSize;
-}
-
-// Align local register count to make the last local end on a stack aligned address given the
-// CallFrame is at an address that is stack aligned minus JSStack::CallerFrameAndPCSize
-inline unsigned roundLocalRegisterCountForFramePointerOffset(unsigned localRegisterCount)
-{
- return WTF::roundUpToMultipleOf(stackAlignmentRegisters(), localRegisterCount + JSStack::CallerFrameAndPCSize) - JSStack::CallerFrameAndPCSize;
-}
-
-inline unsigned logStackAlignmentRegisters()
-{
- return WTF::fastLog2(stackAlignmentRegisters());
-}
-
} // namespace JSC
#endif // StackAlignment_h