| 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/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/cpu.h" | 8 #include "vm/cpu.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 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2814 const ICData* call_ic_data = NULL; | 2814 const ICData* call_ic_data = NULL; |
| 2815 if (!FLAG_propagate_ic_data || !compiler->is_optimizing()) { | 2815 if (!FLAG_propagate_ic_data || !compiler->is_optimizing()) { |
| 2816 const Array& arguments_descriptor = | 2816 const Array& arguments_descriptor = |
| 2817 Array::Handle(ArgumentsDescriptor::New(ArgumentCount(), | 2817 Array::Handle(ArgumentsDescriptor::New(ArgumentCount(), |
| 2818 argument_names())); | 2818 argument_names())); |
| 2819 MethodRecognizer::Kind recognized_kind = | 2819 MethodRecognizer::Kind recognized_kind = |
| 2820 MethodRecognizer::RecognizeKind(function()); | 2820 MethodRecognizer::RecognizeKind(function()); |
| 2821 int num_args_checked = 0; | 2821 int num_args_checked = 0; |
| 2822 switch (recognized_kind) { | 2822 switch (recognized_kind) { |
| 2823 case MethodRecognizer::kDoubleFromInteger: | 2823 case MethodRecognizer::kDoubleFromInteger: |
| 2824 num_args_checked = 1; | |
| 2825 break; | |
| 2826 case MethodRecognizer::kMathMin: | 2824 case MethodRecognizer::kMathMin: |
| 2827 case MethodRecognizer::kMathMax: | 2825 case MethodRecognizer::kMathMax: |
| 2828 num_args_checked = 2; | 2826 num_args_checked = 2; |
| 2829 break; | 2827 break; |
| 2830 default: | 2828 default: |
| 2831 break; | 2829 break; |
| 2832 } | 2830 } |
| 2833 call_ic_data = compiler->GetOrAddStaticCallICData(deopt_id(), | 2831 call_ic_data = compiler->GetOrAddStaticCallICData(deopt_id(), |
| 2834 function(), | 2832 function(), |
| 2835 arguments_descriptor, | 2833 arguments_descriptor, |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3320 case Token::kTRUNCDIV: return 0; | 3318 case Token::kTRUNCDIV: return 0; |
| 3321 case Token::kMOD: return 1; | 3319 case Token::kMOD: return 1; |
| 3322 default: UNIMPLEMENTED(); return -1; | 3320 default: UNIMPLEMENTED(); return -1; |
| 3323 } | 3321 } |
| 3324 } | 3322 } |
| 3325 | 3323 |
| 3326 | 3324 |
| 3327 #undef __ | 3325 #undef __ |
| 3328 | 3326 |
| 3329 } // namespace dart | 3327 } // namespace dart |
| OLD | NEW |