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

Side by Side Diff: runtime/vm/raw_object.h

Issue 12871015: SIMD plumbing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix FPU register move instruction on x64 Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
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 #ifndef VM_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1518 1518
1519 // Variable length data follows here. 1519 // Variable length data follows here.
1520 uint64_t data_[0]; 1520 uint64_t data_[0];
1521 }; 1521 };
1522 1522
1523 1523
1524 class RawFloat32x4Array : public RawByteArray { 1524 class RawFloat32x4Array : public RawByteArray {
1525 RAW_HEAP_OBJECT_IMPLEMENTATION(Float32x4Array); 1525 RAW_HEAP_OBJECT_IMPLEMENTATION(Float32x4Array);
1526 1526
1527 // Variable length data follows here. 1527 // Variable length data follows here.
1528 simd_value_t data_[0]; 1528 simd128_value_t data_[0];
1529 }; 1529 };
1530 1530
1531 class RawFloat32Array : public RawByteArray { 1531 class RawFloat32Array : public RawByteArray {
1532 RAW_HEAP_OBJECT_IMPLEMENTATION(Float32Array); 1532 RAW_HEAP_OBJECT_IMPLEMENTATION(Float32Array);
1533 1533
1534 // Variable length data follows here. 1534 // Variable length data follows here.
1535 float data_[0]; 1535 float data_[0];
1536 }; 1536 };
1537 1537
1538 1538
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalUint64Array); 1613 RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalUint64Array);
1614 1614
1615 uint64_t* data_; 1615 uint64_t* data_;
1616 void* peer_; 1616 void* peer_;
1617 }; 1617 };
1618 1618
1619 1619
1620 class RawExternalFloat32x4Array : public RawByteArray { 1620 class RawExternalFloat32x4Array : public RawByteArray {
1621 RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalFloat32x4Array); 1621 RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalFloat32x4Array);
1622 1622
1623 simd_value_t* data_; 1623 simd128_value_t* data_;
1624 void* peer_; 1624 void* peer_;
1625 }; 1625 };
1626 1626
1627 1627
1628 class RawExternalFloat32Array : public RawByteArray { 1628 class RawExternalFloat32Array : public RawByteArray {
1629 RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalFloat32Array); 1629 RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalFloat32Array);
1630 1630
1631 float* data_; 1631 float* data_;
1632 void* peer_; 1632 void* peer_;
1633 }; 1633 };
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1895 inline intptr_t RawObject::NumberOfTypedDataClasses() { 1895 inline intptr_t RawObject::NumberOfTypedDataClasses() {
1896 // Make sure this is updated when new TypedData types are added. 1896 // Make sure this is updated when new TypedData types are added.
1897 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayCid + 11); 1897 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayCid + 11);
1898 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 11); 1898 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 11);
1899 return (kNullCid - kTypedDataInt8ArrayCid); 1899 return (kNullCid - kTypedDataInt8ArrayCid);
1900 } 1900 }
1901 1901
1902 } // namespace dart 1902 } // namespace dart
1903 1903
1904 #endif // VM_RAW_OBJECT_H_ 1904 #endif // VM_RAW_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698