WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
191092
[JSC][LLInt] Compact LLInt ASM code by removing unnecessary instructions
https://bugs.webkit.org/show_bug.cgi?id=191092
Summary
[JSC][LLInt] Compact LLInt ASM code by removing unnecessary instructions
Yusuke Suzuki
Reported
2018-10-30 16:42:44 PDT
[JSC][LLInt] Compact LLInt ASM code by removing unnecessary instructions
Attachments
Patch
(8.95 KB, patch)
2018-10-30 16:45 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(8.95 KB, patch)
2018-10-30 17:15 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(8.90 KB, patch)
2018-10-30 22:18 PDT
,
Yusuke Suzuki
saam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2018-10-30 16:45:32 PDT
Created
attachment 353433
[details]
Patch
Yusuke Suzuki
Comment 2
2018-10-30 17:15:07 PDT
Created
attachment 353444
[details]
Patch
Yusuke Suzuki
Comment 3
2018-10-30 22:18:36 PDT
Created
attachment 353463
[details]
Patch
Saam Barati
Comment 4
2018-10-30 22:26:31 PDT
Comment on
attachment 353444
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=353444&action=review
r=me if you fix arm64
> Source/JavaScriptCore/offlineasm/arm64.rb:491 > + emitARM64LShift([Immediate.new(nil, imm.to_s(2).size - 1), operands[1]], kind)
What does size return? Why not just log base 2?
Yusuke Suzuki
Comment 5
2018-10-30 23:11:52 PDT
Comment on
attachment 353444
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=353444&action=review
>> Source/JavaScriptCore/offlineasm/arm64.rb:491 >> + emitARM64LShift([Immediate.new(nil, imm.to_s(2).size - 1), operands[1]], kind) > > What does size return? Why not just log base 2?
to_s(2) returns string with radix = 2. So, imm (4) .to_s(2) returns "100". "100".size - 1 => 2, which is the same to Math.log2(4).to_i. Changed to `Math.log2(imm).to_i`.
Yusuke Suzuki
Comment 6
2018-10-30 23:14:09 PDT
Committed
r237627
: <
https://trac.webkit.org/changeset/237627
>
Radar WebKit Bug Importer
Comment 7
2018-10-30 23:15:25 PDT
<
rdar://problem/45692456
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug