Improve static type information in (constant SHL smi) computation.
authorwhesse@chromium.org <whesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 4 May 2010 11:17:45 +0000 (11:17 +0000)
committerwhesse@chromium.org <whesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 4 May 2010 11:17:45 +0000 (11:17 +0000)
Review URL: http://codereview.chromium.org/1910002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4576 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/ia32/codegen-ia32.cc
src/x64/codegen-x64.cc

index a33fac6..d426aaa 100644 (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());
index e239ddd..2ae30ac 100644 (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) {