OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1604 | 1604 |
1605 // The SimdValue128 class describes heap allocated 128 bit SIMD values. | 1605 // The SimdValue128 class describes heap allocated 128 bit SIMD values. |
1606 class Simd128Value : public HeapObject { | 1606 class Simd128Value : public HeapObject { |
1607 public: | 1607 public: |
1608 DECLARE_CAST(Simd128Value) | 1608 DECLARE_CAST(Simd128Value) |
1609 | 1609 |
1610 // Checks that another instance is bit-wise equal. | 1610 // Checks that another instance is bit-wise equal. |
1611 bool BitwiseEquals(const Simd128Value* other) const; | 1611 bool BitwiseEquals(const Simd128Value* other) const; |
1612 // Computes a hash from the 128 bit value, viewed as 4 32-bit integers. | 1612 // Computes a hash from the 128 bit value, viewed as 4 32-bit integers. |
1613 uint32_t Hash() const; | 1613 uint32_t Hash() const; |
| 1614 // Copies the 16 bytes of SIMD data to the destination address. |
| 1615 void CopyBits(void* destination) const; |
1614 | 1616 |
1615 // Layout description. | 1617 // Layout description. |
1616 static const int kValueOffset = HeapObject::kHeaderSize; | 1618 static const int kValueOffset = HeapObject::kHeaderSize; |
1617 static const int kSize = kValueOffset + kSimd128Size; | 1619 static const int kSize = kValueOffset + kSimd128Size; |
1618 | 1620 |
1619 private: | 1621 private: |
1620 DISALLOW_IMPLICIT_CONSTRUCTORS(Simd128Value); | 1622 DISALLOW_IMPLICIT_CONSTRUCTORS(Simd128Value); |
1621 }; | 1623 }; |
1622 | 1624 |
1623 | 1625 |
(...skipping 8919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10543 } else { | 10545 } else { |
10544 value &= ~(1 << bit_position); | 10546 value &= ~(1 << bit_position); |
10545 } | 10547 } |
10546 return value; | 10548 return value; |
10547 } | 10549 } |
10548 }; | 10550 }; |
10549 | 10551 |
10550 } } // namespace v8::internal | 10552 } } // namespace v8::internal |
10551 | 10553 |
10552 #endif // V8_OBJECTS_H_ | 10554 #endif // V8_OBJECTS_H_ |
OLD | NEW |