Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: src/objects.h

Issue 1230343003: V8: Add SIMD functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« src/heap/heap.cc ('K') | « src/heap/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698