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