diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/runtime/StackAlignment.h | |
parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/runtime/StackAlignment.h')
-rw-r--r-- | Source/JavaScriptCore/runtime/StackAlignment.h | 21 |
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 |