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

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

Issue 304703002: Split GuardField into GuardFieldType and GuardFieldLength instructions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « runtime/vm/parser.cc ('k') | 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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 RawArray* dependent_code_; 678 RawArray* dependent_code_;
679 RawSmi* guarded_list_length_; 679 RawSmi* guarded_list_length_;
680 RawObject** to() { 680 RawObject** to() {
681 return reinterpret_cast<RawObject**>(&ptr()->guarded_list_length_); 681 return reinterpret_cast<RawObject**>(&ptr()->guarded_list_length_);
682 } 682 }
683 683
684 intptr_t token_pos_; 684 intptr_t token_pos_;
685 intptr_t guarded_cid_; 685 intptr_t guarded_cid_;
686 intptr_t is_nullable_; // kNullCid if field can contain null value and 686 intptr_t is_nullable_; // kNullCid if field can contain null value and
687 // any other value otherwise. 687 // any other value otherwise.
688 // Offset to the guarded length field inside an instance of class matching
689 // guarded_cid_. Stored corrected by -kHeapObjectTag to simplify code
690 // generated on platforms with weak addressing modes (ARM, MIPS).
691 int8_t guarded_list_length_in_object_offset_;
692
688 uint8_t kind_bits_; // static, final, const, has initializer. 693 uint8_t kind_bits_; // static, final, const, has initializer.
689 }; 694 };
690 695
691 696
692 class RawLiteralToken : public RawObject { 697 class RawLiteralToken : public RawObject {
693 RAW_HEAP_OBJECT_IMPLEMENTATION(LiteralToken); 698 RAW_HEAP_OBJECT_IMPLEMENTATION(LiteralToken);
694 699
695 RawObject** from() { 700 RawObject** from() {
696 return reinterpret_cast<RawObject**>(&ptr()->literal_); 701 return reinterpret_cast<RawObject**>(&ptr()->literal_);
697 } 702 }
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1840 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1845 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1841 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 1846 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
1842 kTypedDataInt8ArrayViewCid + 15); 1847 kTypedDataInt8ArrayViewCid + 15);
1843 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1848 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1844 return (kNullCid - kTypedDataInt8ArrayCid); 1849 return (kNullCid - kTypedDataInt8ArrayCid);
1845 } 1850 }
1846 1851
1847 } // namespace dart 1852 } // namespace dart
1848 1853
1849 #endif // VM_RAW_OBJECT_H_ 1854 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698