Bug 153640

Summary: Shrink CodeBlock!
Product: WebKit Reporter: Andreas Kling <kling>
Component: JavaScriptCoreAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, keith_miller, kling, mark.lam, msaboff, saam
Priority: P2 Keywords: Performance
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch for EWS
none
Patch for landing none

Description Andreas Kling 2016-01-28 21:42:04 PST
Let's do some "MEMBER RESHUFFLING" to save memory here.
Comment 1 Andreas Kling 2016-01-28 21:46:43 PST
Created attachment 270181 [details]
Patch for EWS

This patch knocks 104 bytes off of CodeBlock (Ha!)
Comment 2 WebKit Commit Bot 2016-01-28 21:47:37 PST
Attachment 270181 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/bytecode/CodeBlock.cpp:1813:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/JavaScriptCore/bytecode/CodeBlock.cpp:1818:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/JavaScriptCore/bytecode/CodeBlock.cpp:1819:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/JavaScriptCore/bytecode/CodeBlock.cpp:1820:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/JavaScriptCore/bytecode/CodeBlock.cpp:1821:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
Total errors found: 5 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Saam Barati 2016-01-29 11:09:39 PST
nice.
r=me
Comment 4 Andreas Kling 2016-01-29 11:19:55 PST
(In reply to comment #3)
> nice.
> r=me

v.nice
let me shuffle the bitfields around a little more and save 8 additional bytes :)
Comment 5 Saam Barati 2016-01-29 11:27:30 PST
sweet. I'm going to start investigating getting rid of a few fields.
Comment 6 Andreas Kling 2016-01-29 11:34:18 PST
Created attachment 270229 [details]
Patch for landing
Comment 7 WebKit Commit Bot 2016-01-29 11:36:16 PST
Attachment 270229 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/bytecode/CodeBlock.cpp:1814:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/JavaScriptCore/bytecode/CodeBlock.cpp:1818:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/JavaScriptCore/bytecode/CodeBlock.cpp:1819:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/JavaScriptCore/bytecode/CodeBlock.cpp:1820:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/JavaScriptCore/bytecode/CodeBlock.cpp:1821:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
Total errors found: 5 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 WebKit Commit Bot 2016-01-29 12:38:00 PST
Comment on attachment 270229 [details]
Patch for landing

Clearing flags on attachment: 270229

Committed r195836: <http://trac.webkit.org/changeset/195836>
Comment 9 WebKit Commit Bot 2016-01-29 12:38:03 PST
All reviewed patches have been landed.  Closing bug.