| 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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 RawObject** to() { | 845 RawObject** to() { |
| 846 return reinterpret_cast<RawObject**>(&ptr()->unoptimized_code_); | 846 return reinterpret_cast<RawObject**>(&ptr()->unoptimized_code_); |
| 847 } | 847 } |
| 848 uword entry_point_; | 848 uword entry_point_; |
| 849 | 849 |
| 850 TokenPosition token_pos_; | 850 TokenPosition token_pos_; |
| 851 TokenPosition end_token_pos_; | 851 TokenPosition end_token_pos_; |
| 852 int32_t usage_counter_; // Incremented while function is running. | 852 int32_t usage_counter_; // Incremented while function is running. |
| 853 int16_t num_fixed_parameters_; | 853 int16_t num_fixed_parameters_; |
| 854 int16_t num_optional_parameters_; // > 0: positional; < 0: named. | 854 int16_t num_optional_parameters_; // > 0: positional; < 0: named. |
| 855 int16_t deoptimization_counter_; | 855 int8_t deoptimization_counter_; |
| 856 int8_t was_compiled_; |
| 856 uint32_t kind_tag_; // See Function::KindTagBits. | 857 uint32_t kind_tag_; // See Function::KindTagBits. |
| 857 uint16_t optimized_instruction_count_; | 858 uint16_t optimized_instruction_count_; |
| 858 uint16_t optimized_call_site_count_; | 859 uint16_t optimized_call_site_count_; |
| 859 }; | 860 }; |
| 860 | 861 |
| 861 | 862 |
| 862 class RawClosureData : public RawObject { | 863 class RawClosureData : public RawObject { |
| 863 private: | 864 private: |
| 864 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData); | 865 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData); |
| 865 | 866 |
| (...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2366 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2367 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2367 kTypedDataInt8ArrayViewCid + 15); | 2368 kTypedDataInt8ArrayViewCid + 15); |
| 2368 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2369 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2369 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2370 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2370 return (kNullCid - kTypedDataInt8ArrayCid); | 2371 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2371 } | 2372 } |
| 2372 | 2373 |
| 2373 } // namespace dart | 2374 } // namespace dart |
| 2374 | 2375 |
| 2375 #endif // VM_RAW_OBJECT_H_ | 2376 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |