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

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

Issue 10876100: Convert double interface into abstract class (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/globals.h" // Needed here to get TARGET_ARCH_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/debugger.h" 10 #include "vm/debugger.h"
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 Label* is_instance_lbl, 408 Label* is_instance_lbl,
409 Label* is_not_instance_lbl) { 409 Label* is_not_instance_lbl) {
410 GrowableArray<intptr_t> args; 410 GrowableArray<intptr_t> args;
411 if (type.IsNumberType()) { 411 if (type.IsNumberType()) {
412 args.Add(kDoubleCid); 412 args.Add(kDoubleCid);
413 args.Add(kMintCid); 413 args.Add(kMintCid);
414 args.Add(kBigintCid); 414 args.Add(kBigintCid);
415 } else if (type.IsIntInterface()) { 415 } else if (type.IsIntInterface()) {
416 args.Add(kMintCid); 416 args.Add(kMintCid);
417 args.Add(kBigintCid); 417 args.Add(kBigintCid);
418 } else if (type.IsDoubleInterface()) { 418 } else if (type.IsDoubleType()) {
419 args.Add(kDoubleCid); 419 args.Add(kDoubleCid);
420 } 420 }
421 CheckClassIds(kClassIdReg, args, is_instance_lbl, is_not_instance_lbl); 421 CheckClassIds(kClassIdReg, args, is_instance_lbl, is_not_instance_lbl);
422 } 422 }
423 423
424 424
425 void FlowGraphCompiler::GenerateStringTypeCheck(Register kClassIdReg, 425 void FlowGraphCompiler::GenerateStringTypeCheck(Register kClassIdReg,
426 Label* is_instance_lbl, 426 Label* is_instance_lbl,
427 Label* is_not_instance_lbl) { 427 Label* is_not_instance_lbl) {
428 GrowableArray<intptr_t> args; 428 GrowableArray<intptr_t> args;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 return; 738 return;
739 } 739 }
740 } 740 }
741 741
742 // This move is not blocked. 742 // This move is not blocked.
743 EmitMove(index); 743 EmitMove(index);
744 } 744 }
745 745
746 746
747 } // namespace dart 747 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698