| 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 604 |
| 605 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 605 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| 606 RawString* name_; | 606 RawString* name_; |
| 607 RawObject* owner_; // Class or patch class or mixin class | 607 RawObject* owner_; // Class or patch class or mixin class |
| 608 // where this function is defined. | 608 // where this function is defined. |
| 609 RawAbstractType* result_type_; | 609 RawAbstractType* result_type_; |
| 610 RawArray* parameter_types_; | 610 RawArray* parameter_types_; |
| 611 RawArray* parameter_names_; | 611 RawArray* parameter_names_; |
| 612 RawCode* code_; // Compiled code for the function. | 612 RawCode* code_; // Compiled code for the function. |
| 613 RawCode* unoptimized_code_; // Unoptimized code, keep it after optimization. | 613 RawCode* unoptimized_code_; // Unoptimized code, keep it after optimization. |
| 614 RawArray* deopt_history_; // Deopt Ids of past deoptimizations. | |
| 615 RawObject* data_; // Additional data specific to the function kind. | 614 RawObject* data_; // Additional data specific to the function kind. |
| 616 RawObject** to() { | 615 RawObject** to() { |
| 617 return reinterpret_cast<RawObject**>(&ptr()->data_); | 616 return reinterpret_cast<RawObject**>(&ptr()->data_); |
| 618 } | 617 } |
| 619 | 618 |
| 620 intptr_t token_pos_; | 619 intptr_t token_pos_; |
| 621 intptr_t end_token_pos_; | 620 intptr_t end_token_pos_; |
| 622 intptr_t usage_counter_; // Incremented while function is running. | 621 intptr_t usage_counter_; // Incremented while function is running. |
| 623 int16_t num_fixed_parameters_; | 622 int16_t num_fixed_parameters_; |
| 624 int16_t num_optional_parameters_; // > 0: positional; < 0: named. | 623 int16_t num_optional_parameters_; // > 0: positional; < 0: named. |
| (...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1688 // Make sure this is updated when new TypedData types are added. | 1687 // Make sure this is updated when new TypedData types are added. |
| 1689 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); | 1688 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); |
| 1690 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); | 1689 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); |
| 1691 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); | 1690 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); |
| 1692 return (kNullCid - kTypedDataInt8ArrayCid); | 1691 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1693 } | 1692 } |
| 1694 | 1693 |
| 1695 } // namespace dart | 1694 } // namespace dart |
| 1696 | 1695 |
| 1697 #endif // VM_RAW_OBJECT_H_ | 1696 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |