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

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

Issue 1278003002: Change heuristic to determine which fields contain modifieable double boxes: do it if field was ini… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: s 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
« no previous file with comments | « runtime/vm/parser.cc ('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/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 840
841 int32_t token_pos_; 841 int32_t token_pos_;
842 classid_t guarded_cid_; 842 classid_t guarded_cid_;
843 classid_t is_nullable_; // kNullCid if field can contain null value and 843 classid_t is_nullable_; // kNullCid if field can contain null value and
844 // any other value otherwise. 844 // any other value otherwise.
845 // Offset to the guarded length field inside an instance of class matching 845 // Offset to the guarded length field inside an instance of class matching
846 // guarded_cid_. Stored corrected by -kHeapObjectTag to simplify code 846 // guarded_cid_. Stored corrected by -kHeapObjectTag to simplify code
847 // generated on platforms with weak addressing modes (ARM, MIPS). 847 // generated on platforms with weak addressing modes (ARM, MIPS).
848 int8_t guarded_list_length_in_object_offset_; 848 int8_t guarded_list_length_in_object_offset_;
849 849
850 uint8_t kind_bits_; // static, final, const, has initializer. 850 uint8_t kind_bits_; // static, final, const, has initializer....
851 }; 851 };
852 852
853 853
854 class RawLiteralToken : public RawObject { 854 class RawLiteralToken : public RawObject {
855 RAW_HEAP_OBJECT_IMPLEMENTATION(LiteralToken); 855 RAW_HEAP_OBJECT_IMPLEMENTATION(LiteralToken);
856 856
857 RawObject** from() { 857 RawObject** from() {
858 return reinterpret_cast<RawObject**>(&ptr()->literal_); 858 return reinterpret_cast<RawObject**>(&ptr()->literal_);
859 } 859 }
860 RawString* literal_; // Literal characters as they appear in source text. 860 RawString* literal_; // Literal characters as they appear in source text.
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
2194 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2194 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2195 kTypedDataInt8ArrayViewCid + 15); 2195 kTypedDataInt8ArrayViewCid + 15);
2196 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2196 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2197 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2197 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2198 return (kNullCid - kTypedDataInt8ArrayCid); 2198 return (kNullCid - kTypedDataInt8ArrayCid);
2199 } 2199 }
2200 2200
2201 } // namespace dart 2201 } // namespace dart
2202 2202
2203 #endif // VM_RAW_OBJECT_H_ 2203 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698