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 3082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3101 deopt_id_ = original_deopt_id; | 3102 deopt_id_ = original_deopt_id; |
3102 } | 3103 } |
3103 | 3104 |
3104 | 3105 |
3105 intptr_t InvokeMathCFunctionInstr::ArgumentCountFor( | 3106 intptr_t InvokeMathCFunctionInstr::ArgumentCountFor( |
3106 MethodRecognizer::Kind kind) { | 3107 MethodRecognizer::Kind kind) { |
3107 switch (kind) { | 3108 switch (kind) { |
3108 case MethodRecognizer::kDoubleTruncate: | 3109 case MethodRecognizer::kDoubleTruncate: |
3109 case MethodRecognizer::kDoubleFloor: | 3110 case MethodRecognizer::kDoubleFloor: |
3110 case MethodRecognizer::kDoubleCeil: { | 3111 case MethodRecognizer::kDoubleCeil: { |
3111 ASSERT(!CPUFeatures::double_truncate_round_supported()); | 3112 ASSERT(!TargetCPUFeatures::double_truncate_round_supported()); |
3112 return 1; | 3113 return 1; |
3113 } | 3114 } |
3114 case MethodRecognizer::kDoubleRound: | 3115 case MethodRecognizer::kDoubleRound: |
3115 return 1; | 3116 return 1; |
3116 case MethodRecognizer::kDoubleMod: | 3117 case MethodRecognizer::kDoubleMod: |
3117 case MethodRecognizer::kMathDoublePow: | 3118 case MethodRecognizer::kMathDoublePow: |
3118 return 2; | 3119 return 2; |
3119 default: | 3120 default: |
3120 UNREACHABLE(); | 3121 UNREACHABLE(); |
3121 } | 3122 } |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3223 case Token::kTRUNCDIV: return 0; | 3224 case Token::kTRUNCDIV: return 0; |
3224 case Token::kMOD: return 1; | 3225 case Token::kMOD: return 1; |
3225 default: UNIMPLEMENTED(); return -1; | 3226 default: UNIMPLEMENTED(); return -1; |
3226 } | 3227 } |
3227 } | 3228 } |
3228 | 3229 |
3229 | 3230 |
3230 #undef __ | 3231 #undef __ |
3231 | 3232 |
3232 } // namespace dart | 3233 } // namespace dart |
OLD | NEW |