Changeset 47775 in webkit for trunk/JavaScriptCore/runtime/Executable.h
- Timestamp:
- Aug 26, 2009, 12:46:47 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Executable.h
r47738 r47775 222 222 friend class JIT; 223 223 public: 224 FunctionExecutable(const Identifier& name, const SourceCode& source, bool forceUsesArguments, Identifier* parameters, int parameterCount, int firstLine, int lastLine) 225 : ScriptExecutable(source) 226 , m_forceUsesArguments(forceUsesArguments) 227 , m_parameters(parameters) 228 , m_parameterCount(parameterCount) 229 , m_codeBlock(0) 230 , m_name(name) 231 , m_numVariables(0) 232 { 233 m_firstLine = firstLine; 234 m_lastLine = lastLine; 224 static PassRefPtr<FunctionExecutable> create(const Identifier& name, const SourceCode& source, bool forceUsesArguments, FunctionParameters* parameters, int firstLine, int lastLine) 225 { 226 return adoptRef(new FunctionExecutable(name, source, forceUsesArguments, parameters, firstLine, lastLine)); 235 227 } 236 228 … … 262 254 263 255 const Identifier& name() { return m_name; } 264 size_t parameterCount() const { return m_parameter Count; }256 size_t parameterCount() const { return m_parameters->size(); } 265 257 size_t variableCount() const { return m_numVariables; } 266 258 UString paramString() const; … … 272 264 273 265 private: 266 FunctionExecutable(const Identifier& name, const SourceCode& source, bool forceUsesArguments, FunctionParameters* parameters, int firstLine, int lastLine) 267 : ScriptExecutable(source) 268 , m_forceUsesArguments(forceUsesArguments) 269 , m_parameters(parameters) 270 , m_codeBlock(0) 271 , m_name(name) 272 , m_numVariables(0) 273 { 274 m_firstLine = firstLine; 275 m_lastLine = lastLine; 276 } 277 274 278 void compile(ExecState*, ScopeChainNode*); 275 Identifier* copyParameters();276 279 277 280 bool m_forceUsesArguments; 278 Identifier* m_parameters; 279 int m_parameterCount; 281 RefPtr<FunctionParameters> m_parameters; 280 282 CodeBlock* m_codeBlock; 281 283 Identifier m_name;
Note:
See TracChangeset
for help on using the changeset viewer.