Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 6580032: X64 Crankshaft: Add untagged version of TranscendentalCacheStub to x64, enabl... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698