| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 3610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3621 VisitForStackValue(args->at(0)); | 3621 VisitForStackValue(args->at(0)); |
| 3622 VisitForStackValue(args->at(1)); | 3622 VisitForStackValue(args->at(1)); |
| 3623 | 3623 |
| 3624 StringCompareStub stub; | 3624 StringCompareStub stub; |
| 3625 __ CallStub(&stub); | 3625 __ CallStub(&stub); |
| 3626 context()->Plug(rax); | 3626 context()->Plug(rax); |
| 3627 } | 3627 } |
| 3628 | 3628 |
| 3629 | 3629 |
| 3630 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { | 3630 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { |
| 3631 // Load the argument on the stack and call the stub. | 3631 // Load the argument on the stack and call the runtime function. |
| 3632 TranscendentalCacheStub stub(TranscendentalCache::LOG, | |
| 3633 TranscendentalCacheStub::TAGGED); | |
| 3634 ZoneList<Expression*>* args = expr->arguments(); | 3632 ZoneList<Expression*>* args = expr->arguments(); |
| 3635 ASSERT(args->length() == 1); | 3633 ASSERT(args->length() == 1); |
| 3636 VisitForStackValue(args->at(0)); | 3634 VisitForStackValue(args->at(0)); |
| 3637 __ CallStub(&stub); | 3635 __ CallRuntime(Runtime::kMath_log, 1); |
| 3638 context()->Plug(rax); | 3636 context()->Plug(rax); |
| 3639 } | 3637 } |
| 3640 | 3638 |
| 3641 | 3639 |
| 3642 void FullCodeGenerator::EmitMathSqrt(CallRuntime* expr) { | 3640 void FullCodeGenerator::EmitMathSqrt(CallRuntime* expr) { |
| 3643 // Load the argument on the stack and call the runtime function. | 3641 // Load the argument on the stack and call the runtime function. |
| 3644 ZoneList<Expression*>* args = expr->arguments(); | 3642 ZoneList<Expression*>* args = expr->arguments(); |
| 3645 ASSERT(args->length() == 1); | 3643 ASSERT(args->length() == 1); |
| 3646 VisitForStackValue(args->at(0)); | 3644 VisitForStackValue(args->at(0)); |
| 3647 __ CallRuntime(Runtime::kMath_sqrt, 1); | 3645 __ CallRuntime(Runtime::kMath_sqrt, 1); |
| (...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4894 | 4892 |
| 4895 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4893 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 4896 Assembler::target_address_at(call_target_address)); | 4894 Assembler::target_address_at(call_target_address)); |
| 4897 return OSR_AFTER_STACK_CHECK; | 4895 return OSR_AFTER_STACK_CHECK; |
| 4898 } | 4896 } |
| 4899 | 4897 |
| 4900 | 4898 |
| 4901 } } // namespace v8::internal | 4899 } } // namespace v8::internal |
| 4902 | 4900 |
| 4903 #endif // V8_TARGET_ARCH_X64 | 4901 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |