| 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 2997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3008 TranscendentalCacheStub stub(TranscendentalCache::COS, | 3008 TranscendentalCacheStub stub(TranscendentalCache::COS, |
| 3009 TranscendentalCacheStub::TAGGED); | 3009 TranscendentalCacheStub::TAGGED); |
| 3010 ZoneList<Expression*>* args = expr->arguments(); | 3010 ZoneList<Expression*>* args = expr->arguments(); |
| 3011 ASSERT(args->length() == 1); | 3011 ASSERT(args->length() == 1); |
| 3012 VisitForStackValue(args->at(0)); | 3012 VisitForStackValue(args->at(0)); |
| 3013 __ CallStub(&stub); | 3013 __ CallStub(&stub); |
| 3014 context()->Plug(rax); | 3014 context()->Plug(rax); |
| 3015 } | 3015 } |
| 3016 | 3016 |
| 3017 | 3017 |
| 3018 void FullCodeGenerator::EmitMathTan(CallRuntime* expr) { |
| 3019 // Load the argument on the stack and call the stub. |
| 3020 TranscendentalCacheStub stub(TranscendentalCache::TAN, |
| 3021 TranscendentalCacheStub::TAGGED); |
| 3022 ZoneList<Expression*>* args = expr->arguments(); |
| 3023 ASSERT(args->length() == 1); |
| 3024 VisitForStackValue(args->at(0)); |
| 3025 __ CallStub(&stub); |
| 3026 context()->Plug(rax); |
| 3027 } |
| 3028 |
| 3029 |
| 3018 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { | 3030 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { |
| 3019 // Load the argument on the stack and call the stub. | 3031 // Load the argument on the stack and call the stub. |
| 3020 TranscendentalCacheStub stub(TranscendentalCache::LOG, | 3032 TranscendentalCacheStub stub(TranscendentalCache::LOG, |
| 3021 TranscendentalCacheStub::TAGGED); | 3033 TranscendentalCacheStub::TAGGED); |
| 3022 ZoneList<Expression*>* args = expr->arguments(); | 3034 ZoneList<Expression*>* args = expr->arguments(); |
| 3023 ASSERT(args->length() == 1); | 3035 ASSERT(args->length() == 1); |
| 3024 VisitForStackValue(args->at(0)); | 3036 VisitForStackValue(args->at(0)); |
| 3025 __ CallStub(&stub); | 3037 __ CallStub(&stub); |
| 3026 context()->Plug(rax); | 3038 context()->Plug(rax); |
| 3027 } | 3039 } |
| (...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4319 *context_length = 0; | 4331 *context_length = 0; |
| 4320 return previous_; | 4332 return previous_; |
| 4321 } | 4333 } |
| 4322 | 4334 |
| 4323 | 4335 |
| 4324 #undef __ | 4336 #undef __ |
| 4325 | 4337 |
| 4326 } } // namespace v8::internal | 4338 } } // namespace v8::internal |
| 4327 | 4339 |
| 4328 #endif // V8_TARGET_ARCH_X64 | 4340 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |