summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/dfg/DFGPredictionInjectionPhase.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/JavaScriptCore/dfg/DFGPredictionInjectionPhase.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGPredictionInjectionPhase.cpp')
-rw-r--r--Source/JavaScriptCore/dfg/DFGPredictionInjectionPhase.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGPredictionInjectionPhase.cpp b/Source/JavaScriptCore/dfg/DFGPredictionInjectionPhase.cpp
index 21da5fe0a..27fb90373 100644
--- a/Source/JavaScriptCore/dfg/DFGPredictionInjectionPhase.cpp
+++ b/Source/JavaScriptCore/dfg/DFGPredictionInjectionPhase.cpp
@@ -31,7 +31,7 @@
#include "DFGBasicBlockInlines.h"
#include "DFGGraph.h"
#include "DFGPhase.h"
-#include "Operations.h"
+#include "JSCInlines.h"
namespace JSC { namespace DFG {
@@ -49,7 +49,7 @@ public:
ASSERT(codeBlock()->numParameters() >= 1);
{
- ConcurrentJITLocker locker(profiledBlock()->m_lock);
+ ConcurrentJSLocker locker(profiledBlock()->m_lock);
for (size_t arg = 0; arg < static_cast<size_t>(codeBlock()->numParameters()); ++arg) {
ValueProfile* profile = profiledBlock()->valueProfileForArgument(arg);
@@ -74,7 +74,7 @@ public:
Node* node = block->variablesAtHead.operand(operand);
if (!node)
continue;
- ASSERT(node->hasLocal(m_graph));
+ ASSERT(node->accessesStack(m_graph));
node->variableAccessData()->predict(
speculationFromValue(m_graph.m_plan.mustHandleValues[i]));
}
@@ -86,7 +86,6 @@ public:
bool performPredictionInjection(Graph& graph)
{
- SamplingRegion samplingRegion("DFG Prediction Injection Phase");
return runPhase<PredictionInjectionPhase>(graph);
}