OLD | NEW |
(Empty) | |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "src/compiler/simplified-operator.h" |
| 6 #include "src/types-inl.h" |
| 7 |
| 8 namespace v8 { |
| 9 namespace internal { |
| 10 namespace compiler { |
| 11 |
| 12 // static |
| 13 bool StaticParameterTraits<FieldAccess>::Equals(const FieldAccess& lhs, |
| 14 const FieldAccess& rhs) { |
| 15 return lhs.base_is_tagged == rhs.base_is_tagged && lhs.offset == rhs.offset && |
| 16 lhs.machine_type == rhs.machine_type && lhs.type->Is(rhs.type); |
| 17 } |
| 18 |
| 19 |
| 20 // static |
| 21 bool StaticParameterTraits<ElementAccess>::Equals(const ElementAccess& lhs, |
| 22 const ElementAccess& rhs) { |
| 23 return lhs.base_is_tagged == rhs.base_is_tagged && |
| 24 lhs.header_size == rhs.header_size && |
| 25 lhs.machine_type == rhs.machine_type && lhs.type->Is(rhs.type); |
| 26 } |
| 27 |
| 28 } // namespace compiler |
| 29 } // namespace internal |
| 30 } // namespace v8 |
OLD | NEW |