Changeset 226725 in webkit for trunk/Source/JavaScriptCore/runtime/FunctionExecutable.cpp
- Timestamp:
- Jan 10, 2018, 11:41:12 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/FunctionExecutable.cpp
r226667 r226725 1 1 /* 2 * Copyright (C) 2009 -2018Apple Inc. All rights reserved.2 * Copyright (C) 2009, 2010, 2013, 2015-2016 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 69 69 FunctionCodeBlock* FunctionExecutable::baselineCodeBlockFor(CodeSpecializationKind kind) 70 70 { 71 ExecutableToCodeBlockEdge* edge;71 FunctionCodeBlock* result; 72 72 if (kind == CodeForCall) 73 edge= m_codeBlockForCall.get();73 result = m_codeBlockForCall.get(); 74 74 else { 75 75 RELEASE_ASSERT(kind == CodeForConstruct); 76 edge= m_codeBlockForConstruct.get();76 result = m_codeBlockForConstruct.get(); 77 77 } 78 if (! edge)78 if (!result) 79 79 return 0; 80 return static_cast<FunctionCodeBlock*>( edge->codeBlock()->baselineAlternative());80 return static_cast<FunctionCodeBlock*>(result->baselineAlternative()); 81 81 } 82 82 … … 86 86 ASSERT_GC_OBJECT_INHERITS(thisObject, info()); 87 87 ScriptExecutable::visitChildren(thisObject, visitor); 88 visitor.append(thisObject->m_codeBlockForCall); 89 visitor.append(thisObject->m_codeBlockForConstruct); 88 if (FunctionCodeBlock* codeBlockForCall = thisObject->m_codeBlockForCall.get()) 89 codeBlockForCall->visitWeakly(visitor); 90 if (FunctionCodeBlock* codeBlockForConstruct = thisObject->m_codeBlockForConstruct.get()) 91 codeBlockForConstruct->visitWeakly(visitor); 90 92 visitor.append(thisObject->m_unlinkedExecutable); 91 93 visitor.append(thisObject->m_singletonFunction);
Note:
See TracChangeset
for help on using the changeset viewer.