ARM: Fix lithium codegeneration of TypeofIs

The previous implementation was incomplete and wrong.

TBR=karlklose@chromium.org
Review URL: http://codereview.chromium.org/6113003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6231 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
sgjesse@chromium.org 2011-01-07 14:27:32 +00:00
parent 22d1249b68
commit dae44fd3ee

View File

@ -2484,10 +2484,15 @@ void LCodeGen::DoTypeofIs(LTypeofIs* instr) {
&false_label,
input,
instr->type_literal());
__ b(final_branch_condition, &true_label);
__ bind(&false_label);
__ LoadRoot(result, Heap::kFalseValueRootIndex);
__ b(&done);
__ LoadRoot(result, Heap::kTrueValueRootIndex, final_branch_condition);
__ LoadRoot(result, Heap::kFalseValueRootIndex,
NegateCondition(final_branch_condition));
__ bind(&true_label);
__ LoadRoot(result, Heap::kTrueValueRootIndex);
__ bind(&done);
}