| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/macro-assembler.h" | 10 #include "src/macro-assembler.h" |
| (...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 __ sub_d(double_scratch1, double_scratch1, input); | 1026 __ sub_d(double_scratch1, double_scratch1, input); |
| 1027 __ sub_d(result, result, double_scratch1); | 1027 __ sub_d(result, result, double_scratch1); |
| 1028 __ mul_d(double_scratch2, double_scratch1, double_scratch1); | 1028 __ mul_d(double_scratch2, double_scratch1, double_scratch1); |
| 1029 __ mul_d(result, result, double_scratch2); | 1029 __ mul_d(result, result, double_scratch2); |
| 1030 __ ldc1(double_scratch2, ExpConstant(7, temp3)); | 1030 __ ldc1(double_scratch2, ExpConstant(7, temp3)); |
| 1031 __ mul_d(result, result, double_scratch2); | 1031 __ mul_d(result, result, double_scratch2); |
| 1032 __ sub_d(result, result, double_scratch1); | 1032 __ sub_d(result, result, double_scratch1); |
| 1033 // Mov 1 in double_scratch2 as math_exp_constants_array[8] == 1. | 1033 // Mov 1 in double_scratch2 as math_exp_constants_array[8] == 1. |
| 1034 DCHECK(*reinterpret_cast<double*> | 1034 DCHECK(*reinterpret_cast<double*> |
| 1035 (ExternalReference::math_exp_constants(8).address()) == 1); | 1035 (ExternalReference::math_exp_constants(8).address()) == 1); |
| 1036 __ Move(double_scratch2, 1); | 1036 __ Move(double_scratch2, 1.); |
| 1037 __ add_d(result, result, double_scratch2); | 1037 __ add_d(result, result, double_scratch2); |
| 1038 __ dsrl(temp1, temp2, 11); | 1038 __ dsrl(temp1, temp2, 11); |
| 1039 __ Ext(temp2, temp2, 0, 11); | 1039 __ Ext(temp2, temp2, 0, 11); |
| 1040 __ Daddu(temp1, temp1, Operand(0x3ff)); | 1040 __ Daddu(temp1, temp1, Operand(0x3ff)); |
| 1041 | 1041 |
| 1042 // Must not call ExpConstant() after overwriting temp3! | 1042 // Must not call ExpConstant() after overwriting temp3! |
| 1043 __ li(temp3, Operand(ExternalReference::math_exp_log_table())); | 1043 __ li(temp3, Operand(ExternalReference::math_exp_log_table())); |
| 1044 __ dsll(at, temp2, 3); | 1044 __ dsll(at, temp2, 3); |
| 1045 __ Daddu(temp3, temp3, Operand(at)); | 1045 __ Daddu(temp3, temp3, Operand(at)); |
| 1046 __ lwu(temp2, MemOperand(temp3, 0)); | 1046 __ lwu(temp2, MemOperand(temp3, 0)); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 patcher.masm()->nop(); // Pad the empty space. | 1147 patcher.masm()->nop(); // Pad the empty space. |
| 1148 } | 1148 } |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 | 1151 |
| 1152 #undef __ | 1152 #undef __ |
| 1153 | 1153 |
| 1154 } } // namespace v8::internal | 1154 } } // namespace v8::internal |
| 1155 | 1155 |
| 1156 #endif // V8_TARGET_ARCH_MIPS64 | 1156 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |