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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
575 intptr_t end_token_pos_; | 575 intptr_t end_token_pos_; |
576 intptr_t num_fixed_parameters_; | 576 intptr_t num_fixed_parameters_; |
577 intptr_t num_optional_parameters_; | 577 intptr_t num_optional_parameters_; |
578 intptr_t usage_counter_; // Incremented while function is running. | 578 intptr_t usage_counter_; // Incremented while function is running. |
579 intptr_t deoptimization_counter_; | 579 intptr_t deoptimization_counter_; |
580 Kind kind_; | 580 Kind kind_; |
581 bool is_static_; | 581 bool is_static_; |
582 bool is_const_; | 582 bool is_const_; |
583 bool is_optimizable_; | 583 bool is_optimizable_; |
584 bool is_native_; | 584 bool is_native_; |
585 bool is_external_; | |
siva
2012/07/30 17:12:39
I think we should make these bools a bit field set
Ivan Posva
2012/07/30 22:33:33
As far as I know this is something Todd had starte
| |
585 }; | 586 }; |
586 | 587 |
587 | 588 |
588 class RawField : public RawObject { | 589 class RawField : public RawObject { |
589 RAW_HEAP_OBJECT_IMPLEMENTATION(Field); | 590 RAW_HEAP_OBJECT_IMPLEMENTATION(Field); |
590 | 591 |
591 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 592 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
592 RawString* name_; | 593 RawString* name_; |
593 RawClass* owner_; | 594 RawClass* owner_; |
594 RawAbstractType* type_; | 595 RawAbstractType* type_; |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1516 kExternalUint64Array == kByteArray + 18 && | 1517 kExternalUint64Array == kByteArray + 18 && |
1517 kExternalFloat32Array == kByteArray + 19 && | 1518 kExternalFloat32Array == kByteArray + 19 && |
1518 kExternalFloat64Array == kByteArray + 20 && | 1519 kExternalFloat64Array == kByteArray + 20 && |
1519 kClosure == kByteArray + 21); | 1520 kClosure == kByteArray + 21); |
1520 return (index >= kByteArray && index <= kClosure); | 1521 return (index >= kByteArray && index <= kClosure); |
1521 } | 1522 } |
1522 | 1523 |
1523 } // namespace dart | 1524 } // namespace dart |
1524 | 1525 |
1525 #endif // VM_RAW_OBJECT_H_ | 1526 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |