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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(a0, a1, 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 | 105 |
105 CPU::FlushICache(buffer, actual_size); | 106 CPU::FlushICache(buffer, actual_size); |
106 OS::ProtectCode(buffer, actual_size); | 107 OS::ProtectCode(buffer, actual_size); |
107 | 108 |
108 #if !defined(USE_SIMULATOR) | 109 #if !defined(USE_SIMULATOR) |
109 return FUNCTION_CAST<UnaryMathFunction>(buffer); | 110 return FUNCTION_CAST<UnaryMathFunction>(buffer); |
110 #else | 111 #else |
111 fast_exp_mips_machine_code = buffer; | 112 fast_exp_mips_machine_code = buffer; |
112 return &fast_exp_simulator; | 113 return &fast_exp_simulator; |
113 #endif | 114 #endif |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); | 720 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); |
720 } | 721 } |
721 } | 722 } |
722 | 723 |
723 | 724 |
724 #undef __ | 725 #undef __ |
725 | 726 |
726 } } // namespace v8::internal | 727 } } // namespace v8::internal |
727 | 728 |
728 #endif // V8_TARGET_ARCH_MIPS | 729 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |