| 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 3183 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3194                                TranscendentalCacheStub::TAGGED); | 3194                                TranscendentalCacheStub::TAGGED); | 
| 3195   ZoneList<Expression*>* args = expr->arguments(); | 3195   ZoneList<Expression*>* args = expr->arguments(); | 
| 3196   ASSERT(args->length() == 1); | 3196   ASSERT(args->length() == 1); | 
| 3197   VisitForStackValue(args->at(0)); | 3197   VisitForStackValue(args->at(0)); | 
| 3198   __ mov(a0, result_register());  // Stub requires parameter in a0 and on tos. | 3198   __ mov(a0, result_register());  // Stub requires parameter in a0 and on tos. | 
| 3199   __ CallStub(&stub); | 3199   __ CallStub(&stub); | 
| 3200   context()->Plug(v0); | 3200   context()->Plug(v0); | 
| 3201 } | 3201 } | 
| 3202 | 3202 | 
| 3203 | 3203 | 
|  | 3204 void FullCodeGenerator::EmitMathTan(CallRuntime* expr) { | 
|  | 3205   // Load the argument on the stack and call the stub. | 
|  | 3206   TranscendentalCacheStub stub(TranscendentalCache::TAN, | 
|  | 3207                                TranscendentalCacheStub::TAGGED); | 
|  | 3208   ZoneList<Expression*>* args = expr->arguments(); | 
|  | 3209   ASSERT(args->length() == 1); | 
|  | 3210   VisitForStackValue(args->at(0)); | 
|  | 3211   __ mov(a0, result_register());  // Stub requires parameter in a0 and on tos. | 
|  | 3212   __ CallStub(&stub); | 
|  | 3213   context()->Plug(v0); | 
|  | 3214 } | 
|  | 3215 | 
|  | 3216 | 
| 3204 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { | 3217 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { | 
| 3205   // Load the argument on the stack and call the stub. | 3218   // Load the argument on the stack and call the stub. | 
| 3206   TranscendentalCacheStub stub(TranscendentalCache::LOG, | 3219   TranscendentalCacheStub stub(TranscendentalCache::LOG, | 
| 3207                                TranscendentalCacheStub::TAGGED); | 3220                                TranscendentalCacheStub::TAGGED); | 
| 3208   ZoneList<Expression*>* args = expr->arguments(); | 3221   ZoneList<Expression*>* args = expr->arguments(); | 
| 3209   ASSERT(args->length() == 1); | 3222   ASSERT(args->length() == 1); | 
| 3210   VisitForStackValue(args->at(0)); | 3223   VisitForStackValue(args->at(0)); | 
| 3211   __ mov(a0, result_register());  // Stub requires parameter in a0 and on tos. | 3224   __ mov(a0, result_register());  // Stub requires parameter in a0 and on tos. | 
| 3212   __ CallStub(&stub); | 3225   __ CallStub(&stub); | 
| 3213   context()->Plug(v0); | 3226   context()->Plug(v0); | 
| (...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4438   *context_length = 0; | 4451   *context_length = 0; | 
| 4439   return previous_; | 4452   return previous_; | 
| 4440 } | 4453 } | 
| 4441 | 4454 | 
| 4442 | 4455 | 
| 4443 #undef __ | 4456 #undef __ | 
| 4444 | 4457 | 
| 4445 } }  // namespace v8::internal | 4458 } }  // namespace v8::internal | 
| 4446 | 4459 | 
| 4447 #endif  // V8_TARGET_ARCH_MIPS | 4460 #endif  // V8_TARGET_ARCH_MIPS | 
| OLD | NEW | 
|---|