Changeset 201848 in webkit


Ignore:
Timestamp:
Jun 8, 2016, 7:05:26 PM (9 years ago)
Author:
benjamin@webkit.org
Message:

Change thresholdForOptimizeSoon to match thresholdForOptimizeAfterWarmUp

Unreviewed.

This adds back the assertion removed in r201845.
Making those threshold equal is completely perf neutral
(on Haswell rMBP with 20 runs).

Patch by Benjamin Poulain <bpoulain@apple.com> on 2016-06-08

  • runtime/Options.cpp:

(JSC::Options::initialize):

  • runtime/Options.h:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r201845 r201848  
     12016-06-08  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        Change thresholdForOptimizeSoon to match thresholdForOptimizeAfterWarmUp
     4
     5        Unreviewed.
     6
     7        This adds back the assertion removed in r201845.
     8        Making those threshold equal is completely perf neutral
     9        (on Haswell rMBP with 20 runs).
     10
     11        * runtime/Options.cpp:
     12        (JSC::Options::initialize):
     13        * runtime/Options.h:
     14
    1152016-06-08  Benjamin Poulain  <bpoulain@apple.com>
    216
  • trunk/Source/JavaScriptCore/runtime/Options.cpp

    r201845 r201848  
    450450            // Do range checks where needed and make corrections to the options:
    451451            ASSERT(Options::thresholdForOptimizeAfterLongWarmUp() >= Options::thresholdForOptimizeAfterWarmUp());
     452            ASSERT(Options::thresholdForOptimizeAfterWarmUp() >= Options::thresholdForOptimizeSoon());
    452453            ASSERT(Options::thresholdForOptimizeAfterWarmUp() >= 0);
    453454
  • trunk/Source/JavaScriptCore/runtime/Options.h

    r201836 r201848  
    259259    v(int32, thresholdForOptimizeAfterWarmUp, 511, Normal, nullptr) \
    260260    v(int32, thresholdForOptimizeAfterLongWarmUp, 885, Normal, nullptr) \
    261     v(int32, thresholdForOptimizeSoon, 853, Normal, nullptr) \
     261    v(int32, thresholdForOptimizeSoon, 511, Normal, nullptr) \
    262262    v(int32, executionCounterIncrementForLoop, 2, Normal, nullptr) \
    263263    v(int32, executionCounterIncrementForEntry, 28, Normal, nullptr) \
Note: See TracChangeset for help on using the changeset viewer.