Index: src/arm/code-stubs-arm.cc |
=================================================================== |
--- src/arm/code-stubs-arm.cc (revision 7593) |
+++ src/arm/code-stubs-arm.cc (working copy) |
@@ -2375,11 +2375,9 @@ |
// DIV just falls through to allocating a heap number. |
} |
- __ bind(&return_heap_number); |
- // Return a heap number, or fall through to type transition or runtime |
- // call if we can't. |
if (result_type_ >= (op_ == Token::DIV) ? TRBinaryOpIC::HEAP_NUMBER |
: TRBinaryOpIC::INT32) { |
+ __ bind(&return_heap_number); |
// We are using vfp registers so r5 is available. |
heap_number_result = r5; |
GenerateHeapResultAllocation(masm, |
@@ -2542,11 +2540,7 @@ |
UNREACHABLE(); |
} |
- // We never expect DIV to yield an integer result, so we always generate |
- // type transition code for DIV operations expecting an integer result: the |
- // code will fall through to this type transition. |
- if (transition.is_linked() || |
- ((op_ == Token::DIV) && (result_type_ <= TRBinaryOpIC::INT32))) { |
+ if (transition.is_linked()) { |
__ bind(&transition); |
GenerateTypeTransition(masm); |
} |