[Webkit-unassigned] [Bug 30144] MIPS JIT Supports

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 25 17:04:47 PST 2010


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





--- Comment #45 from Chao-ying Fu <fu at mips.com>  2010-02-25 17:04:46 PST ---
(In reply to comment #44)
> >   I will change __clear_cache to __builtin____clear_cache that is a GCC builtin
> > function from GCC manual.  Is it ok?
> 
> Well, I don't mind using __clear_cache (or __builtin___clear_cache) on MIPS,
> but I have to note this is a *builtin* function. GCC community makes no
> promises about it. Very likely __clear_cache will be private in a later version
> of GCC (that was what happened in g++ 4.1.1 on ARM).
> 
> Just read the first section of
> http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html !
> 
> If you really like to use it, please guard __clear_cache with some GCC version
> checks.

  Yes, I will guard with GCC version check.
Note: I think __builtin____clear_cache() is a little bit better than
__clear_cache(), since GCC will direct the call to __clear_cache() (that is
implemented on MIPS) or to a system function.
And __clear_cache() can generate RTL instructions for better scheduling,
compared to using asm() macros in c/cpp files.

  For MIPS Linux, we will call _flush_cache(), if GCC is not used.
Thanks!

Regards,
Chao-ying

-- 
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