| 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/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/token.h" | 10 #include "vm/token.h" |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 RawObject** to() { | 621 RawObject** to() { |
| 622 return reinterpret_cast<RawObject**>(&ptr()->data_); | 622 return reinterpret_cast<RawObject**>(&ptr()->data_); |
| 623 } | 623 } |
| 624 | 624 |
| 625 intptr_t token_pos_; | 625 intptr_t token_pos_; |
| 626 intptr_t end_token_pos_; | 626 intptr_t end_token_pos_; |
| 627 intptr_t usage_counter_; // Incremented while function is running. | 627 intptr_t usage_counter_; // Incremented while function is running. |
| 628 int16_t num_fixed_parameters_; | 628 int16_t num_fixed_parameters_; |
| 629 int16_t num_optional_parameters_; // > 0: positional; < 0: named. | 629 int16_t num_optional_parameters_; // > 0: positional; < 0: named. |
| 630 int16_t deoptimization_counter_; | 630 int16_t deoptimization_counter_; |
| 631 uint16_t kind_tag_; | 631 uint16_t kind_tag_; // See Function::KindTagBits. |
| 632 uint16_t optimized_instruction_count_; | 632 uint16_t optimized_instruction_count_; |
| 633 uint16_t optimized_call_site_count_; | 633 uint16_t optimized_call_site_count_; |
| 634 }; | 634 }; |
| 635 | 635 |
| 636 | 636 |
| 637 class RawClosureData : public RawObject { | 637 class RawClosureData : public RawObject { |
| 638 private: | 638 private: |
| 639 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData); | 639 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData); |
| 640 | 640 |
| 641 RawObject** from() { | 641 RawObject** from() { |
| (...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1711 // Make sure this is updated when new TypedData types are added. | 1711 // Make sure this is updated when new TypedData types are added. |
| 1712 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); | 1712 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); |
| 1713 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); | 1713 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); |
| 1714 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); | 1714 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); |
| 1715 return (kNullCid - kTypedDataInt8ArrayCid); | 1715 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1716 } | 1716 } |
| 1717 | 1717 |
| 1718 } // namespace dart | 1718 } // namespace dart |
| 1719 | 1719 |
| 1720 #endif // VM_RAW_OBJECT_H_ | 1720 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |