Fix DoHasInstanceType on ARM
Was broken by the recent JumpIfSmi() cleanup. TEST=es5conform Review URL: http://codereview.chromium.org/7206023 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8331 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
af24067fa5
commit
ff55249ffa
@ -1990,8 +1990,9 @@ void LCodeGen::DoHasInstanceType(LHasInstanceType* instr) {
|
|||||||
|
|
||||||
ASSERT(instr->hydrogen()->value()->representation().IsTagged());
|
ASSERT(instr->hydrogen()->value()->representation().IsTagged());
|
||||||
Label done;
|
Label done;
|
||||||
|
__ tst(input, Operand(kSmiTagMask));
|
||||||
__ LoadRoot(result, Heap::kFalseValueRootIndex, eq);
|
__ LoadRoot(result, Heap::kFalseValueRootIndex, eq);
|
||||||
__ JumpIfSmi(input, &done);
|
__ b(eq, &done);
|
||||||
__ CompareObjectType(input, result, result, TestType(instr->hydrogen()));
|
__ CompareObjectType(input, result, result, TestType(instr->hydrogen()));
|
||||||
Condition cond = BranchCondition(instr->hydrogen());
|
Condition cond = BranchCondition(instr->hydrogen());
|
||||||
__ LoadRoot(result, Heap::kTrueValueRootIndex, cond);
|
__ LoadRoot(result, Heap::kTrueValueRootIndex, cond);
|
||||||
|
Loading…
Reference in New Issue
Block a user