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
This commit is contained in:
whesse@chromium.org 2010-05-04 11:17:45 +00:00
parent 6230f5397d
commit 852cebb1cb
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -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) {