Fix bug in CheckBothPositiveSmi macro.
Fix lint. Review URL: http://codereview.chromium.org/2826021 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4952 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
f0529878d1
commit
49c4718443
@ -13410,7 +13410,6 @@ void SubStringStub::Generate(MacroAssembler* masm) {
|
||||
// Just jump to runtime to create the sub string.
|
||||
__ bind(&runtime);
|
||||
__ TailCallRuntime(Runtime::kSubString, 3, 1);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -652,8 +652,8 @@ Condition MacroAssembler::CheckBothPositiveSmi(Register first,
|
||||
if (first.is(second)) {
|
||||
return CheckPositiveSmi(first);
|
||||
}
|
||||
movl(kScratchRegister, first);
|
||||
orl(kScratchRegister, second);
|
||||
movq(kScratchRegister, first);
|
||||
or_(kScratchRegister, second);
|
||||
rol(kScratchRegister, Immediate(1));
|
||||
testl(kScratchRegister, Immediate(0x03));
|
||||
return zero;
|
||||
|
Loading…
Reference in New Issue
Block a user