Changeset 104787 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
- Timestamp:
- Jan 11, 2012, 8:33:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
r104770 r104787 781 781 // controls both when the optimizing compiler is invoked and when OSR 782 782 // entry happens. Two triggers exist: the loop trigger and the return 783 // trigger. In either case, when an addition to m_ executeCounter783 // trigger. In either case, when an addition to m_jitExecuteCounter 784 784 // causes it to become non-negative, the optimizing compiler is 785 785 // invoked. This includes a fast check to see if this CodeBlock has … … 822 822 } 823 823 824 int32_t* addressOf ExecuteCounter()825 { 826 return &m_ executeCounter;827 } 828 829 static ptrdiff_t offsetOf ExecuteCounter() { return OBJECT_OFFSETOF(CodeBlock, m_executeCounter); }830 831 int32_t executeCounter() const { return m_executeCounter; }824 int32_t* addressOfJITExecuteCounter() 825 { 826 return &m_jitExecuteCounter; 827 } 828 829 static ptrdiff_t offsetOfJITExecuteCounter() { return OBJECT_OFFSETOF(CodeBlock, m_jitExecuteCounter); } 830 831 int32_t jitExecuteCounter() const { return m_jitExecuteCounter; } 832 832 833 833 unsigned optimizationDelayCounter() const { return m_optimizationDelayCounter; } … … 838 838 void optimizeNextInvocation() 839 839 { 840 m_ executeCounter = Options::executionCounterValueForOptimizeNextInvocation;840 m_jitExecuteCounter = Options::executionCounterValueForOptimizeNextInvocation; 841 841 } 842 842 … … 848 848 void dontOptimizeAnytimeSoon() 849 849 { 850 m_ executeCounter = Options::executionCounterValueForDontOptimizeAnytimeSoon;850 m_jitExecuteCounter = Options::executionCounterValueForDontOptimizeAnytimeSoon; 851 851 } 852 852 … … 859 859 void optimizeAfterWarmUp() 860 860 { 861 m_ executeCounter = counterValueForOptimizeAfterWarmUp();861 m_jitExecuteCounter = counterValueForOptimizeAfterWarmUp(); 862 862 } 863 863 … … 866 866 void optimizeAfterLongWarmUp() 867 867 { 868 m_ executeCounter = counterValueForOptimizeAfterLongWarmUp();868 m_jitExecuteCounter = counterValueForOptimizeAfterLongWarmUp(); 869 869 } 870 870 … … 889 889 void optimizeSoon() 890 890 { 891 m_ executeCounter = Options::executionCounterValueForOptimizeSoon << reoptimizationRetryCounter();891 m_jitExecuteCounter = Options::executionCounterValueForOptimizeSoon << reoptimizationRetryCounter(); 892 892 } 893 893 … … 1131 1131 OwnPtr<CodeBlock> m_alternative; 1132 1132 1133 int32_t m_ executeCounter;1133 int32_t m_jitExecuteCounter; 1134 1134 uint32_t m_speculativeSuccessCounter; 1135 1135 uint32_t m_speculativeFailCounter;
Note:
See TracChangeset
for help on using the changeset viewer.