From: danno@chromium.org Date: Tue, 31 Jul 2012 09:47:43 +0000 (+0000) Subject: Fix bogus AbortIfNotZeroExtended on x64 for bounds checks X-Git-Tag: upstream/4.7.83~16210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d884792dea16b89275060efa20f5c7c84d513e92;p=platform%2Fupstream%2Fv8.git Fix bogus AbortIfNotZeroExtended on x64 for bounds checks R=mmassi@chromium.org Review URL: https://chromiumcodereview.appspot.com/10837019 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12234 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc index 1caf110..8dd58a2 100644 --- a/src/x64/lithium-codegen-x64.cc +++ b/src/x64/lithium-codegen-x64.cc @@ -3623,7 +3623,7 @@ void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { if (instr->length()->IsRegister()) { Register reg = ToRegister(instr->length()); if (FLAG_debug_code && - !instr->hydrogen()->index()->representation().IsTagged()) { + !instr->hydrogen()->length()->representation().IsTagged()) { __ AbortIfNotZeroExtended(reg); } if (instr->index()->IsConstantOperand()) {