Changeset 62551 in webkit for trunk/JavaScriptCore/runtime/Executable.h
- Timestamp:
- Jul 6, 2010, 9:14:44 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Executable.h
r61588 r62551 1 1 /* 2 * Copyright (C) 2009 Apple Inc. All rights reserved.2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 32 32 #include "Nodes.h" 33 33 #include "SamplingTool.h" 34 #include <wtf/PassOwnPtr.h> 34 35 35 36 namespace JSC { … … 172 173 bool needsActivation() const { return m_features & (EvalFeature | ClosureFeature | WithFeature | CatchFeature); } 173 174 174 virtual ExceptionInfo*reparseExceptionInfo(JSGlobalData*, ScopeChainNode*, CodeBlock*) = 0;175 virtual PassOwnPtr<ExceptionInfo> reparseExceptionInfo(JSGlobalData*, ScopeChainNode*, CodeBlock*) = 0; 175 176 176 177 protected: … … 204 205 JSObject* compile(ExecState*, ScopeChainNode*); 205 206 206 ExceptionInfo* reparseExceptionInfo(JSGlobalData*, ScopeChainNode*, CodeBlock*);207 207 static PassRefPtr<EvalExecutable> create(ExecState* exec, const SourceCode& source) { return adoptRef(new EvalExecutable(exec, source)); } 208 208 … … 213 213 { 214 214 } 215 216 virtual PassOwnPtr<ExceptionInfo> reparseExceptionInfo(JSGlobalData*, ScopeChainNode*, CodeBlock*); 217 215 218 EvalCodeBlock* m_evalCodeBlock; 216 219 … … 250 253 JSObject* compile(ExecState*, ScopeChainNode*); 251 254 252 // CodeBlocks for program code are transient and therefore do not gain from from throwing out there exception information.253 ExceptionInfo* reparseExceptionInfo(JSGlobalData*, ScopeChainNode*, CodeBlock*) { ASSERT_NOT_REACHED(); return 0; }254 255 255 private: 256 256 ProgramExecutable(ExecState* exec, const SourceCode& source) … … 259 259 { 260 260 } 261 262 virtual PassOwnPtr<ExceptionInfo> reparseExceptionInfo(JSGlobalData*, ScopeChainNode*, CodeBlock*); 263 261 264 ProgramCodeBlock* m_programCodeBlock; 262 265 … … 351 354 352 355 void recompile(ExecState*); 353 ExceptionInfo* reparseExceptionInfo(JSGlobalData*, ScopeChainNode*, CodeBlock*);354 356 void markAggregate(MarkStack& markStack); 355 357 static PassRefPtr<FunctionExecutable> fromGlobalCode(const Identifier&, ExecState*, Debugger*, const SourceCode&, int* errLine = 0, UString* errMsg = 0); … … 387 389 bool compileForConstruct(ExecState*, ScopeChainNode*); 388 390 391 virtual PassOwnPtr<ExceptionInfo> reparseExceptionInfo(JSGlobalData*, ScopeChainNode*, CodeBlock*); 392 389 393 unsigned m_numVariables : 31; 390 394 bool m_forceUsesArguments : 1;
Note:
See TracChangeset
for help on using the changeset viewer.