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

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

Issue 133273015: Replace debugging code with asserts in snapshotter. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 intptr_t next_field_offset_in_words_; // Offset of the next instance field. 506 intptr_t next_field_offset_in_words_; // Offset of the next instance field.
507 int16_t num_type_arguments_; // Number of type arguments in flatten vector. 507 int16_t num_type_arguments_; // Number of type arguments in flatten vector.
508 int16_t num_own_type_arguments_; // Number of non-overlapping type arguments. 508 int16_t num_own_type_arguments_; // Number of non-overlapping type arguments.
509 uint16_t num_native_fields_; // Number of native fields in class. 509 uint16_t num_native_fields_; // Number of native fields in class.
510 uint16_t state_bits_; 510 uint16_t state_bits_;
511 511
512 friend class Instance; 512 friend class Instance;
513 friend class Object; 513 friend class Object;
514 friend class RawInstance; 514 friend class RawInstance;
515 friend class RawInstructions; 515 friend class RawInstructions;
516 friend class RawType; // TODO(regis): To temporarily print unfinalized types.
517 friend class RawTypeParameter; // To temporarily print unfinalized types.
518 friend class SnapshotReader; 516 friend class SnapshotReader;
519 }; 517 };
520 518
521 519
522 class RawUnresolvedClass : public RawObject { 520 class RawUnresolvedClass : public RawObject {
523 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass); 521 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass);
524 522
525 RawObject** from() { 523 RawObject** from() {
526 return reinterpret_cast<RawObject**>(&ptr()->library_prefix_); 524 return reinterpret_cast<RawObject**>(&ptr()->library_prefix_);
527 } 525 }
(...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 // Make sure this is updated when new TypedData types are added. 1744 // Make sure this is updated when new TypedData types are added.
1747 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13); 1745 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13);
1748 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14); 1746 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14);
1749 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13); 1747 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13);
1750 return (kNullCid - kTypedDataInt8ArrayCid); 1748 return (kNullCid - kTypedDataInt8ArrayCid);
1751 } 1749 }
1752 1750
1753 } // namespace dart 1751 } // namespace dart
1754 1752
1755 #endif // VM_RAW_OBJECT_H_ 1753 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698