summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/dfg/DFGBasicBlock.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/dfg/DFGBasicBlock.cpp
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGBasicBlock.cpp')
-rw-r--r--Source/JavaScriptCore/dfg/DFGBasicBlock.cpp36
1 files changed, 8 insertions, 28 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGBasicBlock.cpp b/Source/JavaScriptCore/dfg/DFGBasicBlock.cpp
index 383ee4b9a..07a972633 100644
--- a/Source/JavaScriptCore/dfg/DFGBasicBlock.cpp
+++ b/Source/JavaScriptCore/dfg/DFGBasicBlock.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013-2015 Apple Inc. All rights reserved.
+ * Copyright (C) 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -28,12 +28,11 @@
#if ENABLE(DFG_JIT)
-#include "JSCInlines.h"
+#include "Operations.h"
namespace JSC { namespace DFG {
-BasicBlock::BasicBlock(
- unsigned bytecodeBegin, unsigned numArguments, unsigned numLocals, float executionCount)
+BasicBlock::BasicBlock(unsigned bytecodeBegin, unsigned numArguments, unsigned numLocals)
: bytecodeBegin(bytecodeBegin)
, index(NoBlock)
, isOSRTarget(false)
@@ -41,8 +40,6 @@ BasicBlock::BasicBlock(
, cfaShouldRevisit(false)
, cfaFoundConstants(false)
, cfaDidFinish(true)
- , cfaStructureClobberStateAtHead(StructuresAreWatched)
- , cfaStructureClobberStateAtTail(StructuresAreWatched)
, cfaBranchDirection(InvalidBranchDirection)
#if !ASSERT_DISABLED
, isLinked(false)
@@ -52,15 +49,10 @@ BasicBlock::BasicBlock(
, variablesAtTail(numArguments, numLocals)
, valuesAtHead(numArguments, numLocals)
, valuesAtTail(numArguments, numLocals)
- , intersectionOfPastValuesAtHead(numArguments, numLocals, AbstractValue::fullTop())
- , intersectionOfCFAHasVisited(true)
- , executionCount(executionCount)
{
}
-BasicBlock::~BasicBlock()
-{
-}
+BasicBlock::~BasicBlock() { }
void BasicBlock::ensureLocals(unsigned newNumLocals)
{
@@ -68,20 +60,6 @@ void BasicBlock::ensureLocals(unsigned newNumLocals)
variablesAtTail.ensureLocals(newNumLocals);
valuesAtHead.ensureLocals(newNumLocals);
valuesAtTail.ensureLocals(newNumLocals);
- intersectionOfPastValuesAtHead.ensureLocals(newNumLocals, AbstractValue::fullTop());
-}
-
-void BasicBlock::replaceTerminal(Node* node)
-{
- NodeAndIndex result = findTerminal();
- if (!result)
- append(node);
- else {
- m_nodes.insert(result.index + 1, node);
- result.node->remove();
- }
-
- ASSERT(terminal());
}
bool BasicBlock::isInPhis(Node* node) const
@@ -131,9 +109,11 @@ void BasicBlock::dump(PrintStream& out) const
}
BasicBlock::SSAData::SSAData(BasicBlock* block)
+ : flushAtHead(OperandsLike, block->variablesAtHead)
+ , flushAtTail(OperandsLike, block->variablesAtHead)
+ , availabilityAtHead(OperandsLike, block->variablesAtHead)
+ , availabilityAtTail(OperandsLike, block->variablesAtHead)
{
- availabilityAtHead.m_locals = Operands<Availability>(OperandsLike, block->variablesAtHead);
- availabilityAtTail.m_locals = Operands<Availability>(OperandsLike, block->variablesAtHead);
}
BasicBlock::SSAData::~SSAData() { }