OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1840 case Token::BIT_NOT: | 1840 case Token::BIT_NOT: |
1841 GenerateHeapNumberStubBitNot(masm); | 1841 GenerateHeapNumberStubBitNot(masm); |
1842 break; | 1842 break; |
1843 default: | 1843 default: |
1844 UNREACHABLE(); | 1844 UNREACHABLE(); |
1845 } | 1845 } |
1846 } | 1846 } |
1847 | 1847 |
1848 | 1848 |
1849 void TypeRecordingUnaryOpStub::GenerateHeapNumberStubSub(MacroAssembler* masm) { | 1849 void TypeRecordingUnaryOpStub::GenerateHeapNumberStubSub(MacroAssembler* masm) { |
1850 Label non_smi, slow; | 1850 Label non_smi, slow, call_builtin; |
1851 GenerateSmiCodeSub(masm, &non_smi, &slow); | 1851 GenerateSmiCodeSub(masm, &non_smi, &call_builtin); |
1852 __ bind(&non_smi); | 1852 __ bind(&non_smi); |
1853 GenerateHeapNumberCodeSub(masm, &slow); | 1853 GenerateHeapNumberCodeSub(masm, &slow); |
1854 __ bind(&slow); | 1854 __ bind(&slow); |
1855 GenerateTypeTransition(masm); | 1855 GenerateTypeTransition(masm); |
| 1856 __ bind(&call_builtin); |
| 1857 GenerateGenericCodeFallback(masm); |
1856 } | 1858 } |
1857 | 1859 |
1858 | 1860 |
1859 void TypeRecordingUnaryOpStub::GenerateHeapNumberStubBitNot( | 1861 void TypeRecordingUnaryOpStub::GenerateHeapNumberStubBitNot( |
1860 MacroAssembler* masm) { | 1862 MacroAssembler* masm) { |
1861 Label non_smi, slow; | 1863 Label non_smi, slow; |
1862 GenerateSmiCodeBitNot(masm, &non_smi); | 1864 GenerateSmiCodeBitNot(masm, &non_smi); |
1863 __ bind(&non_smi); | 1865 __ bind(&non_smi); |
1864 GenerateHeapNumberCodeBitNot(masm, &slow); | 1866 GenerateHeapNumberCodeBitNot(masm, &slow); |
1865 __ bind(&slow); | 1867 __ bind(&slow); |
(...skipping 4519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6385 __ mov(result, Operand(0)); | 6387 __ mov(result, Operand(0)); |
6386 __ Ret(); | 6388 __ Ret(); |
6387 } | 6389 } |
6388 | 6390 |
6389 | 6391 |
6390 #undef __ | 6392 #undef __ |
6391 | 6393 |
6392 } } // namespace v8::internal | 6394 } } // namespace v8::internal |
6393 | 6395 |
6394 #endif // V8_TARGET_ARCH_ARM | 6396 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |