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 3642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3653 VisitForStackValue(args->at(0)); | 3653 VisitForStackValue(args->at(0)); |
3654 VisitForStackValue(args->at(1)); | 3654 VisitForStackValue(args->at(1)); |
3655 | 3655 |
3656 StringCompareStub stub; | 3656 StringCompareStub stub; |
3657 __ CallStub(&stub); | 3657 __ CallStub(&stub); |
3658 context()->Plug(eax); | 3658 context()->Plug(eax); |
3659 } | 3659 } |
3660 | 3660 |
3661 | 3661 |
3662 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { | 3662 void FullCodeGenerator::EmitMathLog(CallRuntime* expr) { |
3663 // Load the argument on the stack and call the stub. | 3663 // Load the argument on the stack and call the runtime function. |
3664 TranscendentalCacheStub stub(TranscendentalCache::LOG, | |
3665 TranscendentalCacheStub::TAGGED); | |
3666 ZoneList<Expression*>* args = expr->arguments(); | 3664 ZoneList<Expression*>* args = expr->arguments(); |
3667 ASSERT(args->length() == 1); | 3665 ASSERT(args->length() == 1); |
3668 VisitForStackValue(args->at(0)); | 3666 VisitForStackValue(args->at(0)); |
3669 __ CallStub(&stub); | 3667 __ CallRuntime(Runtime::kMath_log, 1); |
3670 context()->Plug(eax); | 3668 context()->Plug(eax); |
3671 } | 3669 } |
3672 | 3670 |
3673 | 3671 |
3674 void FullCodeGenerator::EmitMathSqrt(CallRuntime* expr) { | 3672 void FullCodeGenerator::EmitMathSqrt(CallRuntime* expr) { |
3675 // Load the argument on the stack and call the runtime function. | 3673 // Load the argument on the stack and call the runtime function. |
3676 ZoneList<Expression*>* args = expr->arguments(); | 3674 ZoneList<Expression*>* args = expr->arguments(); |
3677 ASSERT(args->length() == 1); | 3675 ASSERT(args->length() == 1); |
3678 VisitForStackValue(args->at(0)); | 3676 VisitForStackValue(args->at(0)); |
3679 __ CallRuntime(Runtime::kMath_sqrt, 1); | 3677 __ CallRuntime(Runtime::kMath_sqrt, 1); |
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4901 | 4899 |
4902 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4900 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4903 Assembler::target_address_at(call_target_address)); | 4901 Assembler::target_address_at(call_target_address)); |
4904 return OSR_AFTER_STACK_CHECK; | 4902 return OSR_AFTER_STACK_CHECK; |
4905 } | 4903 } |
4906 | 4904 |
4907 | 4905 |
4908 } } // namespace v8::internal | 4906 } } // namespace v8::internal |
4909 | 4907 |
4910 #endif // V8_TARGET_ARCH_IA32 | 4908 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |