From: whesse@chromium.org Date: Tue, 4 May 2010 11:17:45 +0000 (+0000) Subject: Improve static type information in (constant SHL smi) computation. X-Git-Tag: upstream/4.7.83~21882 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=852cebb1cb50926782fafcedb079f990437ff732;p=platform%2Fupstream%2Fv8.git Improve static type information in (constant SHL smi) computation. Review URL: http://codereview.chromium.org/1910002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4576 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc index a33fac6..d426aaa 100644 --- a/src/ia32/codegen-ia32.cc +++ b/src/ia32/codegen-ia32.cc @@ -2197,7 +2197,7 @@ Result CodeGenerator::ConstantSmiBinaryOperation( overwrite_mode); __ mov(answer.reg(), Immediate(int_value)); __ sar(ecx, kSmiTagSize); - if (!right.type_info().IsSmi()) { + if (!right_type_info.IsSmi()) { deferred->Branch(carry); } else if (FLAG_debug_code) { __ AbortIfNotSmi(right.reg()); diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc index e239ddd..2ae30ac 100644 --- a/src/x64/codegen-x64.cc +++ b/src/x64/codegen-x64.cc @@ -6558,7 +6558,7 @@ Result CodeGenerator::ConstantSmiBinaryOperation(BinaryOperation* expr, overwrite_mode); __ movq(answer.reg(), Immediate(int_value)); __ SmiToInteger32(rcx, rcx); - if (!right.type_info().IsSmi()) { + if (!right_type_info.IsSmi()) { Condition is_smi = masm_->CheckSmi(right.reg()); deferred->Branch(NegateCondition(is_smi)); } else if (FLAG_debug_code) {