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

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

Issue 13472019: - Create an all static TypedDataView class which uses implicit field offset (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
« runtime/vm/class_finalizer.cc ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 friend class Object; 423 friend class Object;
424 friend class RawExternalTypedData; 424 friend class RawExternalTypedData;
425 friend class RawInstructions; 425 friend class RawInstructions;
426 friend class RawInstance; 426 friend class RawInstance;
427 friend class RawTypedData; 427 friend class RawTypedData;
428 friend class Scavenger; 428 friend class Scavenger;
429 friend class SnapshotReader; 429 friend class SnapshotReader;
430 friend class SnapshotWriter; 430 friend class SnapshotWriter;
431 friend class String; 431 friend class String;
432 friend class TypedData; 432 friend class TypedData;
433 friend class TypedDataView;
433 434
434 DISALLOW_ALLOCATION(); 435 DISALLOW_ALLOCATION();
435 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); 436 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject);
436 }; 437 };
437 438
438 439
439 class RawClass : public RawObject { 440 class RawClass : public RawObject {
440 public: 441 public:
441 enum ClassState { 442 enum ClassState {
442 kAllocated, // Initial state. 443 kAllocated, // Initial state.
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1667 // Make sure this is updated when new TypedData types are added. 1668 // Make sure this is updated when new TypedData types are added.
1668 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); 1669 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12);
1669 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); 1670 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13);
1670 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); 1671 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12);
1671 return (kNullCid - kTypedDataInt8ArrayCid); 1672 return (kNullCid - kTypedDataInt8ArrayCid);
1672 } 1673 }
1673 1674
1674 } // namespace dart 1675 } // namespace dart
1675 1676
1676 #endif // VM_RAW_OBJECT_H_ 1677 #endif // VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/class_finalizer.cc ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698