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

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

Issue 2005723004: Fraction class prototype and test (not to be committed). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: work in progress Created 4 years, 5 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
« no previous file with comments | « runtime/vm/exceptions.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) 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
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(kFractionCid);
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
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
OLDNEW
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698