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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 __ Move(input, a0, a1); | 87 __ Move(input, a0, a1); |
88 } | 88 } |
89 __ Push(temp3, temp2, temp1); | 89 __ Push(temp3, temp2, temp1); |
90 MathExpGenerator::EmitMathExp( | 90 MathExpGenerator::EmitMathExp( |
91 &masm, input, result, double_scratch1, double_scratch2, | 91 &masm, input, result, double_scratch1, double_scratch2, |
92 temp1, temp2, temp3); | 92 temp1, temp2, temp3); |
93 __ Pop(temp3, temp2, temp1); | 93 __ Pop(temp3, temp2, temp1); |
94 if (!IsMipsSoftFloatABI) { | 94 if (!IsMipsSoftFloatABI) { |
95 // Result is already in f0, nothing to do. | 95 // Result is already in f0, nothing to do. |
96 } else { | 96 } else { |
97 __ Move(a0, a1, result); | 97 __ Move(v0, v1, result); |
98 } | 98 } |
99 __ Ret(); | 99 __ Ret(); |
100 } | 100 } |
101 | 101 |
102 CodeDesc desc; | 102 CodeDesc desc; |
103 masm.GetCode(&desc); | 103 masm.GetCode(&desc); |
104 ASSERT(!RelocInfo::RequiresRelocation(desc)); | 104 ASSERT(!RelocInfo::RequiresRelocation(desc)); |
105 | 105 |
106 CPU::FlushICache(buffer, actual_size); | 106 CPU::FlushICache(buffer, actual_size); |
107 OS::ProtectCode(buffer, actual_size); | 107 OS::ProtectCode(buffer, actual_size); |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); | 721 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); |
722 } | 722 } |
723 } | 723 } |
724 | 724 |
725 | 725 |
726 #undef __ | 726 #undef __ |
727 | 727 |
728 } } // namespace v8::internal | 728 } } // namespace v8::internal |
729 | 729 |
730 #endif // V8_TARGET_ARCH_MIPS | 730 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |