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

Changeset 281665 in webkit


Ignore:
Timestamp:
Aug 26, 2021, 3:43:32 PM (5 years ago)
Author:
sbarati@apple.com
Message:

r281485 was not sufficient in where it called disablePeepholeOptimization
https://bugs.webkit.org/show_bug.cgi?id=229582
<rdar://82346980>

Reviewed by Yusuke Suzuki.

JSTests:

  • stress/for-in-disable-bytecode-generator-peephole-optimizations-after-rewrite-2.js: Added.

(foo):

Source/JavaScriptCore:

r281485 accidentally deleted a place where we called disablePeepholeOptimization
that was necessary. Basically, after we seek where the current instruction
in BytecodeGenerator is, we need to disablePeepholeOptimization.

  • bytecompiler/BytecodeGenerator.cpp:

(JSC::ForInContext::finalize):

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r281529 r281665  
     12021-08-26  Saam Barati  <sbarati@apple.com>
     2
     3        r281485 was not sufficient in where it called disablePeepholeOptimization
     4        https://bugs.webkit.org/show_bug.cgi?id=229582
     5        <rdar://82346980>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        * stress/for-in-disable-bytecode-generator-peephole-optimizations-after-rewrite-2.js: Added.
     10        (foo):
     11
    1122021-08-24  Yusuke Suzuki  <ysuzuki@apple.com>
    213
  • trunk/Source/JavaScriptCore/ChangeLog

    r281647 r281665  
     12021-08-26  Saam Barati  <sbarati@apple.com>
     2
     3        r281485 was not sufficient in where it called disablePeepholeOptimization
     4        https://bugs.webkit.org/show_bug.cgi?id=229582
     5        <rdar://82346980>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        r281485 accidentally deleted a place where we called disablePeepholeOptimization
     10        that was necessary. Basically, after we seek where the current instruction
     11        in BytecodeGenerator is, we need to disablePeepholeOptimization.
     12
     13        * bytecompiler/BytecodeGenerator.cpp:
     14        (JSC::ForInContext::finalize):
     15
    1162021-08-26  Per Arne Vollan  <pvollan@apple.com>
    217
  • trunk/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp

    r281485 r281665  
    53875387
    53885388        generator.m_writer.seek(branchInstIndex);
     5389        generator.disablePeepholeOptimization();
    53895390
    53905391        OpJmp::emit(&generator, BoundLabel(static_cast<int>(newBranchTarget) - static_cast<int>(branchInstIndex)));
     
    53945395    }
    53955396
     5397    generator.m_writer.seek(generator.m_writer.size());
    53965398    generator.disablePeepholeOptimization(); // We might've just changed the last bytecode that was emitted.
    5397 
    5398     generator.m_writer.seek(generator.m_writer.size());
    53995399}
    54005400
Note: See TracChangeset for help on using the changeset viewer.