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

Side by Side Diff: vm/intermediate_language.cc

Issue 10834311: Split ToDouble into two IL instruction to make it work with SSA. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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 | 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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 RawAbstractType* UnarySmiOpComp::CompileType() const { 831 RawAbstractType* UnarySmiOpComp::CompileType() const {
832 return Type::IntInterface(); 832 return Type::IntInterface();
833 } 833 }
834 834
835 835
836 RawAbstractType* NumberNegateComp::CompileType() const { 836 RawAbstractType* NumberNegateComp::CompileType() const {
837 return Type::NumberInterface(); 837 return Type::NumberInterface();
838 } 838 }
839 839
840 840
841 RawAbstractType* ToDoubleComp::CompileType() const { 841 RawAbstractType* DoubleToDoubleComp::CompileType() const {
842 return Type::DoubleInterface();
843 }
844
845
846 RawAbstractType* SmiToDoubleComp::CompileType() const {
842 return Type::DoubleInterface(); 847 return Type::DoubleInterface();
843 } 848 }
844 849
845 850
846 // Shared code generation methods (EmitNativeCode, MakeLocationSummary, and 851 // Shared code generation methods (EmitNativeCode, MakeLocationSummary, and
847 // PrepareEntry). Only assembly code that can be shared across all architectures 852 // PrepareEntry). Only assembly code that can be shared across all architectures
848 // can be used. Machine specific register allocation and code generation 853 // can be used. Machine specific register allocation and code generation
849 // is located in intermediate_language_<arch>.cc 854 // is located in intermediate_language_<arch>.cc
850 855
851 856
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 if (compiler->is_ssa()) { 1319 if (compiler->is_ssa()) {
1315 ASSERT(locs()->in(0).IsRegister()); 1320 ASSERT(locs()->in(0).IsRegister());
1316 __ PushRegister(locs()->in(0).reg()); 1321 __ PushRegister(locs()->in(0).reg());
1317 } 1322 }
1318 } 1323 }
1319 1324
1320 1325
1321 #undef __ 1326 #undef __
1322 1327
1323 } // namespace dart 1328 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698