Bug 182890

Summary: Offlineasm/MIPS: immediates need to be within 16-bit signed values
Product: WebKit Reporter: Guillaume Emont <guijemont>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dominik.infuehr, ews-watchlist, guijemont, keith_miller, mark.lam, mcatanzaro, msaboff, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Other   
OS: Linux   
Attachments:
Description Flags
Patch none

Description Guillaume Emont 2018-02-16 15:12:34 PST
in Sequence.getModifiedListMIPS(), we allow immediate values within the range -0xffff..0xffff for immediates (addresses and other immediates), but then in Immediate.mipsOperand() and Address.mipsOperand() we raise if immediate values are not within -0x7fff..0x7fff. This is inconsistent, and broke compilation on mips since r228552 made the VM structure bigger meaning we address values with bigger offsets in llint.
Comment 1 Guillaume Emont 2018-02-16 15:23:53 PST
Created attachment 334078 [details]
Patch

Patch by Dominik Inführ for the immediate part, with addition of the immediate part by me.
Comment 2 Guillaume Emont 2018-02-16 17:04:23 PST
(In reply to Guillaume Emont from comment #1)
> Created attachment 334078 [details]
> Patch
> 
> Patch by Dominik Inführ for the immediate part, with addition of the
> immediate part by me.

I meant that Dominik did the patch for the immediate *address* part, I modified the parameters passed to riscLowerMalformedImmediates().
Comment 3 WebKit Commit Bot 2018-02-16 18:24:59 PST
Comment on attachment 334078 [details]
Patch

Rejecting attachment 334078 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 334078, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
rdparty/autoinstalled/mechanize/_urllib2_fork.py", line 332, in _call_chain
    result = func(*args)
  File "/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_urllib2_fork.py", line 1170, in https_open
    return self.do_open(conn_factory, req)
  File "/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_urllib2_fork.py", line 1118, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 60] Operation timed out>

Full output: http://webkit-queues.webkit.org/results/6546131
Comment 4 WebKit Commit Bot 2018-02-17 11:09:15 PST
Comment on attachment 334078 [details]
Patch

Rejecting attachment 334078 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 334078, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
rdparty/autoinstalled/mechanize/_urllib2_fork.py", line 332, in _call_chain
    result = func(*args)
  File "/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_urllib2_fork.py", line 1170, in https_open
    return self.do_open(conn_factory, req)
  File "/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/mechanize/_urllib2_fork.py", line 1118, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 60] Operation timed out>

Full output: http://webkit-queues.webkit.org/results/6553415
Comment 5 WebKit Commit Bot 2018-02-18 09:13:00 PST
Comment on attachment 334078 [details]
Patch

Clearing flags on attachment: 334078

Committed r228604: <https://trac.webkit.org/changeset/228604>
Comment 6 WebKit Commit Bot 2018-02-18 09:13:02 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2018-02-18 09:13:42 PST
<rdar://problem/37652360>