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

Changeset 179815 in webkit


Ignore:
Timestamp:
Feb 8, 2015, 6:38:47 PM (12 years ago)
Author:
benjamin@webkit.org
Message:

Encapsulate DFG::Plan's beforeFTL timestamp
https://bugs.webkit.org/show_bug.cgi?id=141360

Reviewed by Darin Adler.

Make the attribute private, it is an internal state.

Rename beforeFTL->timeBeforeFTL for readability.

  • dfg/DFGPlan.cpp:

(JSC::DFG::Plan::compileInThread):
(JSC::DFG::Plan::compileInThreadImpl):

  • dfg/DFGPlan.h:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r179814 r179815  
     12015-02-08  Benjamin Poulain  <benjamin@webkit.org>
     2
     3        Encapsulate DFG::Plan's beforeFTL timestamp
     4        https://bugs.webkit.org/show_bug.cgi?id=141360
     5
     6        Reviewed by Darin Adler.
     7
     8        Make the attribute private, it is an internal state.
     9
     10        Rename beforeFTL->timeBeforeFTL for readability.
     11
     12        * dfg/DFGPlan.cpp:
     13        (JSC::DFG::Plan::compileInThread):
     14        (JSC::DFG::Plan::compileInThreadImpl):
     15        * dfg/DFGPlan.h:
     16
    1172015-02-08  Benjamin Poulain  <bpoulain@apple.com>
    218
  • trunk/Source/JavaScriptCore/dfg/DFGPlan.cpp

    r179504 r179815  
    152152    CString codeBlockName;
    153153    if (reportCompileTimes()) {
    154         before = currentTimeMS();
     154        before = monotonicallyIncreasingTime();
    155155        codeBlockName = toCString(*codeBlock);
    156156    }
     
    189189            break;
    190190        }
    191         double now = currentTimeMS();
     191        double now = monotonicallyIncreasingTime();
    192192        dataLog("Optimized ", codeBlockName, " using ", mode, " with ", pathName, " into ", finalizer ? finalizer->codeSize() : 0, " bytes in ", now - before, " ms");
    193193        if (path == FTLPath)
    194             dataLog(" (DFG: ", beforeFTL - before, ", LLVM: ", now - beforeFTL, ")");
     194            dataLog(" (DFG: ", m_timeBeforeFTL - before, ", LLVM: ", now - m_timeBeforeFTL, ")");
    195195        dataLog(".\n");
    196196    }
     
    385385       
    386386        if (reportCompileTimes())
    387             beforeFTL = currentTimeMS();
     387            m_timeBeforeFTL = monotonicallyIncreasingTime();
    388388       
    389389        if (Options::llvmAlwaysFailsBeforeCompile()) {
  • trunk/Source/JavaScriptCore/dfg/DFGPlan.h

    r176779 r179815  
    9898    bool willTryToTierUp;
    9999
    100     double beforeFTL;
    101 
    102100    enum Stage { Preparing, Compiling, Compiled, Ready, Cancelled };
    103101    Stage stage;
     
    113111    bool isStillValid();
    114112    void reallyAdd(CommonData*);
     113
     114    double m_timeBeforeFTL;
    115115};
    116116
Note: See TracChangeset for help on using the changeset viewer.