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

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

Issue 2432903002: Revert "Add DoubleTestOp instruction" (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm.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) 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/bootstrap.h" 8 #include "vm/bootstrap.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/constant_propagator.h" 10 #include "vm/constant_propagator.h"
(...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 new Value(left()->definition()), 1490 new Value(left()->definition()),
1491 DeoptimizationTarget()); 1491 DeoptimizationTarget());
1492 flow_graph->InsertBefore(this, math_unary, env(), FlowGraph::kValue); 1492 flow_graph->InsertBefore(this, math_unary, env(), FlowGraph::kValue);
1493 return math_unary; 1493 return math_unary;
1494 } 1494 }
1495 1495
1496 return this; 1496 return this;
1497 } 1497 }
1498 1498
1499 1499
1500 Definition* DoubleTestOpInstr::Canonicalize(FlowGraph* flow_graph) {
1501 return HasUses() ? this : NULL;
1502 }
1503
1504
1505 static bool IsCommutative(Token::Kind op) { 1500 static bool IsCommutative(Token::Kind op) {
1506 switch (op) { 1501 switch (op) {
1507 case Token::kMUL: 1502 case Token::kMUL:
1508 case Token::kADD: 1503 case Token::kADD:
1509 case Token::kBIT_AND: 1504 case Token::kBIT_AND:
1510 case Token::kBIT_OR: 1505 case Token::kBIT_OR:
1511 case Token::kBIT_XOR: 1506 case Token::kBIT_XOR:
1512 return true; 1507 return true;
1513 default: 1508 default:
1514 return false; 1509 return false;
(...skipping 2351 matching lines...) Expand 10 before | Expand all | Expand 10 after
3866 set_native_c_function(native_function); 3861 set_native_c_function(native_function);
3867 function().SetIsNativeAutoSetupScope(auto_setup_scope); 3862 function().SetIsNativeAutoSetupScope(auto_setup_scope);
3868 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); 3863 Dart_NativeEntryResolver resolver = library.native_entry_resolver();
3869 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); 3864 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver);
3870 set_is_bootstrap_native(is_bootstrap_native); 3865 set_is_bootstrap_native(is_bootstrap_native);
3871 } 3866 }
3872 3867
3873 #undef __ 3868 #undef __
3874 3869
3875 } // namespace dart 3870 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698