Changeset 172950 in webkit for trunk/Source/JavaScriptCore/bytecode
- Timestamp:
- Aug 25, 2014, 9:36:42 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r172949 r172950 2047 2047 globalVariableID = TypeProfilerReturnStatement; 2048 2048 if (!shouldAnalyze) { 2049 // Because some return statements are added implicitly (to return undefined at the end of a function), and these nodes don't emit expression ranges, give them some range. 2050 // Currently, this divot is on the open brace of the function. 2049 // Because a return statement can be added implicitly to return undefined at the end of a function, 2050 // and these nodes don't emit expression ranges because they aren't in the actual source text of 2051 // the user's program, give the type profiler some range to identify these return statements. 2052 // Currently, the text offset that is used as identification is on the open brace of the function 2053 // and is stored on TypeLocation's m_divotForFunctionOffsetIfReturnStatement member variable. 2051 2054 divotStart = divotEnd = m_sourceOffset; 2052 2055 shouldAnalyze = true; … … 2061 2064 bool isNewLocation = locationPair.second; 2062 2065 2063 if ( ProfileTypeBytecodeFunctionReturnStatement)2066 if (flag == ProfileTypeBytecodeFunctionReturnStatement) 2064 2067 location->m_divotForFunctionOffsetIfReturnStatement = m_sourceOffset; 2065 2068
Note:
See TracChangeset
for help on using the changeset viewer.