| 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/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/bit_vector.h" | 9 #include "vm/bit_vector.h" |
| 10 #include "vm/cha.h" | 10 #include "vm/cha.h" |
| (...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1274 void FlowGraphCompiler::GenerateNumberTypeCheck(Register kClassIdReg, | 1274 void FlowGraphCompiler::GenerateNumberTypeCheck(Register kClassIdReg, |
| 1275 const AbstractType& type, | 1275 const AbstractType& type, |
| 1276 Label* is_instance_lbl, | 1276 Label* is_instance_lbl, |
| 1277 Label* is_not_instance_lbl) { | 1277 Label* is_not_instance_lbl) { |
| 1278 assembler()->Comment("NumberTypeCheck"); | 1278 assembler()->Comment("NumberTypeCheck"); |
| 1279 GrowableArray<intptr_t> args; | 1279 GrowableArray<intptr_t> args; |
| 1280 if (type.IsNumberType()) { | 1280 if (type.IsNumberType()) { |
| 1281 args.Add(kDoubleCid); | 1281 args.Add(kDoubleCid); |
| 1282 args.Add(kMintCid); | 1282 args.Add(kMintCid); |
| 1283 args.Add(kBigintCid); | 1283 args.Add(kBigintCid); |
| 1284 args.Add(kPixelsCid); |
| 1284 } else if (type.IsIntType()) { | 1285 } else if (type.IsIntType()) { |
| 1285 args.Add(kMintCid); | 1286 args.Add(kMintCid); |
| 1286 args.Add(kBigintCid); | 1287 args.Add(kBigintCid); |
| 1287 } else if (type.IsDoubleType()) { | 1288 } else if (type.IsDoubleType()) { |
| 1288 args.Add(kDoubleCid); | 1289 args.Add(kDoubleCid); |
| 1289 } | 1290 } |
| 1290 CheckClassIds(kClassIdReg, args, is_instance_lbl, is_not_instance_lbl); | 1291 CheckClassIds(kClassIdReg, args, is_instance_lbl, is_not_instance_lbl); |
| 1291 } | 1292 } |
| 1292 | 1293 |
| 1293 | 1294 |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1995 | 1996 |
| 1996 | 1997 |
| 1997 void FlowGraphCompiler::FrameStateClear() { | 1998 void FlowGraphCompiler::FrameStateClear() { |
| 1998 ASSERT(!is_optimizing()); | 1999 ASSERT(!is_optimizing()); |
| 1999 frame_state_.TruncateTo(0); | 2000 frame_state_.TruncateTo(0); |
| 2000 } | 2001 } |
| 2001 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) | 2002 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) |
| 2002 | 2003 |
| 2003 | 2004 |
| 2004 } // namespace dart | 2005 } // namespace dart |
| OLD | NEW |