Bug 163175 - Air should expose API for pinning registers
Summary: Air should expose API for pinning registers
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Filip Pizlo
URL:
Keywords:
Depends on:
Blocks: 163171
  Show dependency treegraph
 
Reported: 2016-10-08 20:08 PDT by Filip Pizlo
Modified: 2016-10-10 10:47 PDT (History)
1 user (show)

See Also:


Attachments
this might work (28.47 KB, patch)
2016-10-08 20:08 PDT, Filip Pizlo
no flags Details | Formatted Diff | Diff
more (33.13 KB, patch)
2016-10-09 11:00 PDT, Filip Pizlo
no flags Details | Formatted Diff | Diff
the patch (40.75 KB, patch)
2016-10-09 12:03 PDT, Filip Pizlo
no flags Details | Formatted Diff | Diff
fix win build (41.09 KB, patch)
2016-10-10 08:44 PDT, Filip Pizlo
keith_miller: review+
Details | Formatted Diff | Diff
Keith's version (24.57 KB, patch)
2016-10-10 10:47 PDT, Keith Miller
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Pizlo 2016-10-08 20:08:04 PDT
Patch forthcoming.
Comment 1 Filip Pizlo 2016-10-08 20:08:44 PDT
Created attachment 291036 [details]
this might work
Comment 2 Filip Pizlo 2016-10-09 11:00:27 PDT
Created attachment 291048 [details]
more

Not done yet.  I think that I still need to fix handleCalleeSaves().
Comment 3 Filip Pizlo 2016-10-09 12:03:13 PDT
Created attachment 291049 [details]
the patch
Comment 4 WebKit Commit Bot 2016-10-09 12:07:04 PDT
Attachment 291049 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/b3/air/AirEmitShuffle.cpp:43:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/JavaScriptCore/b3/air/AirEmitShuffle.cpp:52:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/JavaScriptCore/b3/air/AirEmitShuffle.h:105:  The parameter name "code" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Source/JavaScriptCore/b3/air/AirEmitShuffle.h:110:  The parameter name "code" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 4 in 14 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Filip Pizlo 2016-10-10 08:44:26 PDT
Created attachment 291107 [details]
fix win build
Comment 6 WebKit Commit Bot 2016-10-10 08:50:50 PDT
Attachment 291107 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/b3/air/AirEmitShuffle.cpp:43:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/JavaScriptCore/b3/air/AirEmitShuffle.cpp:52:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/JavaScriptCore/b3/air/AirEmitShuffle.h:105:  The parameter name "code" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Source/JavaScriptCore/b3/air/AirEmitShuffle.h:110:  The parameter name "code" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 4 in 14 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Keith Miller 2016-10-10 09:39:17 PDT
Comment on attachment 291107 [details]
fix win build

:( I wrote this patch too! This is basically, the same patch that I have, although I have the pinRegister function take the register set rather than calling a pinning method for each one.
Comment 8 Filip Pizlo 2016-10-10 09:44:01 PDT
It looks like the Windows build failure is unrelated - it's dying in generate-bindings, which is far away from what this touches.
Comment 9 Filip Pizlo 2016-10-10 10:15:49 PDT
Landed in http://trac.webkit.org/changeset/207004
Comment 10 Keith Miller 2016-10-10 10:47:25 PDT
Created attachment 291118 [details]
Keith's version

My version of the patch.