WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
164811
B3 should support UDiv/UMod
https://bugs.webkit.org/show_bug.cgi?id=164811
Summary
B3 should support UDiv/UMod
Keith Miller
Reported
2016-11-15 19:13:08 PST
B3 should support UDiv/UMod
Attachments
Patch
(37.20 KB, patch)
2016-11-15 19:17 PST
,
Keith Miller
no flags
Details
Formatted Diff
Diff
Patch for landing
(38.25 KB, patch)
2016-11-15 19:31 PST
,
Keith Miller
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Keith Miller
Comment 1
2016-11-15 19:17:33 PST
Created
attachment 294915
[details]
Patch
WebKit Commit Bot
Comment 2
2016-11-15 19:20:23 PST
This patch modifies one of the wasm.json files. Please ensure that any changes in one have been mirrored to the other. You can find the wasm.json files at "Source/JavaScriptCore/wasm/wasm.json" and "JSTests/wasm/wasm.json".
Filip Pizlo
Comment 3
2016-11-15 19:24:52 PST
Comment on
attachment 294915
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=294915&action=review
r=me with comments
> Source/JavaScriptCore/b3/B3Common.h:152 > + > +
So blank, much space.
> Source/JavaScriptCore/b3/B3LowerToAir.cpp:2830 > + void lowerX86UDiv() > + {
The way I would have done this, and in hindsight the code above for signed div, is that the #if's should be inside the body, like: #if CPU(blah) your code #else UNREACHABLE_FOR_PLATFORM(); #endif This would get rid of a lot of #if gunk above. You could then just use if (isX86()).
> Source/JavaScriptCore/b3/air/AirOpcode.opcodes:313 > +Tmp*, Tmp*, Tmp
Indent!
Keith Miller
Comment 4
2016-11-15 19:31:19 PST
Created
attachment 294916
[details]
Patch for landing
WebKit Commit Bot
Comment 5
2016-11-15 20:47:24 PST
Comment on
attachment 294916
[details]
Patch for landing Clearing flags on attachment: 294916 Committed
r208781
: <
http://trac.webkit.org/changeset/208781
>
WebKit Commit Bot
Comment 6
2016-11-15 20:47:28 PST
All reviewed patches have been landed. Closing bug.
Csaba Osztrogonác
Comment 7
2016-11-16 07:13:18 PST
(In reply to
comment #5
)
> Comment on
attachment 294916
[details]
> Patch for landing > > Clearing flags on attachment: 294916 > > Committed
r208781
: <
http://trac.webkit.org/changeset/208781
>
It broke the iOS build:
https://build.webkit.org/builders/Apple%20iOS%2010%20Release%20%28Build%29/builds/1378
/Volumes/Data/slave/ios-10-release/build/Source/JavaScriptCore/b3/B3LowerToAir.cpp:2100:34: error: use of undeclared identifier 'X86Registers' append(Move, Tmp(X86Registers::eax), tmp(m_value)); ^ /Volumes/Data/slave/ios-10-release/build/Source/JavaScriptCore/b3/B3LowerToAir.cpp:2112:34: error: use of undeclared identifier 'X86Registers' append(Move, Tmp(X86Registers::eax), tmp(m_value)); ^ 2 errors generated.
Keith Miller
Comment 8
2016-11-16 08:18:50 PST
(In reply to
comment #7
)
> (In reply to
comment #5
) > > Comment on
attachment 294916
[details]
> > Patch for landing > > > > Clearing flags on attachment: 294916 > > > > Committed
r208781
: <
http://trac.webkit.org/changeset/208781
> > > It broke the iOS build: >
https://build.webkit.org/builders/Apple%20iOS%2010%20Release%20%28Build%29/
> builds/1378 > > > /Volumes/Data/slave/ios-10-release/build/Source/JavaScriptCore/b3/ > B3LowerToAir.cpp:2100:34: error: use of undeclared identifier 'X86Registers' > append(Move, Tmp(X86Registers::eax), tmp(m_value)); > ^ > /Volumes/Data/slave/ios-10-release/build/Source/JavaScriptCore/b3/ > B3LowerToAir.cpp:2112:34: error: use of undeclared identifier 'X86Registers' > append(Move, Tmp(X86Registers::eax), tmp(m_value)); > ^ > 2 errors generated.
Should hopefully be fixed by:
http://trac.webkit.org/changeset/208791
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