Changeset 93466 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
- Timestamp:
- Aug 19, 2011, 7:17:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
r93238 r93466 40 40 #include "RegExpObject.h" 41 41 #include "UString.h" 42 #include "ValueProfile.h" 42 43 #include <wtf/FastAllocBase.h> 43 44 #include <wtf/PassOwnPtr.h> 44 45 #include <wtf/RefPtr.h> 46 #include <wtf/SegmentedVector.h> 45 47 #include <wtf/Vector.h> 46 48 … … 382 384 MethodCallLinkInfo& methodCallLinkInfo(int index) { return m_methodCallLinkInfos[index]; } 383 385 #endif 386 387 #if ENABLE(VALUE_PROFILER) 388 ValueProfile* addValueProfile(int bytecodeOffset) 389 { 390 m_valueProfiles.append(ValueProfile(bytecodeOffset)); 391 return &m_valueProfiles.last(); 392 } 393 unsigned numberOfValueProfiles() { return m_valueProfiles.size(); } 394 ValueProfile* valueProfile(int index) { return &m_valueProfiles[index]; } 395 ValueProfile* valueProfileForBytecodeOffset(int bytecodeOffset) 396 { 397 return WTF::genericBinarySearch<ValueProfile, int, getValueProfileBytecodeOffset>(m_valueProfiles, m_valueProfiles.size(), bytecodeOffset); 398 } 399 #endif 400 384 401 unsigned globalResolveInfoCount() const 385 402 { … … 576 593 Vector<CallLinkInfo> m_callLinkInfos; 577 594 Vector<MethodCallLinkInfo> m_methodCallLinkInfos; 595 #endif 596 #if ENABLE(VALUE_PROFILER) 597 SegmentedVector<ValueProfile, 8> m_valueProfiles; 578 598 #endif 579 599
Note:
See TracChangeset
for help on using the changeset viewer.