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 2953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2972 deopt_id_ = original_deopt_id; | 2973 deopt_id_ = original_deopt_id; |
2973 } | 2974 } |
2974 | 2975 |
2975 | 2976 |
2976 intptr_t InvokeMathCFunctionInstr::ArgumentCountFor( | 2977 intptr_t InvokeMathCFunctionInstr::ArgumentCountFor( |
2977 MethodRecognizer::Kind kind) { | 2978 MethodRecognizer::Kind kind) { |
2978 switch (kind) { | 2979 switch (kind) { |
2979 case MethodRecognizer::kDoubleTruncate: | 2980 case MethodRecognizer::kDoubleTruncate: |
2980 case MethodRecognizer::kDoubleFloor: | 2981 case MethodRecognizer::kDoubleFloor: |
2981 case MethodRecognizer::kDoubleCeil: { | 2982 case MethodRecognizer::kDoubleCeil: { |
2982 ASSERT(!CPUFeatures::double_truncate_round_supported()); | 2983 ASSERT(!TargetCPUFeatures::double_truncate_round_supported()); |
2983 return 1; | 2984 return 1; |
2984 } | 2985 } |
2985 case MethodRecognizer::kDoubleRound: | 2986 case MethodRecognizer::kDoubleRound: |
2986 return 1; | 2987 return 1; |
2987 case MethodRecognizer::kDoubleMod: | 2988 case MethodRecognizer::kDoubleMod: |
2988 case MethodRecognizer::kMathDoublePow: | 2989 case MethodRecognizer::kMathDoublePow: |
2989 return 2; | 2990 return 2; |
2990 default: | 2991 default: |
2991 UNREACHABLE(); | 2992 UNREACHABLE(); |
2992 } | 2993 } |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3094 case Token::kTRUNCDIV: return 0; | 3095 case Token::kTRUNCDIV: return 0; |
3095 case Token::kMOD: return 1; | 3096 case Token::kMOD: return 1; |
3096 default: UNIMPLEMENTED(); return -1; | 3097 default: UNIMPLEMENTED(); return -1; |
3097 } | 3098 } |
3098 } | 3099 } |
3099 | 3100 |
3100 | 3101 |
3101 #undef __ | 3102 #undef __ |
3102 | 3103 |
3103 } // namespace dart | 3104 } // namespace dart |
OLD | NEW |