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

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

Issue 203523011: Introduce a lazy-compile stub for functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebased Created 6 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 860
861 friend class RawCode; 861 friend class RawCode;
862 friend class Code; 862 friend class Code;
863 friend class StackFrame; 863 friend class StackFrame;
864 }; 864 };
865 865
866 866
867 class RawPcDescriptors : public RawObject { 867 class RawPcDescriptors : public RawObject {
868 RAW_HEAP_OBJECT_IMPLEMENTATION(PcDescriptors); 868 RAW_HEAP_OBJECT_IMPLEMENTATION(PcDescriptors);
869 869
870 RawSmi* length_; // Number of descriptors. 870 intptr_t length_; // Number of descriptors.
871 871
872 // Variable length data follows here. 872 // Variable length data follows here.
873 intptr_t data_[0]; 873 intptr_t data_[0];
874 874
875 friend class Object; 875 friend class Object;
876 }; 876 };
877 877
878 878
879 // Stackmap is an immutable representation of the layout of the stack at a 879 // Stackmap is an immutable representation of the layout of the stack at a
880 // PC. The stack map representation consists of a bit map which marks each 880 // PC. The stack map representation consists of a bit map which marks each
881 // live object index starting from the base of the frame. 881 // live object index starting from the base of the frame.
882 // 882 //
883 // The Stackmap also consists of a link to the code object corresponding to 883 // The Stackmap also consists of a link to the code object corresponding to
884 // the frame which the stack map is describing. The bit map representation 884 // the frame which the stack map is describing. The bit map representation
885 // is optimized for dense and small bit maps, without any upper bound. 885 // is optimized for dense and small bit maps, without any upper bound.
886 class RawStackmap : public RawObject { 886 class RawStackmap : public RawObject {
887 RAW_HEAP_OBJECT_IMPLEMENTATION(Stackmap); 887 RAW_HEAP_OBJECT_IMPLEMENTATION(Stackmap);
888 888
889 RawCode* code_; // Code object corresponding to the frame described.
890
891 // TODO(kmillikin): We need a small number of bits to encode the register 889 // TODO(kmillikin): We need a small number of bits to encode the register
892 // count. Consider packing them in with the length. 890 // count. Consider packing them in with the length.
893 intptr_t length_; // Length of payload, in bits. 891 intptr_t length_; // Length of payload, in bits.
894 intptr_t register_bit_count_; // Live register bits, included in length_. 892 intptr_t register_bit_count_; // Live register bits, included in length_.
895 893
896 uword pc_; // PC corresponding to this stack map representation. 894 uword pc_; // PC corresponding to this stack map representation.
897 895
898 // Variable length data follows here (bitmap of the stack layout). 896 // Variable length data follows here (bitmap of the stack layout).
899 uint8_t data_[0]; 897 uint8_t data_[0];
900 }; 898 };
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
1782 // Make sure this is updated when new TypedData types are added. 1780 // Make sure this is updated when new TypedData types are added.
1783 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1781 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1784 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); 1782 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15);
1785 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1783 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1786 return (kNullCid - kTypedDataInt8ArrayCid); 1784 return (kNullCid - kTypedDataInt8ArrayCid);
1787 } 1785 }
1788 1786
1789 } // namespace dart 1787 } // namespace dart
1790 1788
1791 #endif // VM_RAW_OBJECT_H_ 1789 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698