| 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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 case CodeStub::SubString: { | 961 case CodeStub::SubString: { |
| 962 SubStringStub stub; | 962 SubStringStub stub; |
| 963 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 963 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
| 964 break; | 964 break; |
| 965 } | 965 } |
| 966 case CodeStub::StringCompare: { | 966 case CodeStub::StringCompare: { |
| 967 StringCompareStub stub; | 967 StringCompareStub stub; |
| 968 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 968 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
| 969 break; | 969 break; |
| 970 } | 970 } |
| 971 case CodeStub::TranscendentalCache: { | |
| 972 TranscendentalCacheStub stub(instr->transcendental_type(), | |
| 973 TranscendentalCacheStub::TAGGED); | |
| 974 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | |
| 975 break; | |
| 976 } | |
| 977 default: | 971 default: |
| 978 UNREACHABLE(); | 972 UNREACHABLE(); |
| 979 } | 973 } |
| 980 } | 974 } |
| 981 | 975 |
| 982 | 976 |
| 983 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { | 977 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { |
| 984 GenerateOsrPrologue(); | 978 GenerateOsrPrologue(); |
| 985 } | 979 } |
| 986 | 980 |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1897 // Don't delete this mov. It may improve performance on some CPUs, | 1891 // Don't delete this mov. It may improve performance on some CPUs, |
| 1898 // when there is a mulsd depending on the result | 1892 // when there is a mulsd depending on the result |
| 1899 __ movaps(left, left); | 1893 __ movaps(left, left); |
| 1900 break; | 1894 break; |
| 1901 case Token::MOD: { | 1895 case Token::MOD: { |
| 1902 XMMRegister xmm_scratch = double_scratch0(); | 1896 XMMRegister xmm_scratch = double_scratch0(); |
| 1903 __ PrepareCallCFunction(2); | 1897 __ PrepareCallCFunction(2); |
| 1904 __ movaps(xmm_scratch, left); | 1898 __ movaps(xmm_scratch, left); |
| 1905 ASSERT(right.is(xmm1)); | 1899 ASSERT(right.is(xmm1)); |
| 1906 __ CallCFunction( | 1900 __ CallCFunction( |
| 1907 ExternalReference::double_fp_operation(Token::MOD, isolate()), 2); | 1901 ExternalReference::mod_two_doubles_operation(isolate()), 2); |
| 1908 __ movaps(result, xmm_scratch); | 1902 __ movaps(result, xmm_scratch); |
| 1909 break; | 1903 break; |
| 1910 } | 1904 } |
| 1911 default: | 1905 default: |
| 1912 UNREACHABLE(); | 1906 UNREACHABLE(); |
| 1913 break; | 1907 break; |
| 1914 } | 1908 } |
| 1915 } | 1909 } |
| 1916 | 1910 |
| 1917 | 1911 |
| (...skipping 3674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5592 FixedArray::kHeaderSize - kPointerSize)); | 5586 FixedArray::kHeaderSize - kPointerSize)); |
| 5593 __ bind(&done); | 5587 __ bind(&done); |
| 5594 } | 5588 } |
| 5595 | 5589 |
| 5596 | 5590 |
| 5597 #undef __ | 5591 #undef __ |
| 5598 | 5592 |
| 5599 } } // namespace v8::internal | 5593 } } // namespace v8::internal |
| 5600 | 5594 |
| 5601 #endif // V8_TARGET_ARCH_X64 | 5595 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |