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

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

Issue 1715123003: - Add DEBUG_ONLY and NOT_IN_PRODUCT macros. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update status files. Created 4 years, 10 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/timeline.h » ('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/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 kAllocated = 0, // Initial state. 659 kAllocated = 0, // Initial state.
660 kPreFinalized, // VM classes: size precomputed, but no checks done. 660 kPreFinalized, // VM classes: size precomputed, but no checks done.
661 kFinalized, // Class parsed, finalized and ready for use. 661 kFinalized, // Class parsed, finalized and ready for use.
662 }; 662 };
663 663
664 private: 664 private:
665 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); 665 RAW_HEAP_OBJECT_IMPLEMENTATION(Class);
666 666
667 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 667 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
668 RawString* name_; 668 RawString* name_;
669 RawString* user_name_; 669 NOT_IN_PRODUCT(RawString* user_name_);
670 RawArray* functions_; 670 RawArray* functions_;
671 RawArray* functions_hash_table_; 671 RawArray* functions_hash_table_;
672 RawArray* fields_; 672 RawArray* fields_;
673 RawArray* offset_in_words_to_field_; 673 RawArray* offset_in_words_to_field_;
674 RawArray* interfaces_; // Array of AbstractType. 674 RawArray* interfaces_; // Array of AbstractType.
675 RawGrowableObjectArray* direct_subclasses_; // Array of Class. 675 RawGrowableObjectArray* direct_subclasses_; // Array of Class.
676 RawScript* script_; 676 RawScript* script_;
677 RawLibrary* library_; 677 RawLibrary* library_;
678 RawTypeArguments* type_parameters_; // Array of TypeParameter. 678 RawTypeArguments* type_parameters_; // Array of TypeParameter.
679 RawAbstractType* super_type_; 679 RawAbstractType* super_type_;
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
2348 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2348 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2349 kTypedDataInt8ArrayViewCid + 15); 2349 kTypedDataInt8ArrayViewCid + 15);
2350 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2350 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2351 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2351 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2352 return (kNullCid - kTypedDataInt8ArrayCid); 2352 return (kNullCid - kTypedDataInt8ArrayCid);
2353 } 2353 }
2354 2354
2355 } // namespace dart 2355 } // namespace dart
2356 2356
2357 #endif // VM_RAW_OBJECT_H_ 2357 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/timeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698