Changeset 226725 in webkit for trunk/Source/JavaScriptCore/runtime/FunctionExecutable.h
- Timestamp:
- Jan 10, 2018, 11:41:12 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/FunctionExecutable.h
r226667 r226725 1 1 /* 2 * Copyright (C) 2009-201 8Apple Inc. All rights reserved.2 * Copyright (C) 2009-2017 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 26 26 #pragma once 27 27 28 #include "ExecutableToCodeBlockEdge.h"29 28 #include "ScriptExecutable.h" 30 29 #include "SourceCode.h" … … 70 69 FunctionCodeBlock* eitherCodeBlock() 71 70 { 72 ExecutableToCodeBlockEdge* edge;73 71 if (m_codeBlockForCall) 74 edge = m_codeBlockForCall.get(); 75 else 76 edge = m_codeBlockForConstruct.get(); 77 return bitwise_cast<FunctionCodeBlock*>(ExecutableToCodeBlockEdge::unwrap(edge)); 72 return m_codeBlockForCall.get(); 73 return m_codeBlockForConstruct.get(); 78 74 } 79 75 … … 85 81 FunctionCodeBlock* codeBlockForCall() 86 82 { 87 return bitwise_cast<FunctionCodeBlock*>(ExecutableToCodeBlockEdge::unwrap(m_codeBlockForCall.get()));83 return m_codeBlockForCall.get(); 88 84 } 89 85 90 86 bool isGeneratedForConstruct() const 91 87 { 92 return !!m_codeBlockForConstruct;88 return m_codeBlockForConstruct.get(); 93 89 } 94 90 95 91 FunctionCodeBlock* codeBlockForConstruct() 96 92 { 97 return bitwise_cast<FunctionCodeBlock*>(ExecutableToCodeBlockEdge::unwrap(m_codeBlockForConstruct.get()));93 return m_codeBlockForConstruct.get(); 98 94 } 99 95 … … 209 205 unsigned m_parametersStartOffset; 210 206 WriteBarrier<UnlinkedFunctionExecutable> m_unlinkedExecutable; 211 WriteBarrier< ExecutableToCodeBlockEdge> m_codeBlockForCall;212 WriteBarrier< ExecutableToCodeBlockEdge> m_codeBlockForConstruct;207 WriteBarrier<FunctionCodeBlock> m_codeBlockForCall; 208 WriteBarrier<FunctionCodeBlock> m_codeBlockForConstruct; 213 209 RefPtr<TypeSet> m_returnStatementTypeSet; 214 210 WriteBarrier<InferredValue> m_singletonFunction;
Note:
See TracChangeset
for help on using the changeset viewer.