| OLD | NEW |
| 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_allocator.h" | 9 #include "vm/flow_graph_allocator.h" |
| 10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 65 } |
| 66 | 66 |
| 67 | 67 |
| 68 bool CheckArrayBoundInstr::AttributesEqual(Definition* other) const { | 68 bool CheckArrayBoundInstr::AttributesEqual(Definition* other) const { |
| 69 CheckArrayBoundInstr* other_check = other->AsCheckArrayBound(); | 69 CheckArrayBoundInstr* other_check = other->AsCheckArrayBound(); |
| 70 ASSERT(other_check != NULL); | 70 ASSERT(other_check != NULL); |
| 71 return array_type() == other_check->array_type(); | 71 return array_type() == other_check->array_type(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 | 74 |
| 75 bool BinarySmiOpInstr::AttributesEqual(Definition* other) const { |
| 76 BinarySmiOpInstr* other_op = other->AsBinarySmiOp(); |
| 77 ASSERT(other_op != NULL); |
| 78 return op_kind() == other_op->op_kind(); |
| 79 } |
| 80 |
| 81 |
| 75 bool LoadFieldInstr::AttributesEqual(Definition* other) const { | 82 bool LoadFieldInstr::AttributesEqual(Definition* other) const { |
| 76 LoadFieldInstr* other_load = other->AsLoadField(); | 83 LoadFieldInstr* other_load = other->AsLoadField(); |
| 77 ASSERT(other_load != NULL); | 84 ASSERT(other_load != NULL); |
| 78 ASSERT((offset_in_bytes() != other_load->offset_in_bytes()) || | 85 ASSERT((offset_in_bytes() != other_load->offset_in_bytes()) || |
| 79 ((immutable_ == other_load->immutable_) && | 86 ((immutable_ == other_load->immutable_) && |
| 80 (ResultCid() == other_load->ResultCid()))); | 87 (ResultCid() == other_load->ResultCid()))); |
| 81 return offset_in_bytes() == other_load->offset_in_bytes(); | 88 return offset_in_bytes() == other_load->offset_in_bytes(); |
| 82 } | 89 } |
| 83 | 90 |
| 84 | 91 |
| (...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 value->set_use_index(use_index++); | 1675 value->set_use_index(use_index++); |
| 1669 value->AddToEnvUseList(); | 1676 value->AddToEnvUseList(); |
| 1670 } | 1677 } |
| 1671 instr->set_env(copy); | 1678 instr->set_env(copy); |
| 1672 } | 1679 } |
| 1673 | 1680 |
| 1674 | 1681 |
| 1675 #undef __ | 1682 #undef __ |
| 1676 | 1683 |
| 1677 } // namespace dart | 1684 } // namespace dart |
| OLD | NEW |