Commit 852cebb1 authored by whesse@chromium.org's avatar whesse@chromium.org

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
parent 6230f539
......@@ -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());
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment