Bug 183488 - testmasm crashes in testBranchTruncateDoubleToInt32() on ARM64
Summary: testmasm crashes in testBranchTruncateDoubleToInt32() on ARM64
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Michael Saboff
Keywords: InRadar
Depends on:
Reported: 2018-03-08 17:21 PST by Michael Saboff
Modified: 2018-03-09 15:08 PST (History)
4 users (show)

See Also:

Patch for landing (2.09 KB, patch)
2018-03-08 17:30 PST, Michael Saboff
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2018-03-08 17:21:25 PST
The code was written by adjusting sp down by 8 bytes.  ARM64 hardware asserts that sp is 16 byte align when used as the destination of the load/store.  The fix is to keep the stack aligned.
Comment 1 Michael Saboff 2018-03-08 17:30:08 PST
Created attachment 335371 [details]
Patch for landing
Comment 2 Michael Saboff 2018-03-08 17:46:25 PST
Committed r229446: <https://trac.webkit.org/changeset/229446>
Comment 3 Radar WebKit Bug Importer 2018-03-08 17:47:18 PST
Comment 4 Ryan Haddad 2018-03-09 10:00:14 PST
Reverted r229446 for reason:

This change relies on changes that have been rolled out.

Committed r229464: <https://trac.webkit.org/changeset/229464>
Comment 5 Matt Lewis 2018-03-09 13:15:34 PST
This looks to have broke The High Sierra LLINT CLoop build when it was re-landed in https://trac.webkit.org/changeset/229476/webkit



/Volumes/Data/slave/highsierra-cloop-debug/build/Source/JavaScriptCore/runtime/StackAlignment.h:45:80: error: use of undeclared identifier 'CallFrame'
/Volumes/Data/slave/highsierra-cloop-debug/build/Source/JavaScriptCore/runtime/StackAlignment.h:45:116: error: use of undeclared identifier 'CallFrame'
/Volumes/Data/slave/highsierra-cloop-debug/build/Source/JavaScriptCore/runtime/StackAlignment.h:52:85: error: use of undeclared identifier 'CallerFrameAndPC'
/Volumes/Data/slave/highsierra-cloop-debug/build/Source/JavaScriptCore/runtime/StackAlignment.h:52:122: error: use of undeclared identifier 'CallerFrameAndPC'
Comment 6 Mark Lam 2018-03-09 15:04:14 PST
Michael relanded the patch in r229476: <http://trac.webkit.org/r229476>.
Comment 7 Mark Lam 2018-03-09 15:08:10 PST
Build fix landed in r229486: <http://trac.webkit.org/r229486>.