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

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

Issue 11568044: Add DoubleToSmi optimistically, preventing boxing/unboxing of doubles and propagate smi-nessof the … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/flow_graph_allocator.h" 9 #include "vm/flow_graph_allocator.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 RawAbstractType* SmiToDoubleInstr::CompileType() const { 1449 RawAbstractType* SmiToDoubleInstr::CompileType() const {
1450 return Type::Double(); 1450 return Type::Double();
1451 } 1451 }
1452 1452
1453 1453
1454 RawAbstractType* DoubleToIntegerInstr::CompileType() const { 1454 RawAbstractType* DoubleToIntegerInstr::CompileType() const {
1455 return Type::IntType(); 1455 return Type::IntType();
1456 } 1456 }
1457 1457
1458 1458
1459 RawAbstractType* DoubleToSmiInstr::CompileType() const {
1460 return Type::SmiType();
1461 }
1462
1463
1459 RawAbstractType* CheckClassInstr::CompileType() const { 1464 RawAbstractType* CheckClassInstr::CompileType() const {
1460 return AbstractType::null(); 1465 return AbstractType::null();
1461 } 1466 }
1462 1467
1463 1468
1464 RawAbstractType* CheckSmiInstr::CompileType() const { 1469 RawAbstractType* CheckSmiInstr::CompileType() const {
1465 return AbstractType::null(); 1470 return AbstractType::null();
1466 } 1471 }
1467 1472
1468 1473
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after
2763 default: 2768 default:
2764 UNREACHABLE(); 2769 UNREACHABLE();
2765 return -1; 2770 return -1;
2766 } 2771 }
2767 } 2772 }
2768 2773
2769 2774
2770 #undef __ 2775 #undef __
2771 2776
2772 } // namespace dart 2777 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698