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

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

Issue 13867006: Inline binary Float32x4 ops. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 right(), 1080 right(),
1081 left()); 1081 left());
1082 if (result != NULL) { 1082 if (result != NULL) {
1083 return result; 1083 return result;
1084 } 1084 }
1085 1085
1086 return this; 1086 return this;
1087 } 1087 }
1088 1088
1089 1089
1090 Definition* BinaryFloat32x4OpInstr::Canonicalize(
Vyacheslav Egorov (Google) 2013/04/15 11:09:35 This matches default behavior. No need ot override
Cutch 2013/04/15 13:34:56 Done.
1091 FlowGraphOptimizer* optimizer) {
1092 return this;
1093 }
1094
1095
1090 Definition* BinarySmiOpInstr::Canonicalize(FlowGraphOptimizer* optimizer) { 1096 Definition* BinarySmiOpInstr::Canonicalize(FlowGraphOptimizer* optimizer) {
1091 Definition* result = NULL; 1097 Definition* result = NULL;
1092 1098
1093 result = CanonicalizeCommutativeArithmetic(op_kind(), 1099 result = CanonicalizeCommutativeArithmetic(op_kind(),
1094 kSmiCid, 1100 kSmiCid,
1095 left(), 1101 left(),
1096 right()); 1102 right());
1097 if (result != NULL) { 1103 if (result != NULL) {
1098 return result; 1104 return result;
1099 } 1105 }
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
2414 default: 2420 default:
2415 UNREACHABLE(); 2421 UNREACHABLE();
2416 } 2422 }
2417 return kPowRuntimeEntry; 2423 return kPowRuntimeEntry;
2418 } 2424 }
2419 2425
2420 2426
2421 #undef __ 2427 #undef __
2422 2428
2423 } // namespace dart 2429 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698