| 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 3064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3075 TranscendentalCacheStub stub(TranscendentalCache::COS, | 3075 TranscendentalCacheStub stub(TranscendentalCache::COS, |
| 3076 TranscendentalCacheStub::TAGGED); | 3076 TranscendentalCacheStub::TAGGED); |
| 3077 ZoneList<Expression*>* args = expr->arguments(); | 3077 ZoneList<Expression*>* args = expr->arguments(); |
| 3078 ASSERT(args->length() == 1); | 3078 ASSERT(args->length() == 1); |
| 3079 VisitForStackValue(args->at(0)); | 3079 VisitForStackValue(args->at(0)); |
| 3080 __ CallStub(&stub); | 3080 __ CallStub(&stub); |
| 3081 context()->Plug(eax); | 3081 context()->Plug(eax); |
| 3082 } | 3082 } |
| 3083 | 3083 |
| 3084 | 3084 |
| 3085 void FullCodeGenerator::EmitMathTan(CallRuntime* expr) { |
| 3086 // Load the argument on the stack and call the stub. |
| 3087 TranscendentalCacheStub stub(TranscendentalCache::TAN, |
| 3088 TranscendentalCacheStub::TAGGED); |
| 3089 ZoneList<Expression*>* args = expr->arguments(); |
| 3090 ASSERT(args->length() == 1); |
| 3091 VisitForStackValue(args->at(0)); |
| 3092 __ CallStub(&stub); |
| 3093 context()->Plug(eax); |
| 3094 } |
| 3095 |
| 3096 |
| 3085 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { | 3097 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { |
| 3086 // Load the argument on the stack and call the stub. | 3098 // Load the argument on the stack and call the stub. |
| 3087 TranscendentalCacheStub stub(TranscendentalCache::LOG, | 3099 TranscendentalCacheStub stub(TranscendentalCache::LOG, |
| 3088 TranscendentalCacheStub::TAGGED); | 3100 TranscendentalCacheStub::TAGGED); |
| 3089 ZoneList<Expression*>* args = expr->arguments(); | 3101 ZoneList<Expression*>* args = expr->arguments(); |
| 3090 ASSERT(args->length() == 1); | 3102 ASSERT(args->length() == 1); |
| 3091 VisitForStackValue(args->at(0)); | 3103 VisitForStackValue(args->at(0)); |
| 3092 __ CallStub(&stub); | 3104 __ CallStub(&stub); |
| 3093 context()->Plug(eax); | 3105 context()->Plug(eax); |
| 3094 } | 3106 } |
| (...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4353 *context_length = 0; | 4365 *context_length = 0; |
| 4354 return previous_; | 4366 return previous_; |
| 4355 } | 4367 } |
| 4356 | 4368 |
| 4357 | 4369 |
| 4358 #undef __ | 4370 #undef __ |
| 4359 | 4371 |
| 4360 } } // namespace v8::internal | 4372 } } // namespace v8::internal |
| 4361 | 4373 |
| 4362 #endif // V8_TARGET_ARCH_IA32 | 4374 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |