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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 8700004: Implement Math.tan in generated code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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
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 3152 matching lines...) Expand 10 before | Expand all | Expand 10 after
3163 3163
3164 3164
3165 void LCodeGen::DoMathLog(LUnaryMathOperation* instr) { 3165 void LCodeGen::DoMathLog(LUnaryMathOperation* instr) {
3166 ASSERT(ToDoubleRegister(instr->result()).is(d2)); 3166 ASSERT(ToDoubleRegister(instr->result()).is(d2));
3167 TranscendentalCacheStub stub(TranscendentalCache::LOG, 3167 TranscendentalCacheStub stub(TranscendentalCache::LOG,
3168 TranscendentalCacheStub::UNTAGGED); 3168 TranscendentalCacheStub::UNTAGGED);
3169 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 3169 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3170 } 3170 }
3171 3171
3172 3172
3173 void LCodeGen::DoMathTan(LUnaryMathOperation* instr) {
3174 ASSERT(ToDoubleRegister(instr->result()).is(d2));
3175 TranscendentalCacheStub stub(TranscendentalCache::TAN,
3176 TranscendentalCacheStub::UNTAGGED);
3177 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3178 }
3179
3180
3173 void LCodeGen::DoMathCos(LUnaryMathOperation* instr) { 3181 void LCodeGen::DoMathCos(LUnaryMathOperation* instr) {
3174 ASSERT(ToDoubleRegister(instr->result()).is(d2)); 3182 ASSERT(ToDoubleRegister(instr->result()).is(d2));
3175 TranscendentalCacheStub stub(TranscendentalCache::COS, 3183 TranscendentalCacheStub stub(TranscendentalCache::COS,
3176 TranscendentalCacheStub::UNTAGGED); 3184 TranscendentalCacheStub::UNTAGGED);
3177 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 3185 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3178 } 3186 }
3179 3187
3180 3188
3181 void LCodeGen::DoMathSin(LUnaryMathOperation* instr) { 3189 void LCodeGen::DoMathSin(LUnaryMathOperation* instr) {
3182 ASSERT(ToDoubleRegister(instr->result()).is(d2)); 3190 ASSERT(ToDoubleRegister(instr->result()).is(d2));
(...skipping 19 matching lines...) Expand all
3202 break; 3210 break;
3203 case kMathPowHalf: 3211 case kMathPowHalf:
3204 DoMathPowHalf(instr); 3212 DoMathPowHalf(instr);
3205 break; 3213 break;
3206 case kMathCos: 3214 case kMathCos:
3207 DoMathCos(instr); 3215 DoMathCos(instr);
3208 break; 3216 break;
3209 case kMathSin: 3217 case kMathSin:
3210 DoMathSin(instr); 3218 DoMathSin(instr);
3211 break; 3219 break;
3220 case kMathTan:
3221 DoMathTan(instr);
3222 break;
3212 case kMathLog: 3223 case kMathLog:
3213 DoMathLog(instr); 3224 DoMathLog(instr);
3214 break; 3225 break;
3215 default: 3226 default:
3216 Abort("Unimplemented type of LUnaryMathOperation."); 3227 Abort("Unimplemented type of LUnaryMathOperation.");
3217 UNREACHABLE(); 3228 UNREACHABLE();
3218 } 3229 }
3219 } 3230 }
3220 3231
3221 3232
(...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after
4688 ASSERT(osr_pc_offset_ == -1); 4699 ASSERT(osr_pc_offset_ == -1);
4689 osr_pc_offset_ = masm()->pc_offset(); 4700 osr_pc_offset_ = masm()->pc_offset();
4690 } 4701 }
4691 4702
4692 4703
4693 4704
4694 4705
4695 #undef __ 4706 #undef __
4696 4707
4697 } } // namespace v8::internal 4708 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698