| Index: src/arm/codegen-arm.cc
|
| ===================================================================
|
| --- src/arm/codegen-arm.cc (revision 7187)
|
| +++ src/arm/codegen-arm.cc (working copy)
|
| @@ -1201,8 +1201,10 @@
|
| default: UNREACHABLE();
|
| }
|
| deferred->BindExit();
|
| - TypeInfo result_type =
|
| - (op == Token::BIT_AND) ? TypeInfo::Smi() : TypeInfo::Integer32();
|
| + TypeInfo result_type = TypeInfo::Integer32();
|
| + if (op == Token::BIT_AND && int_value >= 0) {
|
| + result_type = TypeInfo::Smi();
|
| + }
|
| frame_->EmitPush(tos, result_type);
|
| }
|
| break;
|
|
|