Changeset 62551 in webkit for trunk/JavaScriptCore/runtime/Executable.cpp
- Timestamp:
- Jul 6, 2010, 9:14:44 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Executable.cpp
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 … … 230 230 } 231 231 232 ExceptionInfo*FunctionExecutable::reparseExceptionInfo(JSGlobalData* globalData, ScopeChainNode* scopeChainNode, CodeBlock* codeBlock)232 PassOwnPtr<ExceptionInfo> FunctionExecutable::reparseExceptionInfo(JSGlobalData* globalData, ScopeChainNode* scopeChainNode, CodeBlock* codeBlock) 233 233 { 234 234 RefPtr<FunctionBodyNode> newFunctionBody = globalData->parser->parse<FunctionBodyNode>(globalData, 0, 0, m_source); 235 235 if (!newFunctionBody) 236 return 0;236 return PassOwnPtr<ExceptionInfo>(); 237 237 if (m_forceUsesArguments) 238 238 newFunctionBody->setUsesArguments(); … … 261 261 } 262 262 263 ExceptionInfo*EvalExecutable::reparseExceptionInfo(JSGlobalData* globalData, ScopeChainNode* scopeChainNode, CodeBlock* codeBlock)263 PassOwnPtr<ExceptionInfo> EvalExecutable::reparseExceptionInfo(JSGlobalData* globalData, ScopeChainNode* scopeChainNode, CodeBlock* codeBlock) 264 264 { 265 265 RefPtr<EvalNode> newEvalBody = globalData->parser->parse<EvalNode>(globalData, 0, 0, m_source); 266 266 if (!newEvalBody) 267 return 0;267 return PassOwnPtr<ExceptionInfo>(); 268 268 269 269 ScopeChain scopeChain(scopeChainNode); … … 335 335 } 336 336 337 }; 338 339 337 PassOwnPtr<ExceptionInfo> ProgramExecutable::reparseExceptionInfo(JSGlobalData*, ScopeChainNode*, CodeBlock*) 338 { 339 // CodeBlocks for program code are transient and therefore do not gain from from throwing out their exception information. 340 return PassOwnPtr<ExceptionInfo>(); 341 } 342 343 }
Note:
See TracChangeset
for help on using the changeset viewer.