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

Side by Side Diff: src/x64/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, 10 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/code-stubs-x64.cc ('k') | src/x64/full-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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 7012 matching lines...) Expand 10 before | Expand all | Expand 10 after
7023 answer = frame()->CallRuntime(Runtime::kMath_pow_cfunction, 2); 7023 answer = frame()->CallRuntime(Runtime::kMath_pow_cfunction, 2);
7024 7024
7025 done.Bind(&answer); 7025 done.Bind(&answer);
7026 frame()->Push(&answer); 7026 frame()->Push(&answer);
7027 } 7027 }
7028 7028
7029 7029
7030 void CodeGenerator::GenerateMathSin(ZoneList<Expression*>* args) { 7030 void CodeGenerator::GenerateMathSin(ZoneList<Expression*>* args) {
7031 ASSERT_EQ(args->length(), 1); 7031 ASSERT_EQ(args->length(), 1);
7032 Load(args->at(0)); 7032 Load(args->at(0));
7033 TranscendentalCacheStub stub(TranscendentalCache::SIN); 7033 TranscendentalCacheStub stub(TranscendentalCache::SIN,
7034 TranscendentalCacheStub::TAGGED);
7034 Result result = frame_->CallStub(&stub, 1); 7035 Result result = frame_->CallStub(&stub, 1);
7035 frame_->Push(&result); 7036 frame_->Push(&result);
7036 } 7037 }
7037 7038
7038 7039
7039 void CodeGenerator::GenerateMathCos(ZoneList<Expression*>* args) { 7040 void CodeGenerator::GenerateMathCos(ZoneList<Expression*>* args) {
7040 ASSERT_EQ(args->length(), 1); 7041 ASSERT_EQ(args->length(), 1);
7041 Load(args->at(0)); 7042 Load(args->at(0));
7042 TranscendentalCacheStub stub(TranscendentalCache::COS); 7043 TranscendentalCacheStub stub(TranscendentalCache::COS,
7044 TranscendentalCacheStub::TAGGED);
7043 Result result = frame_->CallStub(&stub, 1); 7045 Result result = frame_->CallStub(&stub, 1);
7044 frame_->Push(&result); 7046 frame_->Push(&result);
7045 } 7047 }
7046 7048
7047 7049
7048 void CodeGenerator::GenerateMathLog(ZoneList<Expression*>* args) { 7050 void CodeGenerator::GenerateMathLog(ZoneList<Expression*>* args) {
7049 ASSERT_EQ(args->length(), 1); 7051 ASSERT_EQ(args->length(), 1);
7050 Load(args->at(0)); 7052 Load(args->at(0));
7051 TranscendentalCacheStub stub(TranscendentalCache::LOG); 7053 TranscendentalCacheStub stub(TranscendentalCache::LOG,
7054 TranscendentalCacheStub::TAGGED);
7052 Result result = frame_->CallStub(&stub, 1); 7055 Result result = frame_->CallStub(&stub, 1);
7053 frame_->Push(&result); 7056 frame_->Push(&result);
7054 } 7057 }
7055 7058
7056 7059
7057 // Generates the Math.sqrt method. Please note - this function assumes that 7060 // Generates the Math.sqrt method. Please note - this function assumes that
7058 // the callsite has executed ToNumber on the argument. 7061 // the callsite has executed ToNumber on the argument.
7059 void CodeGenerator::GenerateMathSqrt(ZoneList<Expression*>* args) { 7062 void CodeGenerator::GenerateMathSqrt(ZoneList<Expression*>* args) {
7060 ASSERT(args->length() == 1); 7063 ASSERT(args->length() == 1);
7061 Load(args->at(0)); 7064 Load(args->at(0));
(...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after
8812 } 8815 }
8813 8816
8814 #endif 8817 #endif
8815 8818
8816 8819
8817 #undef __ 8820 #undef __
8818 8821
8819 } } // namespace v8::internal 8822 } } // namespace v8::internal
8820 8823
8821 #endif // V8_TARGET_ARCH_X64 8824 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698