| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 9146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9157 | 9157 |
| 9158 | 9158 |
| 9159 static void DoSmiAbsTest(int32_t value, bool must_fail = false) { | 9159 static void DoSmiAbsTest(int32_t value, bool must_fail = false) { |
| 9160 SETUP(); | 9160 SETUP(); |
| 9161 | 9161 |
| 9162 START(); | 9162 START(); |
| 9163 Label end, slow; | 9163 Label end, slow; |
| 9164 __ Mov(x2, 0xc001c0de); | 9164 __ Mov(x2, 0xc001c0de); |
| 9165 __ Mov(x1, value); | 9165 __ Mov(x1, value); |
| 9166 __ SmiTag(x1); | 9166 __ SmiTag(x1); |
| 9167 __ SmiAbs(x1, x0, &slow); | 9167 __ SmiAbs(x1, &slow); |
| 9168 __ SmiUntag(x1); | 9168 __ SmiUntag(x1); |
| 9169 __ B(&end); | 9169 __ B(&end); |
| 9170 | 9170 |
| 9171 __ Bind(&slow); | 9171 __ Bind(&slow); |
| 9172 __ Mov(x2, 0xbad); | 9172 __ Mov(x2, 0xbad); |
| 9173 | 9173 |
| 9174 __ Bind(&end); | 9174 __ Bind(&end); |
| 9175 END(); | 9175 END(); |
| 9176 | 9176 |
| 9177 RUN(); | 9177 RUN(); |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9564 AbsHelperX(kXMinInt); | 9564 AbsHelperX(kXMinInt); |
| 9565 AbsHelperX(kXMaxInt); | 9565 AbsHelperX(kXMaxInt); |
| 9566 | 9566 |
| 9567 AbsHelperW(0); | 9567 AbsHelperW(0); |
| 9568 AbsHelperW(42); | 9568 AbsHelperW(42); |
| 9569 AbsHelperW(-42); | 9569 AbsHelperW(-42); |
| 9570 AbsHelperW(kWMinInt); | 9570 AbsHelperW(kWMinInt); |
| 9571 AbsHelperW(kWMaxInt); | 9571 AbsHelperW(kWMaxInt); |
| 9572 } | 9572 } |
| 9573 | 9573 |
| OLD | NEW |