| 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 2869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2880 VisitForStackValue(args->at(1)); | 2880 VisitForStackValue(args->at(1)); |
| 2881 | 2881 |
| 2882 StringCompareStub stub; | 2882 StringCompareStub stub; |
| 2883 __ CallStub(&stub); | 2883 __ CallStub(&stub); |
| 2884 context()->Plug(rax); | 2884 context()->Plug(rax); |
| 2885 } | 2885 } |
| 2886 | 2886 |
| 2887 | 2887 |
| 2888 void FullCodeGenerator::EmitMathSin(ZoneList<Expression*>* args) { | 2888 void FullCodeGenerator::EmitMathSin(ZoneList<Expression*>* args) { |
| 2889 // Load the argument on the stack and call the stub. | 2889 // Load the argument on the stack and call the stub. |
| 2890 TranscendentalCacheStub stub(TranscendentalCache::SIN); | 2890 TranscendentalCacheStub stub(TranscendentalCache::SIN, |
| 2891 TranscendentalCacheStub::TAGGED); |
| 2891 ASSERT(args->length() == 1); | 2892 ASSERT(args->length() == 1); |
| 2892 VisitForStackValue(args->at(0)); | 2893 VisitForStackValue(args->at(0)); |
| 2893 __ CallStub(&stub); | 2894 __ CallStub(&stub); |
| 2894 context()->Plug(rax); | 2895 context()->Plug(rax); |
| 2895 } | 2896 } |
| 2896 | 2897 |
| 2897 | 2898 |
| 2898 void FullCodeGenerator::EmitMathCos(ZoneList<Expression*>* args) { | 2899 void FullCodeGenerator::EmitMathCos(ZoneList<Expression*>* args) { |
| 2899 // Load the argument on the stack and call the stub. | 2900 // Load the argument on the stack and call the stub. |
| 2900 TranscendentalCacheStub stub(TranscendentalCache::COS); | 2901 TranscendentalCacheStub stub(TranscendentalCache::COS, |
| 2902 TranscendentalCacheStub::TAGGED); |
| 2901 ASSERT(args->length() == 1); | 2903 ASSERT(args->length() == 1); |
| 2902 VisitForStackValue(args->at(0)); | 2904 VisitForStackValue(args->at(0)); |
| 2903 __ CallStub(&stub); | 2905 __ CallStub(&stub); |
| 2904 context()->Plug(rax); | 2906 context()->Plug(rax); |
| 2905 } | 2907 } |
| 2906 | 2908 |
| 2907 | 2909 |
| 2908 void FullCodeGenerator::EmitMathLog(ZoneList<Expression*>* args) { | 2910 void FullCodeGenerator::EmitMathLog(ZoneList<Expression*>* args) { |
| 2909 // Load the argument on the stack and call the stub. | 2911 // Load the argument on the stack and call the stub. |
| 2910 TranscendentalCacheStub stub(TranscendentalCache::LOG); | 2912 TranscendentalCacheStub stub(TranscendentalCache::LOG, |
| 2913 TranscendentalCacheStub::TAGGED); |
| 2911 ASSERT(args->length() == 1); | 2914 ASSERT(args->length() == 1); |
| 2912 VisitForStackValue(args->at(0)); | 2915 VisitForStackValue(args->at(0)); |
| 2913 __ CallStub(&stub); | 2916 __ CallStub(&stub); |
| 2914 context()->Plug(rax); | 2917 context()->Plug(rax); |
| 2915 } | 2918 } |
| 2916 | 2919 |
| 2917 | 2920 |
| 2918 void FullCodeGenerator::EmitMathSqrt(ZoneList<Expression*>* args) { | 2921 void FullCodeGenerator::EmitMathSqrt(ZoneList<Expression*>* args) { |
| 2919 // Load the argument on the stack and call the runtime function. | 2922 // Load the argument on the stack and call the runtime function. |
| 2920 ASSERT(args->length() == 1); | 2923 ASSERT(args->length() == 1); |
| (...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3850 __ ret(0); | 3853 __ ret(0); |
| 3851 } | 3854 } |
| 3852 | 3855 |
| 3853 | 3856 |
| 3854 #undef __ | 3857 #undef __ |
| 3855 | 3858 |
| 3856 | 3859 |
| 3857 } } // namespace v8::internal | 3860 } } // namespace v8::internal |
| 3858 | 3861 |
| 3859 #endif // V8_TARGET_ARCH_X64 | 3862 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |