| Index: src/arm/code-stubs-arm.h
|
| ===================================================================
|
| --- src/arm/code-stubs-arm.h (revision 6012)
|
| +++ src/arm/code-stubs-arm.h (working copy)
|
| @@ -77,7 +77,7 @@
|
| rhs_(rhs),
|
| constant_rhs_(constant_rhs),
|
| specialized_on_rhs_(RhsIsOneWeWantToOptimizeFor(op, constant_rhs)),
|
| - runtime_operands_type_(BinaryOpIC::DEFAULT),
|
| + runtime_operands_type_(BinaryOpIC::UNINIT_OR_SMI),
|
| name_(NULL) { }
|
|
|
| GenericBinaryOpStub(int key, BinaryOpIC::TypeInfo type_info)
|
| @@ -178,6 +178,10 @@
|
| return lhs_is_r0 ? r1 : r0;
|
| }
|
|
|
| + bool HasSmiSmiFastPath() {
|
| + return op_ != Token::DIV;
|
| + }
|
| +
|
| bool ShouldGenerateSmiCode() {
|
| return ((op_ != Token::DIV && op_ != Token::MOD) || specialized_on_rhs_) &&
|
| runtime_operands_type_ != BinaryOpIC::HEAP_NUMBERS &&
|
|
|