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

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

Issue 2411823003: VM support for running Kernel binaries. (Closed)
Patch Set: Address comments Created 4 years, 2 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') | 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/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 #endif 862 #endif
863 } 863 }
864 864
865 NOT_IN_PRECOMPILED(TokenPosition token_pos_); 865 NOT_IN_PRECOMPILED(TokenPosition token_pos_);
866 NOT_IN_PRECOMPILED(TokenPosition end_token_pos_); 866 NOT_IN_PRECOMPILED(TokenPosition end_token_pos_);
867 NOT_IN_PRECOMPILED(int32_t usage_counter_); // Accessed from generated code 867 NOT_IN_PRECOMPILED(int32_t usage_counter_); // Accessed from generated code
868 // (JIT only). 868 // (JIT only).
869 uint32_t kind_tag_; // See Function::KindTagBits. 869 uint32_t kind_tag_; // See Function::KindTagBits.
870 int16_t num_fixed_parameters_; 870 int16_t num_fixed_parameters_;
871 int16_t num_optional_parameters_; // > 0: positional; < 0: named. 871 int16_t num_optional_parameters_; // > 0: positional; < 0: named.
872 NOT_IN_PRECOMPILED(void* kernel_function_);
872 NOT_IN_PRECOMPILED(uint16_t optimized_instruction_count_); 873 NOT_IN_PRECOMPILED(uint16_t optimized_instruction_count_);
873 NOT_IN_PRECOMPILED(uint16_t optimized_call_site_count_); 874 NOT_IN_PRECOMPILED(uint16_t optimized_call_site_count_);
874 NOT_IN_PRECOMPILED(int8_t deoptimization_counter_); 875 NOT_IN_PRECOMPILED(int8_t deoptimization_counter_);
875 NOT_IN_PRECOMPILED(int8_t was_compiled_); 876 NOT_IN_PRECOMPILED(int8_t was_compiled_);
876 }; 877 };
877 878
878 879
879 class RawClosureData : public RawObject { 880 class RawClosureData : public RawObject {
880 private: 881 private:
881 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData); 882 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 TokenPosition token_pos_; 958 TokenPosition token_pos_;
958 classid_t guarded_cid_; 959 classid_t guarded_cid_;
959 classid_t is_nullable_; // kNullCid if field can contain null value and 960 classid_t is_nullable_; // kNullCid if field can contain null value and
960 // any other value otherwise. 961 // any other value otherwise.
961 // Offset to the guarded length field inside an instance of class matching 962 // Offset to the guarded length field inside an instance of class matching
962 // guarded_cid_. Stored corrected by -kHeapObjectTag to simplify code 963 // guarded_cid_. Stored corrected by -kHeapObjectTag to simplify code
963 // generated on platforms with weak addressing modes (ARM, MIPS). 964 // generated on platforms with weak addressing modes (ARM, MIPS).
964 int8_t guarded_list_length_in_object_offset_; 965 int8_t guarded_list_length_in_object_offset_;
965 966
966 uint8_t kind_bits_; // static, final, const, has initializer.... 967 uint8_t kind_bits_; // static, final, const, has initializer....
968 NOT_IN_PRECOMPILED(void* kernel_field_);
967 969
968 friend class CidRewriteVisitor; 970 friend class CidRewriteVisitor;
969 }; 971 };
970 972
971 973
972 class RawLiteralToken : public RawObject { 974 class RawLiteralToken : public RawObject {
973 RAW_HEAP_OBJECT_IMPLEMENTATION(LiteralToken); 975 RAW_HEAP_OBJECT_IMPLEMENTATION(LiteralToken);
974 976
975 RawObject** from() { 977 RawObject** from() {
976 return reinterpret_cast<RawObject**>(&ptr()->literal_); 978 return reinterpret_cast<RawObject**>(&ptr()->literal_);
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
2482 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2484 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2483 kTypedDataInt8ArrayViewCid + 15); 2485 kTypedDataInt8ArrayViewCid + 15);
2484 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2486 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2485 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2487 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2486 return (kNullCid - kTypedDataInt8ArrayCid); 2488 return (kNullCid - kTypedDataInt8ArrayCid);
2487 } 2489 }
2488 2490
2489 } // namespace dart 2491 } // namespace dart
2490 2492
2491 #endif // VM_RAW_OBJECT_H_ 2493 #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