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

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

Issue 11267043: Small IL cleanup. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/intermediate_language.h ('k') | runtime/vm/intermediate_language_ia32.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/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 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1369 RawAbstractType* UnboxIntegerInstr::CompileType() const { 1369 RawAbstractType* UnboxIntegerInstr::CompileType() const {
1370 return Type::null(); 1370 return Type::null();
1371 } 1371 }
1372 1372
1373 1373
1374 RawAbstractType* UnarySmiOpInstr::CompileType() const { 1374 RawAbstractType* UnarySmiOpInstr::CompileType() const {
1375 return Type::SmiType(); 1375 return Type::SmiType();
1376 } 1376 }
1377 1377
1378 1378
1379 RawAbstractType* DoubleToDoubleInstr::CompileType() const {
1380 return Type::Double();
1381 }
1382
1383
1384 RawAbstractType* SmiToDoubleInstr::CompileType() const { 1379 RawAbstractType* SmiToDoubleInstr::CompileType() const {
1385 return Type::Double(); 1380 return Type::Double();
1386 } 1381 }
1387 1382
1388 1383
1389 RawAbstractType* DoubleToIntegerInstr::CompileType() const { 1384 RawAbstractType* DoubleToIntegerInstr::CompileType() const {
1390 return Type::IntType(); 1385 return Type::IntType();
1391 } 1386 }
1392 1387
1393 1388
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
2203 ASSERT(!new_min.IsUnknown() && !new_max.IsUnknown()); 2198 ASSERT(!new_min.IsUnknown() && !new_max.IsUnknown());
2204 set_overflow(new_min.Overflowed() || new_max.Overflowed()); 2199 set_overflow(new_min.Overflowed() || new_max.Overflowed());
2205 2200
2206 range_ = new Range(new_min.Clamp(), new_max.Clamp()); 2201 range_ = new Range(new_min.Clamp(), new_max.Clamp());
2207 } 2202 }
2208 2203
2209 2204
2210 #undef __ 2205 #undef __
2211 2206
2212 } // namespace dart 2207 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698