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/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
8 #include "vm/bit_vector.h" | 8 #include "vm/bit_vector.h" |
| 9 #include "vm/cpu.h" |
9 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
10 #include "vm/flow_graph_allocator.h" | 11 #include "vm/flow_graph_allocator.h" |
11 #include "vm/flow_graph_builder.h" | 12 #include "vm/flow_graph_builder.h" |
12 #include "vm/flow_graph_compiler.h" | 13 #include "vm/flow_graph_compiler.h" |
13 #include "vm/flow_graph_optimizer.h" | 14 #include "vm/flow_graph_optimizer.h" |
14 #include "vm/locations.h" | 15 #include "vm/locations.h" |
15 #include "vm/object.h" | 16 #include "vm/object.h" |
16 #include "vm/object_store.h" | 17 #include "vm/object_store.h" |
17 #include "vm/os.h" | 18 #include "vm/os.h" |
18 #include "vm/resolver.h" | 19 #include "vm/resolver.h" |
(...skipping 3003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3022 deopt_id_ = original_deopt_id; | 3023 deopt_id_ = original_deopt_id; |
3023 } | 3024 } |
3024 | 3025 |
3025 | 3026 |
3026 intptr_t InvokeMathCFunctionInstr::ArgumentCountFor( | 3027 intptr_t InvokeMathCFunctionInstr::ArgumentCountFor( |
3027 MethodRecognizer::Kind kind) { | 3028 MethodRecognizer::Kind kind) { |
3028 switch (kind) { | 3029 switch (kind) { |
3029 case MethodRecognizer::kDoubleTruncate: | 3030 case MethodRecognizer::kDoubleTruncate: |
3030 case MethodRecognizer::kDoubleFloor: | 3031 case MethodRecognizer::kDoubleFloor: |
3031 case MethodRecognizer::kDoubleCeil: { | 3032 case MethodRecognizer::kDoubleCeil: { |
3032 ASSERT(!CPUFeatures::double_truncate_round_supported()); | 3033 ASSERT(!TargetCPUFeatures::double_truncate_round_supported()); |
3033 return 1; | 3034 return 1; |
3034 } | 3035 } |
3035 case MethodRecognizer::kDoubleRound: | 3036 case MethodRecognizer::kDoubleRound: |
3036 return 1; | 3037 return 1; |
3037 case MethodRecognizer::kDoubleMod: | 3038 case MethodRecognizer::kDoubleMod: |
3038 case MethodRecognizer::kMathDoublePow: | 3039 case MethodRecognizer::kMathDoublePow: |
3039 return 2; | 3040 return 2; |
3040 default: | 3041 default: |
3041 UNREACHABLE(); | 3042 UNREACHABLE(); |
3042 } | 3043 } |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3144 case Token::kTRUNCDIV: return 0; | 3145 case Token::kTRUNCDIV: return 0; |
3145 case Token::kMOD: return 1; | 3146 case Token::kMOD: return 1; |
3146 default: UNIMPLEMENTED(); return -1; | 3147 default: UNIMPLEMENTED(); return -1; |
3147 } | 3148 } |
3148 } | 3149 } |
3149 | 3150 |
3150 | 3151 |
3151 #undef __ | 3152 #undef __ |
3152 | 3153 |
3153 } // namespace dart | 3154 } // namespace dart |
OLD | NEW |