Changeset 179815 in webkit
- Timestamp:
- Feb 8, 2015, 6:38:47 PM (12 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
dfg/DFGPlan.cpp (modified) (3 diffs)
-
dfg/DFGPlan.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r179814 r179815 1 2015-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 1 17 2015-02-08 Benjamin Poulain <bpoulain@apple.com> 2 18 -
trunk/Source/JavaScriptCore/dfg/DFGPlan.cpp
r179504 r179815 152 152 CString codeBlockName; 153 153 if (reportCompileTimes()) { 154 before = currentTimeMS();154 before = monotonicallyIncreasingTime(); 155 155 codeBlockName = toCString(*codeBlock); 156 156 } … … 189 189 break; 190 190 } 191 double now = currentTimeMS();191 double now = monotonicallyIncreasingTime(); 192 192 dataLog("Optimized ", codeBlockName, " using ", mode, " with ", pathName, " into ", finalizer ? finalizer->codeSize() : 0, " bytes in ", now - before, " ms"); 193 193 if (path == FTLPath) 194 dataLog(" (DFG: ", beforeFTL - before, ", LLVM: ", now - beforeFTL, ")");194 dataLog(" (DFG: ", m_timeBeforeFTL - before, ", LLVM: ", now - m_timeBeforeFTL, ")"); 195 195 dataLog(".\n"); 196 196 } … … 385 385 386 386 if (reportCompileTimes()) 387 beforeFTL = currentTimeMS();387 m_timeBeforeFTL = monotonicallyIncreasingTime(); 388 388 389 389 if (Options::llvmAlwaysFailsBeforeCompile()) { -
trunk/Source/JavaScriptCore/dfg/DFGPlan.h
r176779 r179815 98 98 bool willTryToTierUp; 99 99 100 double beforeFTL;101 102 100 enum Stage { Preparing, Compiling, Compiled, Ready, Cancelled }; 103 101 Stage stage; … … 113 111 bool isStillValid(); 114 112 void reallyAdd(CommonData*); 113 114 double m_timeBeforeFTL; 115 115 }; 116 116
Note:
See TracChangeset
for help on using the changeset viewer.