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

Side by Side Diff: runtime/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: rebased... 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
« 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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 RawAbstractType* UnarySmiOpComp::CompileType() const { 826 RawAbstractType* UnarySmiOpComp::CompileType() const {
827 return Type::IntInterface(); 827 return Type::IntInterface();
828 } 828 }
829 829
830 830
831 RawAbstractType* NumberNegateComp::CompileType() const { 831 RawAbstractType* NumberNegateComp::CompileType() const {
832 return Type::NumberInterface(); 832 return Type::NumberInterface();
833 } 833 }
834 834
835 835
836 RawAbstractType* ToDoubleComp::CompileType() const { 836 RawAbstractType* DoubleToDoubleComp::CompileType() const {
837 return Type::DoubleInterface();
838 }
839
840
841 RawAbstractType* SmiToDoubleComp::CompileType() const {
837 return Type::DoubleInterface(); 842 return Type::DoubleInterface();
838 } 843 }
839 844
840 845
841 // Shared code generation methods (EmitNativeCode, MakeLocationSummary, and 846 // Shared code generation methods (EmitNativeCode, MakeLocationSummary, and
842 // PrepareEntry). Only assembly code that can be shared across all architectures 847 // PrepareEntry). Only assembly code that can be shared across all architectures
843 // can be used. Machine specific register allocation and code generation 848 // can be used. Machine specific register allocation and code generation
844 // is located in intermediate_language_<arch>.cc 849 // is located in intermediate_language_<arch>.cc
845 850
846 851
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 if (compiler->is_ssa()) { 1314 if (compiler->is_ssa()) {
1310 ASSERT(locs()->in(0).IsRegister()); 1315 ASSERT(locs()->in(0).IsRegister());
1311 __ PushRegister(locs()->in(0).reg()); 1316 __ PushRegister(locs()->in(0).reg());
1312 } 1317 }
1313 } 1318 }
1314 1319
1315 1320
1316 #undef __ 1321 #undef __
1317 1322
1318 } // namespace dart 1323 } // 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