From 59a7ce37a6c7fe8426ecedaf556c223fe9c109e9 Mon Sep 17 00:00:00 2001 From: "danno@chromium.org" Date: Tue, 24 May 2011 08:59:51 +0000 Subject: [PATCH] Fix poliarty of CheckMap smi check on ia32 R=karlklose@chromium.org BUG=none TEST=existing tests Review URL: http://codereview.chromium.org/7067018 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8025 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/ia32/macro-assembler-ia32.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc index 6c02ce4832..b83761f9f0 100644 --- a/src/ia32/macro-assembler-ia32.cc +++ b/src/ia32/macro-assembler-ia32.cc @@ -283,7 +283,7 @@ void MacroAssembler::CheckMap(Register obj, Handle map, Label* fail, SmiCheckType smi_check_type) { - if (smi_check_type == DONT_DO_SMI_CHECK) { + if (smi_check_type == DO_SMI_CHECK) { JumpIfSmi(obj, fail); } cmp(FieldOperand(obj, HeapObject::kMapOffset), Immediate(map));