From c5859a09ddd3bebd905718e54208ac37d86ad967 Mon Sep 17 00:00:00 2001 From: "whesse@chromium.org" Date: Thu, 20 May 2010 14:56:49 +0000 Subject: [PATCH] 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 --- src/x64/full-codegen-x64.cc | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc index 4c4ca5c..728a1a5 100644 --- a/src/x64/full-codegen-x64.cc +++ b/src/x64/full-codegen-x64.cc @@ -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) { -- 2.7.4