| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |