Bug 148742 - Get rid of RepatchBuffer and replace it with static functions
Summary: Get rid of RepatchBuffer and replace it with static functions
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Other
Hardware: All All
: P2 Normal
Assignee: Filip Pizlo
URL:
Keywords:
Depends on: 148741 148792
Blocks: 148743
  Show dependency treegraph
 
Reported: 2015-09-03 11:15 PDT by Filip Pizlo
Modified: 2015-09-04 02:22 PDT (History)
12 users (show)

See Also:


Attachments
it's a start (49.35 KB, patch)
2015-09-03 13:26 PDT, Filip Pizlo
no flags Details | Formatted Diff | Diff
getting close (81.94 KB, patch)
2015-09-03 13:47 PDT, Filip Pizlo
no flags Details | Formatted Diff | Diff
the patch (87.66 KB, patch)
2015-09-03 13:57 PDT, Filip Pizlo
ggaren: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Pizlo 2015-09-03 11:15:56 PDT
Once RepatchBuffer is stateless, it won't make any sense to instantiate it or pass it around.
Comment 1 Filip Pizlo 2015-09-03 13:26:48 PDT
Created attachment 260516 [details]
it's a start
Comment 2 Filip Pizlo 2015-09-03 13:47:36 PDT
Created attachment 260518 [details]
getting close
Comment 3 Filip Pizlo 2015-09-03 13:57:57 PDT
Created attachment 260519 [details]
the patch
Comment 4 Geoffrey Garen 2015-09-03 13:59:07 PDT
Comment on attachment 260519 [details]
the patch

r=me
Comment 5 WebKit Commit Bot 2015-09-03 14:01:10 PDT
Attachment 260519 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/jit/JIT.h:183:  The parameter name "returnAddress" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 33 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Mark Lam 2015-09-03 14:05:19 PDT
Comment on attachment 260519 [details]
the patch

View in context: https://bugs.webkit.org/attachment.cgi?id=260519&action=review

r=me

> Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:-2003
> -    <ClInclude Include="..\assembler\RepatchBuffer.h">
> -      <Filter>assembler</Filter>
> -    </ClInclude>

You also need to remove this from Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj
Comment 7 Filip Pizlo 2015-09-03 14:12:09 PDT
(In reply to comment #6)
> Comment on attachment 260519 [details]
> the patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=260519&action=review
> 
> r=me
> 
> > Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:-2003
> > -    <ClInclude Include="..\assembler\RepatchBuffer.h">
> > -      <Filter>assembler</Filter>
> > -    </ClInclude>
> 
> You also need to remove this from
> Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj

Fixed, along with 32-bit builds.
Comment 8 Filip Pizlo 2015-09-03 14:12:30 PDT
Landed in http://trac.webkit.org/changeset/189288