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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
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 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 DCHECK(!input.is(result)); | 1092 DCHECK(!input.is(result)); |
1093 DCHECK(!input.is(double_scratch1)); | 1093 DCHECK(!input.is(double_scratch1)); |
1094 DCHECK(!input.is(double_scratch2)); | 1094 DCHECK(!input.is(double_scratch2)); |
1095 DCHECK(!result.is(double_scratch1)); | 1095 DCHECK(!result.is(double_scratch1)); |
1096 DCHECK(!result.is(double_scratch2)); | 1096 DCHECK(!result.is(double_scratch2)); |
1097 DCHECK(!double_scratch1.is(double_scratch2)); | 1097 DCHECK(!double_scratch1.is(double_scratch2)); |
1098 DCHECK(!temp1.is(temp2)); | 1098 DCHECK(!temp1.is(temp2)); |
1099 DCHECK(!temp1.is(temp3)); | 1099 DCHECK(!temp1.is(temp3)); |
1100 DCHECK(!temp2.is(temp3)); | 1100 DCHECK(!temp2.is(temp3)); |
1101 DCHECK(ExternalReference::math_exp_constants(0).address() != NULL); | 1101 DCHECK(ExternalReference::math_exp_constants(0).address() != NULL); |
| 1102 DCHECK(!masm->serializer_enabled()); // External references not serializable. |
1102 | 1103 |
1103 Label zero, infinity, done; | 1104 Label zero, infinity, done; |
1104 | 1105 |
1105 __ li(temp3, Operand(ExternalReference::math_exp_constants(0))); | 1106 __ li(temp3, Operand(ExternalReference::math_exp_constants(0))); |
1106 | 1107 |
1107 __ ldc1(double_scratch1, ExpConstant(0, temp3)); | 1108 __ ldc1(double_scratch1, ExpConstant(0, temp3)); |
1108 __ BranchF(&zero, NULL, ge, double_scratch1, input); | 1109 __ BranchF(&zero, NULL, ge, double_scratch1, input); |
1109 | 1110 |
1110 __ ldc1(double_scratch2, ExpConstant(1, temp3)); | 1111 __ ldc1(double_scratch2, ExpConstant(1, temp3)); |
1111 __ BranchF(&infinity, NULL, ge, input, double_scratch2); | 1112 __ BranchF(&infinity, NULL, ge, input, double_scratch2); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1241 patcher.masm()->nop(); // Pad the empty space. | 1242 patcher.masm()->nop(); // Pad the empty space. |
1242 } | 1243 } |
1243 } | 1244 } |
1244 | 1245 |
1245 | 1246 |
1246 #undef __ | 1247 #undef __ |
1247 | 1248 |
1248 } } // namespace v8::internal | 1249 } } // namespace v8::internal |
1249 | 1250 |
1250 #endif // V8_TARGET_ARCH_MIPS | 1251 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |