| 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 |
| 82 bool StrictCompareInstr::AttributesEqual(Definition* other) const { |
| 83 StrictCompareInstr* other_op = other->AsStrictCompare(); |
| 84 ASSERT(other_op != NULL); |
| 85 return kind() == other_op->kind(); |
| 86 } |
| 87 |
| 88 |
| 75 bool LoadFieldInstr::AttributesEqual(Definition* other) const { | 89 bool LoadFieldInstr::AttributesEqual(Definition* other) const { |
| 76 LoadFieldInstr* other_load = other->AsLoadField(); | 90 LoadFieldInstr* other_load = other->AsLoadField(); |
| 77 ASSERT(other_load != NULL); | 91 ASSERT(other_load != NULL); |
| 78 ASSERT((offset_in_bytes() != other_load->offset_in_bytes()) || | 92 ASSERT((offset_in_bytes() != other_load->offset_in_bytes()) || |
| 79 ((immutable_ == other_load->immutable_) && | 93 ((immutable_ == other_load->immutable_) && |
| 80 (ResultCid() == other_load->ResultCid()))); | 94 (ResultCid() == other_load->ResultCid()))); |
| 81 return offset_in_bytes() == other_load->offset_in_bytes(); | 95 return offset_in_bytes() == other_load->offset_in_bytes(); |
| 82 } | 96 } |
| 83 | 97 |
| 84 | 98 |
| (...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 value->set_use_index(use_index++); | 1682 value->set_use_index(use_index++); |
| 1669 value->AddToEnvUseList(); | 1683 value->AddToEnvUseList(); |
| 1670 } | 1684 } |
| 1671 instr->set_env(copy); | 1685 instr->set_env(copy); |
| 1672 } | 1686 } |
| 1673 | 1687 |
| 1674 | 1688 |
| 1675 #undef __ | 1689 #undef __ |
| 1676 | 1690 |
| 1677 } // namespace dart | 1691 } // namespace dart |
| OLD | NEW |