| 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 return reinterpret_cast<RawObject**>(&ptr()->data_); | 552 return reinterpret_cast<RawObject**>(&ptr()->data_); |
| 553 } | 553 } |
| 554 | 554 |
| 555 intptr_t token_pos_; | 555 intptr_t token_pos_; |
| 556 intptr_t end_token_pos_; | 556 intptr_t end_token_pos_; |
| 557 intptr_t usage_counter_; // Incremented while function is running. | 557 intptr_t usage_counter_; // Incremented while function is running. |
| 558 int16_t num_fixed_parameters_; | 558 int16_t num_fixed_parameters_; |
| 559 int16_t num_optional_parameters_; // > 0: positional; < 0: named. | 559 int16_t num_optional_parameters_; // > 0: positional; < 0: named. |
| 560 uint16_t deoptimization_counter_; | 560 uint16_t deoptimization_counter_; |
| 561 uint16_t kind_tag_; | 561 uint16_t kind_tag_; |
| 562 uint16_t optimized_instruction_count_; |
| 563 uint16_t optimized_call_site_count_; |
| 562 }; | 564 }; |
| 563 | 565 |
| 564 | 566 |
| 565 class RawClosureData : public RawObject { | 567 class RawClosureData : public RawObject { |
| 566 private: | 568 private: |
| 567 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData); | 569 RAW_HEAP_OBJECT_IMPLEMENTATION(ClosureData); |
| 568 | 570 |
| 569 RawObject** from() { | 571 RawObject** from() { |
| 570 return reinterpret_cast<RawObject**>(&ptr()->context_scope_); | 572 return reinterpret_cast<RawObject**>(&ptr()->context_scope_); |
| 571 } | 573 } |
| (...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1673 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 8 && | 1675 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 8 && |
| 1674 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 9 && | 1676 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 9 && |
| 1675 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 10 && | 1677 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 10 && |
| 1676 kStacktraceCid == kExternalInt8ArrayCid + 11); | 1678 kStacktraceCid == kExternalInt8ArrayCid + 11); |
| 1677 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); | 1679 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); |
| 1678 } | 1680 } |
| 1679 | 1681 |
| 1680 } // namespace dart | 1682 } // namespace dart |
| 1681 | 1683 |
| 1682 #endif // VM_RAW_OBJECT_H_ | 1684 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |