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: | |
3554 case MethodRecognizer::kMathCos: | |
3555 return 1; | 3553 return 1; |
3556 case MethodRecognizer::kDoubleMod: | 3554 case MethodRecognizer::kDoubleMod: |
3557 case MethodRecognizer::kMathDoublePow: | 3555 case MethodRecognizer::kMathDoublePow: |
3558 case MethodRecognizer::kMathAtan2: | 3556 case MethodRecognizer::kMathAtan2: |
3559 return 2; | 3557 return 2; |
3560 default: | 3558 default: |
3561 UNREACHABLE(); | 3559 UNREACHABLE(); |
3562 } | 3560 } |
3563 return 0; | 3561 return 0; |
3564 } | 3562 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3631 case MethodRecognizer::kDoubleCeil: | 3629 case MethodRecognizer::kDoubleCeil: |
3632 return kLibcCeilRuntimeEntry; | 3630 return kLibcCeilRuntimeEntry; |
3633 case MethodRecognizer::kMathDoublePow: | 3631 case MethodRecognizer::kMathDoublePow: |
3634 return kLibcPowRuntimeEntry; | 3632 return kLibcPowRuntimeEntry; |
3635 case MethodRecognizer::kDoubleMod: | 3633 case MethodRecognizer::kDoubleMod: |
3636 return kDartModuloRuntimeEntry; | 3634 return kDartModuloRuntimeEntry; |
3637 case MethodRecognizer::kMathTan: | 3635 case MethodRecognizer::kMathTan: |
3638 return kLibcTanRuntimeEntry; | 3636 return kLibcTanRuntimeEntry; |
3639 case MethodRecognizer::kMathAsin: | 3637 case MethodRecognizer::kMathAsin: |
3640 return kLibcAsinRuntimeEntry; | 3638 return kLibcAsinRuntimeEntry; |
3641 case MethodRecognizer::kMathSin: | |
3642 return kLibcSinRuntimeEntry; | |
3643 case MethodRecognizer::kMathCos: | |
3644 return kLibcCosRuntimeEntry; | |
3645 case MethodRecognizer::kMathAcos: | 3639 case MethodRecognizer::kMathAcos: |
3646 return kLibcAcosRuntimeEntry; | 3640 return kLibcAcosRuntimeEntry; |
3647 case MethodRecognizer::kMathAtan: | 3641 case MethodRecognizer::kMathAtan: |
3648 return kLibcAtanRuntimeEntry; | 3642 return kLibcAtanRuntimeEntry; |
3649 case MethodRecognizer::kMathAtan2: | 3643 case MethodRecognizer::kMathAtan2: |
3650 return kLibcAtan2RuntimeEntry; | 3644 return kLibcAtan2RuntimeEntry; |
3651 default: | 3645 default: |
3652 UNREACHABLE(); | 3646 UNREACHABLE(); |
3653 } | 3647 } |
3654 return kLibcPowRuntimeEntry; | 3648 return kLibcPowRuntimeEntry; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3740 set_native_c_function(native_function); | 3734 set_native_c_function(native_function); |
3741 function().SetIsNativeAutoSetupScope(auto_setup_scope); | 3735 function().SetIsNativeAutoSetupScope(auto_setup_scope); |
3742 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); | 3736 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); |
3743 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); | 3737 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); |
3744 set_is_bootstrap_native(is_bootstrap_native); | 3738 set_is_bootstrap_native(is_bootstrap_native); |
3745 } | 3739 } |
3746 | 3740 |
3747 #undef __ | 3741 #undef __ |
3748 | 3742 |
3749 } // namespace dart | 3743 } // namespace dart |
OLD | NEW |