[Webkit-unassigned] [Bug 44329] SH4 JIT SUPPORT

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 7 10:49:13 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=44329


Oliver Hunt <oliver at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #88415|review?                     |review-
               Flag|                            |




--- Comment #114 from Oliver Hunt <oliver at apple.com>  2011-04-07 10:49:12 PST ---
(From update of attachment 88415)
View in context: https://bugs.webkit.org/attachment.cgi?id=88415&action=review

r- due to the END_UNINTERRUPTED_SEQUENCE stuff

> Source/JavaScriptCore/assembler/SH4Assembler.h:36
> +#include <stdio.h>

this seems unnecessary

> Source/JavaScriptCore/jit/JIT.h:712
> +#define END_UNINTERRUPTED_SEQUENCES(name, extraI, extraC) endUninterruptedSequence(name ## InstructionSpace + extraI, name ## ConstantSpace + extraC)

macros like this should always be wrapped in a do {} while (false) construct to reduce the chance of incorrect use.

> Source/JavaScriptCore/jit/JITPropertyAccess32_64.cpp:485
> +#if CPU(SH4)
> +    if ((dst >= 0) && (dst <= 7))
> +        END_UNINTERRUPTED_SEQUENCE(sequenceGetByIdSlowCase);
> +    else if ((dst > 15) || (dst < -16))
> +        END_UNINTERRUPTED_SEQUENCES(sequenceGetByIdSlowCase, 8, 2);
> +    else
> +        END_UNINTERRUPTED_SEQUENCES(sequenceGetByIdSlowCase, 8, 0);
> +#else

Rather than having this ifdef here you should have this logic in the platform specific handler for uninterrupted sequence.  If absolutely necessary you can just make END_UNINTERRUPTED_SEQUENCE takes a dst parameter.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list