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 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1606 | 1606 |
1607 // The SimdValue128 class describes heap allocated 128 bit SIMD values. | 1607 // The SimdValue128 class describes heap allocated 128 bit SIMD values. |
1608 class Simd128Value : public HeapObject { | 1608 class Simd128Value : public HeapObject { |
1609 public: | 1609 public: |
1610 DECLARE_CAST(Simd128Value) | 1610 DECLARE_CAST(Simd128Value) |
1611 | 1611 |
1612 // Checks that another instance is bit-wise equal. | 1612 // Checks that another instance is bit-wise equal. |
1613 bool BitwiseEquals(const Simd128Value* other) const; | 1613 bool BitwiseEquals(const Simd128Value* other) const; |
1614 // Computes a hash from the 128 bit value, viewed as 4 32-bit integers. | 1614 // Computes a hash from the 128 bit value, viewed as 4 32-bit integers. |
1615 uint32_t Hash() const; | 1615 uint32_t Hash() const; |
| 1616 // Copies the 16 bytes of SIMD data to the destination address. |
| 1617 void CopyBits(void* destination) const; |
1616 | 1618 |
1617 // Layout description. | 1619 // Layout description. |
1618 static const int kValueOffset = HeapObject::kHeaderSize; | 1620 static const int kValueOffset = HeapObject::kHeaderSize; |
1619 static const int kSize = kValueOffset + kSimd128Size; | 1621 static const int kSize = kValueOffset + kSimd128Size; |
1620 | 1622 |
1621 private: | 1623 private: |
1622 DISALLOW_IMPLICIT_CONSTRUCTORS(Simd128Value); | 1624 DISALLOW_IMPLICIT_CONSTRUCTORS(Simd128Value); |
1623 }; | 1625 }; |
1624 | 1626 |
1625 | 1627 |
(...skipping 8966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10592 } else { | 10594 } else { |
10593 value &= ~(1 << bit_position); | 10595 value &= ~(1 << bit_position); |
10594 } | 10596 } |
10595 return value; | 10597 return value; |
10596 } | 10598 } |
10597 }; | 10599 }; |
10598 | 10600 |
10599 } } // namespace v8::internal | 10601 } } // namespace v8::internal |
10600 | 10602 |
10601 #endif // V8_OBJECTS_H_ | 10603 #endif // V8_OBJECTS_H_ |
OLD | NEW |