OLD | NEW |
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 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 RawObject** to() { | 771 RawObject** to() { |
772 return reinterpret_cast<RawObject**>(&ptr()->unoptimized_code_); | 772 return reinterpret_cast<RawObject**>(&ptr()->unoptimized_code_); |
773 } | 773 } |
774 | 774 |
775 int32_t token_pos_; | 775 int32_t token_pos_; |
776 int32_t end_token_pos_; | 776 int32_t end_token_pos_; |
777 int32_t usage_counter_; // Incremented while function is running. | 777 int32_t usage_counter_; // Incremented while function is running. |
778 int16_t num_fixed_parameters_; | 778 int16_t num_fixed_parameters_; |
779 int16_t num_optional_parameters_; // > 0: positional; < 0: named. | 779 int16_t num_optional_parameters_; // > 0: positional; < 0: named. |
780 int16_t deoptimization_counter_; | 780 int16_t deoptimization_counter_; |
781 classid_t regexp_cid_; | |
782 uint32_t kind_tag_; // See Function::KindTagBits. | 781 uint32_t kind_tag_; // See Function::KindTagBits. |
783 uint16_t optimized_instruction_count_; | 782 uint16_t optimized_instruction_count_; |
784 uint16_t optimized_call_site_count_; | 783 uint16_t optimized_call_site_count_; |
785 }; | 784 }; |
786 | 785 |
787 | 786 |
788 class RawClosureData : public RawObject { | 787 class RawClosureData : public RawObject { |
789 private: | 788 private: |
790 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData); | 789 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData); |
791 | 790 |
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2194 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2193 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2195 kTypedDataInt8ArrayViewCid + 15); | 2194 kTypedDataInt8ArrayViewCid + 15); |
2196 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2195 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2197 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2196 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2198 return (kNullCid - kTypedDataInt8ArrayCid); | 2197 return (kNullCid - kTypedDataInt8ArrayCid); |
2199 } | 2198 } |
2200 | 2199 |
2201 } // namespace dart | 2200 } // namespace dart |
2202 | 2201 |
2203 #endif // VM_RAW_OBJECT_H_ | 2202 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |