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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 RawClass* signature_class_; // Only for closure or signature function. | 606 RawClass* signature_class_; // Only for closure or signature function. |
607 RawCode* closure_allocation_stub_; // Stub code for allocation of closures. | 607 RawCode* closure_allocation_stub_; // Stub code for allocation of closures. |
608 RawFunction* implicit_closure_function_; // Implicit closure function. | 608 RawFunction* implicit_closure_function_; // Implicit closure function. |
609 RawObject** to() { | 609 RawObject** to() { |
610 return reinterpret_cast<RawObject**>(&ptr()->implicit_closure_function_); | 610 return reinterpret_cast<RawObject**>(&ptr()->implicit_closure_function_); |
611 } | 611 } |
612 | 612 |
613 intptr_t token_pos_; | 613 intptr_t token_pos_; |
614 intptr_t end_token_pos_; | 614 intptr_t end_token_pos_; |
615 intptr_t num_fixed_parameters_; | 615 intptr_t num_fixed_parameters_; |
616 intptr_t num_optional_parameters_; | 616 intptr_t num_optional_positional_parameters_; |
| 617 intptr_t num_optional_named_parameters_; |
617 intptr_t usage_counter_; // Incremented while function is running. | 618 intptr_t usage_counter_; // Incremented while function is running. |
618 intptr_t deoptimization_counter_; | 619 intptr_t deoptimization_counter_; |
619 intptr_t kind_tag_; | 620 intptr_t kind_tag_; |
620 }; | 621 }; |
621 | 622 |
622 | 623 |
623 class RawField : public RawObject { | 624 class RawField : public RawObject { |
624 RAW_HEAP_OBJECT_IMPLEMENTATION(Field); | 625 RAW_HEAP_OBJECT_IMPLEMENTATION(Field); |
625 | 626 |
626 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 627 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1590 kExternalUint64ArrayCid == kByteArrayCid + 18 && | 1591 kExternalUint64ArrayCid == kByteArrayCid + 18 && |
1591 kExternalFloat32ArrayCid == kByteArrayCid + 19 && | 1592 kExternalFloat32ArrayCid == kByteArrayCid + 19 && |
1592 kExternalFloat64ArrayCid == kByteArrayCid + 20 && | 1593 kExternalFloat64ArrayCid == kByteArrayCid + 20 && |
1593 kStacktraceCid == kByteArrayCid + 21); | 1594 kStacktraceCid == kByteArrayCid + 21); |
1594 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); | 1595 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); |
1595 } | 1596 } |
1596 | 1597 |
1597 } // namespace dart | 1598 } // namespace dart |
1598 | 1599 |
1599 #endif // VM_RAW_OBJECT_H_ | 1600 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |