Changeset 172949 in webkit for trunk/Source/JavaScriptCore/bytecode
- Timestamp:
- Aug 25, 2014, 7:17:58 PM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore/bytecode
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r172822 r172949 1707 1707 , m_optimizationDelayCounter(0) 1708 1708 , m_reoptimizationRetryCounter(0) 1709 , m_returnStatementTypeSet(nullptr)1710 1709 #if ENABLE(JIT) 1711 1710 , m_capabilityLevelState(DFG::CapabilityLevelNotSet) … … 2044 2043 } 2045 2044 case ProfileTypeBytecodeFunctionReturnStatement: { 2046 globalTypeSet = returnStatementTypeSet(); 2045 RELEASE_ASSERT(ownerExecutable->isFunctionExecutable()); 2046 globalTypeSet = jsCast<FunctionExecutable*>(ownerExecutable)->returnStatementTypeSet(); 2047 2047 globalVariableID = TypeProfilerReturnStatement; 2048 2048 if (!shouldAnalyze) { -
trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
r172614 r172949 65 65 #include "RegExpObject.h" 66 66 #include "StructureStubInfo.h" 67 #include "TypeSet.h"68 67 #include "UnconditionalFinalizer.h" 69 68 #include "ValueProfile.h" … … 943 942 944 943 bool isKnownToBeLiveDuringGC(); // Will only return valid results when called during GC. Assumes that you've already established that the owner executable is live. 945 RefPtr<TypeSet> returnStatementTypeSet()946 {947 if (!m_returnStatementTypeSet)948 m_returnStatementTypeSet = TypeSet::create();949 950 return m_returnStatementTypeSet;951 }952 944 953 945 … … 1100 1092 std::unique_ptr<BytecodeLivenessAnalysis> m_livenessAnalysis; 1101 1093 1102 RefPtr<TypeSet> m_returnStatementTypeSet;1103 1104 1094 struct RareData { 1105 1095 WTF_MAKE_FAST_ALLOCATED;
Note:
See TracChangeset
for help on using the changeset viewer.