Changeset 226940 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
- Timestamp:
- Jan 13, 2018, 10:11:55 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
r226928 r226940 320 320 321 321 typedef JSC::Instruction Instruction; 322 typedef PoisonedRefCountedArray< CodeBlockPoison, Instruction>& UnpackedInstructions;322 typedef PoisonedRefCountedArray<POISON(CodeBlock), Instruction>& UnpackedInstructions; 323 323 324 324 unsigned numberOfInstructions() const { return m_instructions.size(); } 325 PoisonedRefCountedArray< CodeBlockPoison, Instruction>& instructions() { return m_instructions; }326 const PoisonedRefCountedArray< CodeBlockPoison, Instruction>& instructions() const { return m_instructions; }325 PoisonedRefCountedArray<POISON(CodeBlock), Instruction>& instructions() { return m_instructions; } 326 const PoisonedRefCountedArray<POISON(CodeBlock), Instruction>& instructions() const { return m_instructions; } 327 327 328 328 size_t predictedMachineCodeSize(); … … 888 888 bool hasTailCalls() const { return m_unlinkedCode->hasTailCalls(); } 889 889 890 static constexpr uintptr_t s_poison = makeConstExprPoison(CodeBlockPoison);891 892 890 protected: 893 891 void finalizeLLIntInlineCaches(); … … 950 948 951 949 template<typename T, typename... Arguments, typename Enable = void> 952 static PoisonedUniquePtr< CodeBlockPoison, T> makePoisonedUnique(Arguments&&... arguments)953 { 954 return WTF::makePoisonedUnique< CodeBlockPoison, T>(std::forward<Arguments>(arguments)...);950 static PoisonedUniquePtr<POISON(CodeBlock), T> makePoisonedUnique(Arguments&&... arguments) 951 { 952 return WTF::makePoisonedUnique<POISON(CodeBlock), T>(std::forward<Arguments>(arguments)...); 955 953 } 956 954 … … 968 966 WriteBarrier<ExecutableBase> m_ownerExecutable; 969 967 WriteBarrier<ExecutableToCodeBlockEdge> m_ownerEdge; 970 ConstExprPoisoned<CodeBlockPoison, VM*> m_poisonedVM;971 972 PoisonedRefCountedArray< CodeBlockPoison, Instruction> m_instructions;968 Poisoned<POISON(CodeBlock), VM*> m_poisonedVM; 969 970 PoisonedRefCountedArray<POISON(CodeBlock), Instruction> m_instructions; 973 971 VirtualRegister m_thisRegister; 974 972 VirtualRegister m_scopeRegister; 975 973 mutable CodeBlockHash m_hash; 976 974 977 PoisonedRefPtr< CodeBlockPoison, SourceProvider> m_source;975 PoisonedRefPtr<POISON(CodeBlock), SourceProvider> m_source; 978 976 unsigned m_sourceOffset; 979 977 unsigned m_firstLineColumnOffset; … … 982 980 SentinelLinkedList<LLIntCallLinkInfo, BasicRawSentinelNode<LLIntCallLinkInfo>> m_incomingLLIntCalls; 983 981 StructureWatchpointMap m_llintGetByIdWatchpointMap; 984 PoisonedRefPtr< CodeBlockPoison, JITCode> m_jitCode;982 PoisonedRefPtr<POISON(CodeBlock), JITCode> m_jitCode; 985 983 #if ENABLE(JIT) 986 984 std::unique_ptr<RegisterAtOffsetList> m_calleeSaveRegisters; 987 PoisonedBag< CodeBlockPoison, StructureStubInfo> m_stubInfos;988 PoisonedBag< CodeBlockPoison, JITAddIC> m_addICs;989 PoisonedBag< CodeBlockPoison, JITMulIC> m_mulICs;990 PoisonedBag< CodeBlockPoison, JITNegIC> m_negICs;991 PoisonedBag< CodeBlockPoison, JITSubIC> m_subICs;992 PoisonedBag< CodeBlockPoison, ByValInfo> m_byValInfos;993 PoisonedBag< CodeBlockPoison, CallLinkInfo> m_callLinkInfos;985 PoisonedBag<POISON(CodeBlock), StructureStubInfo> m_stubInfos; 986 PoisonedBag<POISON(CodeBlock), JITAddIC> m_addICs; 987 PoisonedBag<POISON(CodeBlock), JITMulIC> m_mulICs; 988 PoisonedBag<POISON(CodeBlock), JITNegIC> m_negICs; 989 PoisonedBag<POISON(CodeBlock), JITSubIC> m_subICs; 990 PoisonedBag<POISON(CodeBlock), ByValInfo> m_byValInfos; 991 PoisonedBag<POISON(CodeBlock), CallLinkInfo> m_callLinkInfos; 994 992 SentinelLinkedList<CallLinkInfo, BasicRawSentinelNode<CallLinkInfo>> m_incomingCalls; 995 993 SentinelLinkedList<PolymorphicCallNode, BasicRawSentinelNode<PolymorphicCallNode>> m_incomingPolymorphicCalls;
Note:
See TracChangeset
for help on using the changeset viewer.