Changeset 67583 in webkit for trunk/JavaScriptCore/runtime/Executable.h
- Timestamp:
- Sep 15, 2010, 5:05:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Executable.h
r63675 r67583 173 173 bool usesEval() const { return m_features & EvalFeature; } 174 174 bool usesArguments() const { return m_features & ArgumentsFeature; } 175 bool needsActivation() const { return m_ features & (EvalFeature | ClosureFeature | WithFeature | CatchFeature); }175 bool needsActivation() const { return m_hasCapturedVariables || m_features & (EvalFeature | WithFeature | CatchFeature); } 176 176 177 177 virtual PassOwnPtr<ExceptionInfo> reparseExceptionInfo(JSGlobalData*, ScopeChainNode*, CodeBlock*) = 0; 178 178 179 179 protected: 180 void recordParse(CodeFeatures features, int firstLine, int lastLine)180 void recordParse(CodeFeatures features, bool hasCapturedVariables, int firstLine, int lastLine) 181 181 { 182 182 m_features = features; 183 m_hasCapturedVariables = hasCapturedVariables; 183 184 m_firstLine = firstLine; 184 185 m_lastLine = lastLine; … … 187 188 SourceCode m_source; 188 189 CodeFeatures m_features; 190 bool m_hasCapturedVariables; 189 191 int m_firstLine; 190 192 int m_lastLine;
Note:
See TracChangeset
for help on using the changeset viewer.