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

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
« no previous file with comments | « runtime/vm/dart_api_message.cc ('k') | runtime/vm/intermediate_language.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) 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 Label* is_instance_lbl, 460 Label* is_instance_lbl,
461 Label* is_not_instance_lbl) { 461 Label* is_not_instance_lbl) {
462 GrowableArray<intptr_t> args; 462 GrowableArray<intptr_t> args;
463 if (type.IsNumberType()) { 463 if (type.IsNumberType()) {
464 args.Add(kDoubleCid); 464 args.Add(kDoubleCid);
465 args.Add(kMintCid); 465 args.Add(kMintCid);
466 args.Add(kBigintCid); 466 args.Add(kBigintCid);
467 } else if (type.IsIntInterface()) { 467 } else if (type.IsIntInterface()) {
468 args.Add(kMintCid); 468 args.Add(kMintCid);
469 args.Add(kBigintCid); 469 args.Add(kBigintCid);
470 } else if (type.IsDoubleInterface()) { 470 } else if (type.IsDoubleType()) {
471 args.Add(kDoubleCid); 471 args.Add(kDoubleCid);
472 } 472 }
473 CheckClassIds(kClassIdReg, args, is_instance_lbl, is_not_instance_lbl); 473 CheckClassIds(kClassIdReg, args, is_instance_lbl, is_not_instance_lbl);
474 } 474 }
475 475
476 476
477 void FlowGraphCompiler::GenerateStringTypeCheck(Register kClassIdReg, 477 void FlowGraphCompiler::GenerateStringTypeCheck(Register kClassIdReg,
478 Label* is_instance_lbl, 478 Label* is_instance_lbl,
479 Label* is_not_instance_lbl) { 479 Label* is_not_instance_lbl) {
480 GrowableArray<intptr_t> args; 480 GrowableArray<intptr_t> args;
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 return; 784 return;
785 } 785 }
786 } 786 }
787 787
788 // This move is not blocked. 788 // This move is not blocked.
789 EmitMove(index); 789 EmitMove(index);
790 } 790 }
791 791
792 792
793 } // namespace dart 793 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_message.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698