Commit aadeef9e authored by jarin's avatar jarin Committed by Commit bot

[turbofan] Remove dead code from simplified lowering.

Review URL: https://codereview.chromium.org/1418423007

Cr-Commit-Position: refs/heads/master@{#31602}
parent 7c6eb5ed
...@@ -1153,14 +1153,6 @@ class RepresentationSelector { ...@@ -1153,14 +1153,6 @@ class RepresentationSelector {
}; };
Node* SimplifiedLowering::IsTagged(Node* node) {
// TODO(titzer): factor this out to a TaggingScheme abstraction.
STATIC_ASSERT(kSmiTagMask == 1); // Only works if tag is the low bit.
return graph()->NewNode(machine()->WordAnd(), node,
jsgraph()->Int32Constant(kSmiTagMask));
}
SimplifiedLowering::SimplifiedLowering(JSGraph* jsgraph, Zone* zone, SimplifiedLowering::SimplifiedLowering(JSGraph* jsgraph, Zone* zone,
SourcePositionTable* source_positions) SourcePositionTable* source_positions)
: jsgraph_(jsgraph), : jsgraph_(jsgraph),
...@@ -1177,25 +1169,6 @@ void SimplifiedLowering::LowerAllNodes() { ...@@ -1177,25 +1169,6 @@ void SimplifiedLowering::LowerAllNodes() {
} }
Node* SimplifiedLowering::Untag(Node* node) {
// TODO(titzer): factor this out to a TaggingScheme abstraction.
Node* shift_amount = jsgraph()->Int32Constant(kSmiTagSize + kSmiShiftSize);
return graph()->NewNode(machine()->WordSar(), node, shift_amount);
}
Node* SimplifiedLowering::SmiTag(Node* node) {
// TODO(titzer): factor this out to a TaggingScheme abstraction.
Node* shift_amount = jsgraph()->Int32Constant(kSmiTagSize + kSmiShiftSize);
return graph()->NewNode(machine()->WordShl(), node, shift_amount);
}
Node* SimplifiedLowering::OffsetMinusTagConstant(int32_t offset) {
return jsgraph()->Int32Constant(offset - kHeapObjectTag);
}
namespace { namespace {
WriteBarrierKind ComputeWriteBarrierKind(BaseTaggedness base_is_tagged, WriteBarrierKind ComputeWriteBarrierKind(BaseTaggedness base_is_tagged,
......
...@@ -54,10 +54,6 @@ class SimplifiedLowering final { ...@@ -54,10 +54,6 @@ class SimplifiedLowering final {
// position information via the SourcePositionWrapper like all other reducers. // position information via the SourcePositionWrapper like all other reducers.
SourcePositionTable* source_positions_; SourcePositionTable* source_positions_;
Node* SmiTag(Node* node);
Node* IsTagged(Node* node);
Node* Untag(Node* node);
Node* OffsetMinusTagConstant(int32_t offset);
Node* ComputeIndex(const ElementAccess& access, Node* const key); Node* ComputeIndex(const ElementAccess& access, Node* const key);
Node* StringComparison(Node* node); Node* StringComparison(Node* node);
Node* Int32Div(Node* const node); Node* Int32Div(Node* const node);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment