Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 562203005: Inline toDouble calls on mints (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698