| 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 3680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3691 VisitForStackValue(args->at(0)); | 3691 VisitForStackValue(args->at(0)); |
| 3692 VisitForStackValue(args->at(1)); | 3692 VisitForStackValue(args->at(1)); |
| 3693 | 3693 |
| 3694 StringCompareStub stub; | 3694 StringCompareStub stub; |
| 3695 __ CallStub(&stub); | 3695 __ CallStub(&stub); |
| 3696 context()->Plug(r0); | 3696 context()->Plug(r0); |
| 3697 } | 3697 } |
| 3698 | 3698 |
| 3699 | 3699 |
| 3700 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { | 3700 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { |
| 3701 // Load the argument on the stack and call the stub. | 3701 // Load the argument on the stack and call the runtime function. |
| 3702 TranscendentalCacheStub stub(TranscendentalCache::LOG, | |
| 3703 TranscendentalCacheStub::TAGGED); | |
| 3704 ZoneList<Expression*>* args = expr->arguments(); | 3702 ZoneList<Expression*>* args = expr->arguments(); |
| 3705 ASSERT(args->length() == 1); | 3703 ASSERT(args->length() == 1); |
| 3706 VisitForStackValue(args->at(0)); | 3704 VisitForStackValue(args->at(0)); |
| 3707 __ CallStub(&stub); | 3705 __ CallRuntime(Runtime::kMath_log, 1); |
| 3708 context()->Plug(r0); | 3706 context()->Plug(r0); |
| 3709 } | 3707 } |
| 3710 | 3708 |
| 3711 | 3709 |
| 3712 void FullCodeGenerator::EmitMathSqrt(CallRuntime* expr) { | 3710 void FullCodeGenerator::EmitMathSqrt(CallRuntime* expr) { |
| 3713 // Load the argument on the stack and call the runtime function. | 3711 // Load the argument on the stack and call the runtime function. |
| 3714 ZoneList<Expression*>* args = expr->arguments(); | 3712 ZoneList<Expression*>* args = expr->arguments(); |
| 3715 ASSERT(args->length() == 1); | 3713 ASSERT(args->length() == 1); |
| 3716 VisitForStackValue(args->at(0)); | 3714 VisitForStackValue(args->at(0)); |
| 3717 __ CallRuntime(Runtime::kMath_sqrt, 1); | 3715 __ CallRuntime(Runtime::kMath_sqrt, 1); |
| (...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4913 ASSERT(Memory::uint32_at(interrupt_address_pointer) == | 4911 ASSERT(Memory::uint32_at(interrupt_address_pointer) == |
| 4914 reinterpret_cast<uint32_t>( | 4912 reinterpret_cast<uint32_t>( |
| 4915 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4913 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4916 return OSR_AFTER_STACK_CHECK; | 4914 return OSR_AFTER_STACK_CHECK; |
| 4917 } | 4915 } |
| 4918 | 4916 |
| 4919 | 4917 |
| 4920 } } // namespace v8::internal | 4918 } } // namespace v8::internal |
| 4921 | 4919 |
| 4922 #endif // V8_TARGET_ARCH_ARM | 4920 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |