| 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 1739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1750 case Token::kBIT_OR: | 1750 case Token::kBIT_OR: |
| 1751 case Token::kBIT_XOR: | 1751 case Token::kBIT_XOR: |
| 1752 replacement = | 1752 replacement = |
| 1753 new BinarySmiOpInstr(op_kind(), | 1753 new BinarySmiOpInstr(op_kind(), |
| 1754 new Value(left()->definition()), | 1754 new Value(left()->definition()), |
| 1755 new Value(right()->definition()), | 1755 new Value(right()->definition()), |
| 1756 Thread::kNoDeoptId); | 1756 Thread::kNoDeoptId); |
| 1757 default: | 1757 default: |
| 1758 break; | 1758 break; |
| 1759 } | 1759 } |
| 1760 if (replacement != NULL) { |
| 1761 flow_graph->InsertBefore(this, replacement, env(), FlowGraph::kValue); |
| 1762 return replacement; |
| 1763 } |
| 1760 } | 1764 } |
| 1761 return this; | 1765 return this; |
| 1762 } | 1766 } |
| 1763 | 1767 |
| 1764 | 1768 |
| 1765 ComparisonInstr* CheckedSmiComparisonInstr::CopyWithNewOperands( | 1769 ComparisonInstr* CheckedSmiComparisonInstr::CopyWithNewOperands( |
| 1766 Value* left, Value* right) { | 1770 Value* left, Value* right) { |
| 1767 UNREACHABLE(); | 1771 UNREACHABLE(); |
| 1768 return NULL; | 1772 return NULL; |
| 1769 } | 1773 } |
| (...skipping 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4016 set_native_c_function(native_function); | 4020 set_native_c_function(native_function); |
| 4017 function().SetIsNativeAutoSetupScope(auto_setup_scope); | 4021 function().SetIsNativeAutoSetupScope(auto_setup_scope); |
| 4018 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); | 4022 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); |
| 4019 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); | 4023 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); |
| 4020 set_is_bootstrap_native(is_bootstrap_native); | 4024 set_is_bootstrap_native(is_bootstrap_native); |
| 4021 } | 4025 } |
| 4022 | 4026 |
| 4023 #undef __ | 4027 #undef __ |
| 4024 | 4028 |
| 4025 } // namespace dart | 4029 } // namespace dart |
| OLD | NEW |