OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
7 | 7 |
8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 | 9 |
10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
(...skipping 5540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5551 __ b(&try_sqrt, VC); // // Neither 'exp' nor 'base' is NaN. | 5551 __ b(&try_sqrt, VC); // // Neither 'exp' nor 'base' is NaN. |
5552 | 5552 |
5553 __ Bind(&return_nan); | 5553 __ Bind(&return_nan); |
5554 __ LoadDImmediate(result, NAN, temp); | 5554 __ LoadDImmediate(result, NAN, temp); |
5555 __ b(&skip_call); | 5555 __ b(&skip_call); |
5556 | 5556 |
5557 Label do_pow, return_zero; | 5557 Label do_pow, return_zero; |
5558 __ Bind(&try_sqrt); | 5558 __ Bind(&try_sqrt); |
5559 | 5559 |
5560 // Before calling pow, check if we could use sqrt instead of pow. | 5560 // Before calling pow, check if we could use sqrt instead of pow. |
5561 __ LoadDImmediate(result, -INFINITY, temp); | 5561 __ LoadDImmediate(result, kNegInfinity, temp); |
5562 | 5562 |
5563 // base == -Infinity -> call pow; | 5563 // base == -Infinity -> call pow; |
5564 __ vcmpd(saved_base, result); | 5564 __ vcmpd(saved_base, result); |
5565 __ b(&do_pow, EQ); | 5565 __ b(&do_pow, EQ); |
5566 | 5566 |
5567 // exponent == 0.5 ? | 5567 // exponent == 0.5 ? |
5568 __ LoadDImmediate(result, 0.5, temp); | 5568 __ LoadDImmediate(result, 0.5, temp); |
5569 __ vcmpd(exp, result); | 5569 __ vcmpd(exp, result); |
5570 __ b(&do_pow, NE); | 5570 __ b(&do_pow, NE); |
5571 | 5571 |
(...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7031 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 7031 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
7032 #if defined(DEBUG) | 7032 #if defined(DEBUG) |
7033 __ LoadImmediate(R4, kInvalidObjectPointer); | 7033 __ LoadImmediate(R4, kInvalidObjectPointer); |
7034 __ LoadImmediate(R5, kInvalidObjectPointer); | 7034 __ LoadImmediate(R5, kInvalidObjectPointer); |
7035 #endif | 7035 #endif |
7036 } | 7036 } |
7037 | 7037 |
7038 } // namespace dart | 7038 } // namespace dart |
7039 | 7039 |
7040 #endif // defined TARGET_ARCH_ARM | 7040 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |