| 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 3730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3741 VisitForStackValue(args->at(0)); | 3741 VisitForStackValue(args->at(0)); |
| 3742 VisitForStackValue(args->at(1)); | 3742 VisitForStackValue(args->at(1)); |
| 3743 | 3743 |
| 3744 StringCompareStub stub; | 3744 StringCompareStub stub; |
| 3745 __ CallStub(&stub); | 3745 __ CallStub(&stub); |
| 3746 context()->Plug(v0); | 3746 context()->Plug(v0); |
| 3747 } | 3747 } |
| 3748 | 3748 |
| 3749 | 3749 |
| 3750 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { | 3750 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { |
| 3751 // Load the argument on the stack and call the stub. | 3751 // Load the argument on the stack and call the runtime function. |
| 3752 TranscendentalCacheStub stub(TranscendentalCache::LOG, | |
| 3753 TranscendentalCacheStub::TAGGED); | |
| 3754 ZoneList<Expression*>* args = expr->arguments(); | 3752 ZoneList<Expression*>* args = expr->arguments(); |
| 3755 ASSERT(args->length() == 1); | 3753 ASSERT(args->length() == 1); |
| 3756 VisitForStackValue(args->at(0)); | 3754 VisitForStackValue(args->at(0)); |
| 3757 __ mov(a0, result_register()); // Stub requires parameter in a0 and on tos. | 3755 __ CallRuntime(Runtime::kMath_log, 1); |
| 3758 __ CallStub(&stub); | |
| 3759 context()->Plug(v0); | 3756 context()->Plug(v0); |
| 3760 } | 3757 } |
| 3761 | 3758 |
| 3762 | 3759 |
| 3763 void FullCodeGenerator::EmitMathSqrt(CallRuntime* expr) { | 3760 void FullCodeGenerator::EmitMathSqrt(CallRuntime* expr) { |
| 3764 // Load the argument on the stack and call the runtime function. | 3761 // Load the argument on the stack and call the runtime function. |
| 3765 ZoneList<Expression*>* args = expr->arguments(); | 3762 ZoneList<Expression*>* args = expr->arguments(); |
| 3766 ASSERT(args->length() == 1); | 3763 ASSERT(args->length() == 1); |
| 3767 VisitForStackValue(args->at(0)); | 3764 VisitForStackValue(args->at(0)); |
| 3768 __ CallRuntime(Runtime::kMath_sqrt, 1); | 3765 __ CallRuntime(Runtime::kMath_sqrt, 1); |
| (...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4962 Assembler::target_address_at(pc_immediate_load_address)) == | 4959 Assembler::target_address_at(pc_immediate_load_address)) == |
| 4963 reinterpret_cast<uint32_t>( | 4960 reinterpret_cast<uint32_t>( |
| 4964 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4961 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4965 return OSR_AFTER_STACK_CHECK; | 4962 return OSR_AFTER_STACK_CHECK; |
| 4966 } | 4963 } |
| 4967 | 4964 |
| 4968 | 4965 |
| 4969 } } // namespace v8::internal | 4966 } } // namespace v8::internal |
| 4970 | 4967 |
| 4971 #endif // V8_TARGET_ARCH_MIPS | 4968 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |