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 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 Register temp3) { | 981 Register temp3) { |
982 ASSERT(!input.is(result)); | 982 ASSERT(!input.is(result)); |
983 ASSERT(!input.is(double_scratch1)); | 983 ASSERT(!input.is(double_scratch1)); |
984 ASSERT(!input.is(double_scratch2)); | 984 ASSERT(!input.is(double_scratch2)); |
985 ASSERT(!result.is(double_scratch1)); | 985 ASSERT(!result.is(double_scratch1)); |
986 ASSERT(!result.is(double_scratch2)); | 986 ASSERT(!result.is(double_scratch2)); |
987 ASSERT(!double_scratch1.is(double_scratch2)); | 987 ASSERT(!double_scratch1.is(double_scratch2)); |
988 ASSERT(!temp1.is(temp2)); | 988 ASSERT(!temp1.is(temp2)); |
989 ASSERT(!temp1.is(temp3)); | 989 ASSERT(!temp1.is(temp3)); |
990 ASSERT(!temp2.is(temp3)); | 990 ASSERT(!temp2.is(temp3)); |
| 991 // Serializer does not know how to encode references to math_exp_constants |
| 992 // table. See ExternalReferenceTable::PopulateTable. |
| 993 ASSERT(!masm->serializer_enabled()); |
991 ASSERT(ExternalReference::math_exp_constants(0).address() != NULL); | 994 ASSERT(ExternalReference::math_exp_constants(0).address() != NULL); |
992 | 995 |
993 Label zero, infinity, done; | 996 Label zero, infinity, done; |
994 __ li(temp3, Operand(ExternalReference::math_exp_constants(0))); | 997 __ li(temp3, Operand(ExternalReference::math_exp_constants(0))); |
995 | 998 |
996 __ ldc1(double_scratch1, ExpConstant(0, temp3)); | 999 __ ldc1(double_scratch1, ExpConstant(0, temp3)); |
997 __ BranchF(&zero, NULL, ge, double_scratch1, input); | 1000 __ BranchF(&zero, NULL, ge, double_scratch1, input); |
998 | 1001 |
999 __ ldc1(double_scratch2, ExpConstant(1, temp3)); | 1002 __ ldc1(double_scratch2, ExpConstant(1, temp3)); |
1000 __ BranchF(&infinity, NULL, ge, input, double_scratch2); | 1003 __ BranchF(&infinity, NULL, ge, input, double_scratch2); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 patcher.masm()->nop(); // Pad the empty space. | 1135 patcher.masm()->nop(); // Pad the empty space. |
1133 } | 1136 } |
1134 } | 1137 } |
1135 | 1138 |
1136 | 1139 |
1137 #undef __ | 1140 #undef __ |
1138 | 1141 |
1139 } } // namespace v8::internal | 1142 } } // namespace v8::internal |
1140 | 1143 |
1141 #endif // V8_TARGET_ARCH_MIPS64 | 1144 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |