diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/JavaScriptCore/dfg/DFGAtTailAbstractState.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGAtTailAbstractState.h')
-rw-r--r-- | Source/JavaScriptCore/dfg/DFGAtTailAbstractState.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGAtTailAbstractState.h b/Source/JavaScriptCore/dfg/DFGAtTailAbstractState.h index a994bf8d6..8f043b72b 100644 --- a/Source/JavaScriptCore/dfg/DFGAtTailAbstractState.h +++ b/Source/JavaScriptCore/dfg/DFGAtTailAbstractState.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Apple Inc. All rights reserved. + * Copyright (C) 2013, 2016 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -23,32 +23,33 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DFGAtTailAbstractState_h -#define DFGAtTailAbstractState_h - -#include <wtf/Platform.h> +#pragma once #if ENABLE(DFG_JIT) #include "DFGAbstractValue.h" #include "DFGBasicBlock.h" +#include "DFGBlockMap.h" #include "DFGGraph.h" +#include "DFGNodeFlowProjection.h" namespace JSC { namespace DFG { class AtTailAbstractState { public: - AtTailAbstractState(); + AtTailAbstractState(Graph&); ~AtTailAbstractState(); + explicit operator bool() const { return true; } + void initializeTo(BasicBlock* block) { m_block = block; } - void createValueForNode(Node*); - AbstractValue& forNode(Node*); + void createValueForNode(NodeFlowProjection); + AbstractValue& forNode(NodeFlowProjection); AbstractValue& forNode(Edge edge) { return forNode(edge.node()); } Operands<AbstractValue>& variables() { return m_block->valuesAtTail; } @@ -56,20 +57,20 @@ public: bool isValid() { return m_block->cfaDidFinish; } + StructureClobberState structureClobberState() const { return m_block->cfaStructureClobberStateAtTail; } + void setDidClobber(bool) { } + void setStructureClobberState(StructureClobberState state) { RELEASE_ASSERT(state == m_block->cfaStructureClobberStateAtTail); } void setIsValid(bool isValid) { m_block->cfaDidFinish = isValid; } void setBranchDirection(BranchDirection) { } void setFoundConstants(bool) { } - bool haveStructures() const { return true; } // It's always safe to return true. - void setHaveStructures(bool) { } private: - BasicBlock* m_block; + Graph& m_graph; + BlockMap<HashMap<NodeFlowProjection, AbstractValue>> m_valuesAtTailMap; + BasicBlock* m_block { nullptr }; }; } } // namespace JSC::DFG #endif // ENABLE(DFG_JIT) - -#endif // DFGAtTailAbstractState_h - |