Index: src/arm/lithium-arm.cc |
=================================================================== |
--- src/arm/lithium-arm.cc (revision 10035) |
+++ src/arm/lithium-arm.cc (working copy) |
@@ -228,6 +228,13 @@ |
} |
+void LIsStringAndBranch::PrintDataTo(StringStream* stream) { |
+ stream->Add("if is_string("); |
+ InputAt(0)->PrintTo(stream); |
+ stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); |
+} |
+ |
+ |
void LIsSmiAndBranch::PrintDataTo(StringStream* stream) { |
stream->Add("if is_smi("); |
InputAt(0)->PrintTo(stream); |
@@ -242,6 +249,14 @@ |
} |
+void LStringCompareAndBranch::PrintDataTo(StringStream* stream) { |
+ stream->Add("if string_compare("); |
+ InputAt(0)->PrintTo(stream); |
+ InputAt(1)->PrintTo(stream); |
+ stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); |
+} |
+ |
+ |
void LHasInstanceTypeAndBranch::PrintDataTo(StringStream* stream) { |
stream->Add("if has_instance_type("); |
InputAt(0)->PrintTo(stream); |
@@ -1452,6 +1467,13 @@ |
} |
+LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { |
+ ASSERT(instr->value()->representation().IsTagged()); |
+ LOperand* temp = TempRegister(); |
+ return new LIsStringAndBranch(UseRegisterAtStart(instr->value()), temp); |
+} |
+ |
+ |
LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { |
ASSERT(instr->value()->representation().IsTagged()); |
return new LIsSmiAndBranch(Use(instr->value())); |
@@ -1466,6 +1488,17 @@ |
} |
+LInstruction* LChunkBuilder::DoStringCompareAndBranch( |
+ HStringCompareAndBranch* instr) { |
+ ASSERT(instr->left()->representation().IsTagged()); |
+ ASSERT(instr->right()->representation().IsTagged()); |
+ LOperand* left = UseFixed(instr->left(), r1); |
+ LOperand* right = UseFixed(instr->right(), r0); |
+ LStringCompareAndBranch* result = new LStringCompareAndBranch(left, right); |
+ return MarkAsCall(result, instr); |
+} |
+ |
+ |
LInstruction* LChunkBuilder::DoHasInstanceTypeAndBranch( |
HHasInstanceTypeAndBranch* instr) { |
ASSERT(instr->value()->representation().IsTagged()); |