Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index cc48cc5d019ec29d153c64ebb1d26bd741d21b29..58e0127d44272065c284ba62b358d05915bdfd18 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -813,7 +813,6 @@ bool HInstruction::CanDeoptimize() { |
case HValue::kInstanceOf: |
case HValue::kIsConstructCallAndBranch: |
case HValue::kHasInPrototypeChainAndBranch: |
- case HValue::kIsObjectAndBranch: |
case HValue::kIsSmiAndBranch: |
case HValue::kIsStringAndBranch: |
case HValue::kIsUndetectableAndBranch: |
@@ -3273,29 +3272,6 @@ bool HCompareObjectEqAndBranch::KnownSuccessorBlock(HBasicBlock** block) { |
} |
-bool ConstantIsObject(HConstant* constant, Isolate* isolate) { |
- if (constant->HasNumberValue()) return false; |
- if (constant->GetUnique().IsKnownGlobal(isolate->heap()->null_value())) { |
- return true; |
- } |
- if (constant->IsUndetectable()) return false; |
- InstanceType type = constant->GetInstanceType(); |
- return (FIRST_NONCALLABLE_SPEC_OBJECT_TYPE <= type) && |
- (type <= LAST_NONCALLABLE_SPEC_OBJECT_TYPE); |
-} |
- |
- |
-bool HIsObjectAndBranch::KnownSuccessorBlock(HBasicBlock** block) { |
- if (FLAG_fold_constants && value()->IsConstant()) { |
- *block = ConstantIsObject(HConstant::cast(value()), isolate()) |
- ? FirstSuccessor() : SecondSuccessor(); |
- return true; |
- } |
- *block = NULL; |
- return false; |
-} |
- |
- |
bool HIsStringAndBranch::KnownSuccessorBlock(HBasicBlock** block) { |
if (known_successor_index() != kNoKnownSuccessorIndex) { |
*block = SuccessorAt(known_successor_index()); |