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/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
6 | 6 |
7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
8 #include "vm/bootstrap.h" | 8 #include "vm/bootstrap.h" |
9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
10 #include "vm/constant_propagator.h" | 10 #include "vm/constant_propagator.h" |
(...skipping 3532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3543 case MethodRecognizer::kDoubleFloor: | 3543 case MethodRecognizer::kDoubleFloor: |
3544 case MethodRecognizer::kDoubleCeil: { | 3544 case MethodRecognizer::kDoubleCeil: { |
3545 ASSERT(!TargetCPUFeatures::double_truncate_round_supported()); | 3545 ASSERT(!TargetCPUFeatures::double_truncate_round_supported()); |
3546 return 1; | 3546 return 1; |
3547 } | 3547 } |
3548 case MethodRecognizer::kDoubleRound: | 3548 case MethodRecognizer::kDoubleRound: |
3549 case MethodRecognizer::kMathAtan: | 3549 case MethodRecognizer::kMathAtan: |
3550 case MethodRecognizer::kMathTan: | 3550 case MethodRecognizer::kMathTan: |
3551 case MethodRecognizer::kMathAcos: | 3551 case MethodRecognizer::kMathAcos: |
3552 case MethodRecognizer::kMathAsin: | 3552 case MethodRecognizer::kMathAsin: |
| 3553 case MethodRecognizer::kMathSin: |
3553 return 1; | 3554 return 1; |
3554 case MethodRecognizer::kDoubleMod: | 3555 case MethodRecognizer::kDoubleMod: |
3555 case MethodRecognizer::kMathDoublePow: | 3556 case MethodRecognizer::kMathDoublePow: |
3556 case MethodRecognizer::kMathAtan2: | 3557 case MethodRecognizer::kMathAtan2: |
3557 return 2; | 3558 return 2; |
3558 default: | 3559 default: |
3559 UNREACHABLE(); | 3560 UNREACHABLE(); |
3560 } | 3561 } |
3561 return 0; | 3562 return 0; |
3562 } | 3563 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3629 case MethodRecognizer::kDoubleCeil: | 3630 case MethodRecognizer::kDoubleCeil: |
3630 return kLibcCeilRuntimeEntry; | 3631 return kLibcCeilRuntimeEntry; |
3631 case MethodRecognizer::kMathDoublePow: | 3632 case MethodRecognizer::kMathDoublePow: |
3632 return kLibcPowRuntimeEntry; | 3633 return kLibcPowRuntimeEntry; |
3633 case MethodRecognizer::kDoubleMod: | 3634 case MethodRecognizer::kDoubleMod: |
3634 return kDartModuloRuntimeEntry; | 3635 return kDartModuloRuntimeEntry; |
3635 case MethodRecognizer::kMathTan: | 3636 case MethodRecognizer::kMathTan: |
3636 return kLibcTanRuntimeEntry; | 3637 return kLibcTanRuntimeEntry; |
3637 case MethodRecognizer::kMathAsin: | 3638 case MethodRecognizer::kMathAsin: |
3638 return kLibcAsinRuntimeEntry; | 3639 return kLibcAsinRuntimeEntry; |
| 3640 case MethodRecognizer::kMathSin: |
| 3641 return kLibcSinRuntimeEntry; |
3639 case MethodRecognizer::kMathAcos: | 3642 case MethodRecognizer::kMathAcos: |
3640 return kLibcAcosRuntimeEntry; | 3643 return kLibcAcosRuntimeEntry; |
3641 case MethodRecognizer::kMathAtan: | 3644 case MethodRecognizer::kMathAtan: |
3642 return kLibcAtanRuntimeEntry; | 3645 return kLibcAtanRuntimeEntry; |
3643 case MethodRecognizer::kMathAtan2: | 3646 case MethodRecognizer::kMathAtan2: |
3644 return kLibcAtan2RuntimeEntry; | 3647 return kLibcAtan2RuntimeEntry; |
3645 default: | 3648 default: |
3646 UNREACHABLE(); | 3649 UNREACHABLE(); |
3647 } | 3650 } |
3648 return kLibcPowRuntimeEntry; | 3651 return kLibcPowRuntimeEntry; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3734 set_native_c_function(native_function); | 3737 set_native_c_function(native_function); |
3735 function().SetIsNativeAutoSetupScope(auto_setup_scope); | 3738 function().SetIsNativeAutoSetupScope(auto_setup_scope); |
3736 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); | 3739 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); |
3737 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); | 3740 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); |
3738 set_is_bootstrap_native(is_bootstrap_native); | 3741 set_is_bootstrap_native(is_bootstrap_native); |
3739 } | 3742 } |
3740 | 3743 |
3741 #undef __ | 3744 #undef __ |
3742 | 3745 |
3743 } // namespace dart | 3746 } // namespace dart |
OLD | NEW |