Changeset 115217 in webkit for trunk/Source/JavaScriptCore/parser
- Timestamp:
- Apr 25, 2012, 9:11:29 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Parser.h
r114702 r115217 163 163 ALWAYS_INLINE void setFlags(ScopeFlags scopeFlags) { m_scopeFlags |= scopeFlags; } 164 164 165 ALWAYS_INLINE bool needsFullActivation() const { return m_scopeFlags & (UsesEvalFlag | UsesWithFlag | UsesCatchFlag); }165 ALWAYS_INLINE bool usesEval() const { return m_scopeFlags & UsesEvalFlag; } 166 166 ALWAYS_INLINE bool strictMode() const { return m_scopeFlags & StrictModeFlag; } 167 167 ALWAYS_INLINE bool shadowsArguments() const { return m_scopeFlags & ShadowsArgumentsFlag; } … … 270 270 void getCapturedVariables(IdentifierSet& capturedVariables) 271 271 { 272 if ( needsFullActivation()) {272 if (usesEval()) { 273 273 capturedVariables.swap(m_declaredVariables); 274 274 return;
Note:
See TracChangeset
for help on using the changeset viewer.