⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243330 in webkit


Ignore:
Timestamp:
Mar 21, 2019, 2:36:26 PM (7 years ago)
Author:
rmorisset@apple.com
Message:

B3::Opcode can fit in a single byte, shrinking B3Value by 8 bytes
https://bugs.webkit.org/show_bug.cgi?id=196014

Reviewed by Keith Miller.

B3::Opcode has less than one hundred cases, so it can easily fit in one byte (from two currently)
This shrinks B3::Kind from 4 bytes to 2 (by removing the byte of padding at the end).
This in turns eliminate padding from B3::Value, shrinking it by 8 bytes (out of 80).

  • b3/B3Opcode.h:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r243323 r243330  
     12019-03-21  Robin Morisset  <rmorisset@apple.com>
     2
     3        B3::Opcode can fit in a single byte, shrinking B3Value by 8 bytes
     4        https://bugs.webkit.org/show_bug.cgi?id=196014
     5
     6        Reviewed by Keith Miller.
     7
     8        B3::Opcode has less than one hundred cases, so it can easily fit in one byte (from two currently)
     9        This shrinks B3::Kind from 4 bytes to 2 (by removing the byte of padding at the end).
     10        This in turns eliminate padding from B3::Value, shrinking it by 8 bytes (out of 80).
     11
     12        * b3/B3Opcode.h:
     13
    1142019-03-21  Michael Catanzaro  <mcatanzaro@igalia.com>
    215
  • trunk/Source/JavaScriptCore/b3/B3Opcode.h

    r239427 r243330  
    3838// would be used in simple IRs. See B3Kind.h.
    3939
    40 enum Opcode : int16_t {
     40enum Opcode : uint8_t {
    4141    // A no-op that returns Void, useful for when you want to remove a value.
    4242    Nop,
Note: See TracChangeset for help on using the changeset viewer.