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

Side by Side Diff: vm/intermediate_language.cc

Issue 10850014: Separate double binary operation into a separate instruction class. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: added ia32 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 | « vm/intermediate_language.h ('k') | 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_builder.h" 9 #include "vm/flow_graph_builder.h"
10 #include "vm/flow_graph_compiler.h" 10 #include "vm/flow_graph_compiler.h"
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 return AbstractType::null(); 977 return AbstractType::null();
978 } 978 }
979 979
980 980
981 RawAbstractType* BinaryOpComp::StaticType() const { 981 RawAbstractType* BinaryOpComp::StaticType() const {
982 // TODO(srdjan): Compute based on input types (ICData). 982 // TODO(srdjan): Compute based on input types (ICData).
983 return Type::DynamicType(); 983 return Type::DynamicType();
984 } 984 }
985 985
986 986
987 RawAbstractType* DoubleBinaryOpComp::StaticType() const {
988 return Type::DoubleInterface();
989 }
990
991
987 RawAbstractType* UnarySmiOpComp::StaticType() const { 992 RawAbstractType* UnarySmiOpComp::StaticType() const {
988 return Type::IntInterface(); 993 return Type::IntInterface();
989 } 994 }
990 995
991 996
992 RawAbstractType* NumberNegateComp::StaticType() const { 997 RawAbstractType* NumberNegateComp::StaticType() const {
993 return Type::NumberInterface(); 998 return Type::NumberInterface();
994 } 999 }
995 1000
996 1001
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 if (compiler->is_ssa()) { 1447 if (compiler->is_ssa()) {
1443 ASSERT(locs()->in(0).IsRegister()); 1448 ASSERT(locs()->in(0).IsRegister());
1444 __ PushRegister(locs()->in(0).reg()); 1449 __ PushRegister(locs()->in(0).reg());
1445 } 1450 }
1446 } 1451 }
1447 1452
1448 1453
1449 #undef __ 1454 #undef __
1450 1455
1451 } // namespace dart 1456 } // namespace dart
OLDNEW
« no previous file with comments | « vm/intermediate_language.h ('k') | vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698