Changeset 205917 in webkit


Ignore:
Timestamp:
Sep 14, 2016, 10:55:15 AM (9 years ago)
Author:
mark.lam@apple.com
Message:

Use Options::validateExceptionChecks() instead of VM::m_verifyExceptionEvents.
https://bugs.webkit.org/show_bug.cgi?id=161975

Reviewed by Keith Miller.

This makes it less burdensome (no longer needs a rebuild to enable checks) to do
incremental work towards enabling checks all the time.

  • runtime/Options.h:
  • runtime/VM.cpp:

(JSC::VM::verifyExceptionCheckNeedIsSatisfied):

  • runtime/VM.h:
Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r205916 r205917  
     12016-09-14  Mark Lam  <mark.lam@apple.com>
     2
     3        Use Options::validateExceptionChecks() instead of VM::m_verifyExceptionEvents.
     4        https://bugs.webkit.org/show_bug.cgi?id=161975
     5
     6        Reviewed by Keith Miller.
     7
     8        This makes it less burdensome (no longer needs a rebuild to enable checks) to do
     9        incremental work towards enabling checks all the time.
     10
     11        * runtime/Options.h:
     12        * runtime/VM.cpp:
     13        (JSC::VM::verifyExceptionCheckNeedIsSatisfied):
     14        * runtime/VM.h:
     15
    1162016-09-14  Joseph Pecoraro  <pecoraro@apple.com>
    217
  • trunk/Source/JavaScriptCore/runtime/Options.h

    r205569 r205917  
    348348    v(bool, validateDFGExceptionHandling, false, Normal, "Causes the DFG to emit code validating exception handling for each node that can exit") /* This is true by default on Debug builds */\
    349349    v(bool, dumpSimulatedThrows, false, Normal, "Dumps the call stack at each simulated throw for exception scope verification") \
     350    v(bool, validateExceptionChecks, false, Normal, "Verifies that needed exception checks are performed.") \
    350351    \
    351352    v(bool, useExecutableAllocationFuzz, false, Normal, nullptr) \
  • trunk/Source/JavaScriptCore/runtime/VM.cpp

    r205654 r205917  
    897897void VM::verifyExceptionCheckNeedIsSatisfied(unsigned recursionDepth, ExceptionEventLocation& location)
    898898{
    899     if (!m_verifyExceptionEvents)
     899    if (!Options::validateExceptionChecks())
    900900        return;
    901901
  • trunk/Source/JavaScriptCore/runtime/VM.h

    r205569 r205917  
    704704    unsigned m_simulatedThrowPointRecursionDepth { 0 };
    705705    mutable bool m_needExceptionCheck { false };
    706 
    707     // Disabled temporarily until all known verification failures are fixed.
    708     bool m_verifyExceptionEvents { false };
    709706#endif
    710707
Note: See TracChangeset for help on using the changeset viewer.