| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |