Index: src/x64/lithium-codegen-x64.cc |
=================================================================== |
--- src/x64/lithium-codegen-x64.cc (revision 9901) |
+++ src/x64/lithium-codegen-x64.cc (working copy) |
@@ -1680,31 +1680,6 @@ |
} |
-Condition LCodeGen::EmitIsString(Register input, |
- Label* is_not_string, |
- Label* is_string) { |
- |
- __ JumpIfSmi(input, is_not_string); |
- __ CmpObjectType(input, FIRST_NONSTRING_TYPE, rcx); |
- |
- return below; |
-} |
- |
- |
-void LCodeGen::DoIsStringAndBranch(LIsStringAndBranch* instr) { |
- Register reg = ToRegister(instr->InputAt(0)); |
- |
- int true_block = chunk_->LookupDestination(instr->true_block_id()); |
- int false_block = chunk_->LookupDestination(instr->false_block_id()); |
- Label* true_label = chunk_->GetAssemblyLabel(true_block); |
- Label* false_label = chunk_->GetAssemblyLabel(false_block); |
- |
- Condition true_cond = EmitIsString(reg, false_label, true_label); |
- |
- EmitBranch(true_block, false_block, true_cond); |
-} |
- |
- |
void LCodeGen::DoIsSmiAndBranch(LIsSmiAndBranch* instr) { |
int true_block = chunk_->LookupDestination(instr->true_block_id()); |
int false_block = chunk_->LookupDestination(instr->false_block_id()); |
@@ -1736,21 +1711,6 @@ |
} |
-void LCodeGen::DoStringCompareAndBranch(LStringCompareAndBranch* instr) { |
- Token::Value op = instr->op(); |
- int true_block = chunk_->LookupDestination(instr->true_block_id()); |
- int false_block = chunk_->LookupDestination(instr->false_block_id()); |
- |
- Handle<Code> ic = CompareIC::GetUninitialized(op); |
- CallCode(ic, RelocInfo::CODE_TARGET, instr); |
- |
- Condition condition = TokenToCondition(op, false); |
- __ testq(rax, rax); |
- |
- EmitBranch(true_block, false_block, condition); |
-} |
- |
- |
static InstanceType TestType(HHasInstanceTypeAndBranch* instr) { |
InstanceType from = instr->from(); |
InstanceType to = instr->to(); |