WebKit Bugzilla
Attachment 360441 Details for
Bug 193957
: mul32 should convert powers of 2 to an lshift
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-193957-20190128225213.patch (text/plain), 1.51 KB, created by
Keith Miller
on 2019-01-28 22:52:14 PST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Keith Miller
Created:
2019-01-28 22:52:14 PST
Size:
1.51 KB
patch
obsolete
>Subversion Revision: 240644 >diff --git a/Source/JavaScriptCore/ChangeLog b/Source/JavaScriptCore/ChangeLog >index ad050a70c2e964c68aaa131679acf92633ffeefd..2c2a1f6369c06add6d1d6f9ddbf26f94ab4e95fb 100644 >--- a/Source/JavaScriptCore/ChangeLog >+++ b/Source/JavaScriptCore/ChangeLog >@@ -1,3 +1,13 @@ >+2019-01-28 Keith Miller <keith_miller@apple.com> >+ >+ mul32 should convert powers of 2 to an lshift >+ https://bugs.webkit.org/show_bug.cgi?id=193957 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * assembler/MacroAssembler.h: >+ (JSC::MacroAssembler::mul32): >+ > 2019-01-28 Devin Rousso <drousso@apple.com> > > Web Inspector: provide a way to edit page WebRTC settings on a remote target >diff --git a/Source/JavaScriptCore/assembler/MacroAssembler.h b/Source/JavaScriptCore/assembler/MacroAssembler.h >index 3a72c2792240ab6865644570960510e6e1020d88..2f4b7cd7320e952f188ae1aa704fd675b08bfd2a 100644 >--- a/Source/JavaScriptCore/assembler/MacroAssembler.h >+++ b/Source/JavaScriptCore/assembler/MacroAssembler.h >@@ -1904,6 +1904,15 @@ public: > urshift32(src, trustedImm32ForShift(amount), dest); > } > >+ void mul32(TrustedImm32 imm, RegisterID src, RegisterID dest) >+ { >+ if (hasOneBitSet(imm.m_value)) { >+ lshift32(src, TrustedImm32(getLSBSet(imm.m_value) - 1), dest); >+ return; >+ } >+ MacroAssemblerBase::mul32(imm, src, dest); >+ } >+ > // If the result jump is taken that means the assert passed. > void jitAssert(const WTF::ScopedLambda<Jump(void)>&); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 193957
:
360441
|
360446
|
360447
|
360448
|
360449
|
360613
|
360614
|
360617