| 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/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/flow_graph_allocator.h" | 10 #include "vm/flow_graph_allocator.h" |
| (...skipping 2920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2931 case MethodRecognizer::kMathSin: | 2931 case MethodRecognizer::kMathSin: |
| 2932 return kSinRuntimeEntry; | 2932 return kSinRuntimeEntry; |
| 2933 case MethodRecognizer::kMathCos: | 2933 case MethodRecognizer::kMathCos: |
| 2934 return kCosRuntimeEntry; | 2934 return kCosRuntimeEntry; |
| 2935 default: | 2935 default: |
| 2936 UNREACHABLE(); | 2936 UNREACHABLE(); |
| 2937 } | 2937 } |
| 2938 return kSinRuntimeEntry; | 2938 return kSinRuntimeEntry; |
| 2939 } | 2939 } |
| 2940 | 2940 |
| 2941 |
| 2942 MergedMathInstr::MergedMathInstr(ZoneGrowableArray<Value*>* inputs, |
| 2943 intptr_t original_deopt_id, |
| 2944 MergedMathInstr::Kind kind) |
| 2945 : inputs_(inputs), |
| 2946 locs_(NULL), |
| 2947 kind_(kind) { |
| 2948 ASSERT(inputs_->length() == InputCountFor(kind_)); |
| 2949 for (intptr_t i = 0; i < inputs_->length(); ++i) { |
| 2950 ASSERT((*inputs)[i] != NULL); |
| 2951 (*inputs)[i]->set_instruction(this); |
| 2952 (*inputs)[i]->set_use_index(i); |
| 2953 } |
| 2954 deopt_id_ = original_deopt_id; |
| 2955 } |
| 2956 |
| 2941 #undef __ | 2957 #undef __ |
| 2942 | 2958 |
| 2943 } // namespace dart | 2959 } // namespace dart |
| OLD | NEW |