Commit c5859a09 authored by whesse@chromium.org's avatar whesse@chromium.org

Fix formatting in last change, file x64/full-codegen-x64.cc.

Review URL: http://codereview.chromium.org/2081014

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4691 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e45be793
......@@ -3022,29 +3022,28 @@ void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) {
}
void FullCodeGenerator::EmitNullCompare(bool strict,
Register obj,
Register null_const,
Label* if_true,
Label* if_false,
Register scratch) {
__ cmpq(obj, null_const);
if (strict) {
__ j(equal, if_true);
} else {
__ j(equal, if_true);
__ CompareRoot(obj, Heap::kUndefinedValueRootIndex);
__ j(equal, if_true);
__ JumpIfSmi(obj, if_false);
// It can be an undetectable object.
__ movq(scratch, FieldOperand(obj, HeapObject::kMapOffset));
__ testb(FieldOperand(scratch, Map::kBitFieldOffset),
Immediate(1 << Map::kIsUndetectable));
__ j(not_zero, if_true);
}
__ jmp(if_false);
}
void FullCodeGenerator::EmitNullCompare(bool strict,
Register obj,
Register null_const,
Label* if_true,
Label* if_false,
Register scratch) {
__ cmpq(obj, null_const);
if (strict) {
__ j(equal, if_true);
} else {
__ j(equal, if_true);
__ CompareRoot(obj, Heap::kUndefinedValueRootIndex);
__ j(equal, if_true);
__ JumpIfSmi(obj, if_false);
// It can be an undetectable object.
__ movq(scratch, FieldOperand(obj, HeapObject::kMapOffset));
__ testb(FieldOperand(scratch, Map::kBitFieldOffset),
Immediate(1 << Map::kIsUndetectable));
__ j(not_zero, if_true);
}
__ jmp(if_false);
}
void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment