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