| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1552 HValue* new_left = SimplifiedDividendForMathFloorOfDiv(left); | 1552 HValue* new_left = SimplifiedDividendForMathFloorOfDiv(left); |
| 1553 if (new_left == NULL && | 1553 if (new_left == NULL && |
| 1554 hdiv->observed_input_representation(1).IsSmiOrInteger32()) { | 1554 hdiv->observed_input_representation(1).IsSmiOrInteger32()) { |
| 1555 new_left = new(block()->zone()) | 1555 new_left = new(block()->zone()) |
| 1556 HChange(left, Representation::Integer32(), false, false); | 1556 HChange(left, Representation::Integer32(), false, false); |
| 1557 HChange::cast(new_left)->InsertBefore(this); | 1557 HChange::cast(new_left)->InsertBefore(this); |
| 1558 } | 1558 } |
| 1559 HValue* new_right = | 1559 HValue* new_right = |
| 1560 LChunkBuilder::SimplifiedDivisorForMathFloorOfDiv(right); | 1560 LChunkBuilder::SimplifiedDivisorForMathFloorOfDiv(right); |
| 1561 if (new_right == NULL && | 1561 if (new_right == NULL && |
| 1562 #ifdef V8_TARGET_ARCH_ARM | 1562 #if V8_TARGET_ARCH_ARM |
| 1563 CpuFeatures::IsSupported(SUDIV) && | 1563 CpuFeatures::IsSupported(SUDIV) && |
| 1564 #endif | 1564 #endif |
| 1565 hdiv->observed_input_representation(2).IsSmiOrInteger32()) { | 1565 hdiv->observed_input_representation(2).IsSmiOrInteger32()) { |
| 1566 new_right = new(block()->zone()) | 1566 new_right = new(block()->zone()) |
| 1567 HChange(right, Representation::Integer32(), false, false); | 1567 HChange(right, Representation::Integer32(), false, false); |
| 1568 HChange::cast(new_right)->InsertBefore(this); | 1568 HChange::cast(new_right)->InsertBefore(this); |
| 1569 } | 1569 } |
| 1570 | 1570 |
| 1571 // Return if left or right are not optimizable. | 1571 // Return if left or right are not optimizable. |
| 1572 if ((new_left == NULL) || (new_right == NULL)) return this; | 1572 if ((new_left == NULL) || (new_right == NULL)) return this; |
| (...skipping 2305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3878 case kBackingStore: | 3878 case kBackingStore: |
| 3879 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); | 3879 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); |
| 3880 stream->Add("[backing-store]"); | 3880 stream->Add("[backing-store]"); |
| 3881 break; | 3881 break; |
| 3882 } | 3882 } |
| 3883 | 3883 |
| 3884 stream->Add("@%d", offset()); | 3884 stream->Add("@%d", offset()); |
| 3885 } | 3885 } |
| 3886 | 3886 |
| 3887 } } // namespace v8::internal | 3887 } } // namespace v8::internal |
| OLD | NEW |