| 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 3009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3028 deopt_id_ = original_deopt_id; | 3029 deopt_id_ = original_deopt_id; |
| 3029 } | 3030 } |
| 3030 | 3031 |
| 3031 | 3032 |
| 3032 intptr_t InvokeMathCFunctionInstr::ArgumentCountFor( | 3033 intptr_t InvokeMathCFunctionInstr::ArgumentCountFor( |
| 3033 MethodRecognizer::Kind kind) { | 3034 MethodRecognizer::Kind kind) { |
| 3034 switch (kind) { | 3035 switch (kind) { |
| 3035 case MethodRecognizer::kDoubleTruncate: | 3036 case MethodRecognizer::kDoubleTruncate: |
| 3036 case MethodRecognizer::kDoubleFloor: | 3037 case MethodRecognizer::kDoubleFloor: |
| 3037 case MethodRecognizer::kDoubleCeil: { | 3038 case MethodRecognizer::kDoubleCeil: { |
| 3038 ASSERT(!CPUFeatures::double_truncate_round_supported()); | 3039 ASSERT(!TargetCPUFeatures::double_truncate_round_supported()); |
| 3039 return 1; | 3040 return 1; |
| 3040 } | 3041 } |
| 3041 case MethodRecognizer::kDoubleRound: | 3042 case MethodRecognizer::kDoubleRound: |
| 3042 return 1; | 3043 return 1; |
| 3043 case MethodRecognizer::kDoubleMod: | 3044 case MethodRecognizer::kDoubleMod: |
| 3044 case MethodRecognizer::kMathDoublePow: | 3045 case MethodRecognizer::kMathDoublePow: |
| 3045 return 2; | 3046 return 2; |
| 3046 default: | 3047 default: |
| 3047 UNREACHABLE(); | 3048 UNREACHABLE(); |
| 3048 } | 3049 } |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3150 case Token::kTRUNCDIV: return 0; | 3151 case Token::kTRUNCDIV: return 0; |
| 3151 case Token::kMOD: return 1; | 3152 case Token::kMOD: return 1; |
| 3152 default: UNIMPLEMENTED(); return -1; | 3153 default: UNIMPLEMENTED(); return -1; |
| 3153 } | 3154 } |
| 3154 } | 3155 } |
| 3155 | 3156 |
| 3156 | 3157 |
| 3157 #undef __ | 3158 #undef __ |
| 3158 | 3159 |
| 3159 } // namespace dart | 3160 } // namespace dart |
| OLD | NEW |