| 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 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 } | 876 } |
| 877 }; | 877 }; |
| 878 | 878 |
| 879 | 879 |
| 880 class RawICData : public RawObject { | 880 class RawICData : public RawObject { |
| 881 RAW_HEAP_OBJECT_IMPLEMENTATION(ICData); | 881 RAW_HEAP_OBJECT_IMPLEMENTATION(ICData); |
| 882 | 882 |
| 883 RawObject** from() { | 883 RawObject** from() { |
| 884 return reinterpret_cast<RawObject**>(&ptr()->function_); | 884 return reinterpret_cast<RawObject**>(&ptr()->function_); |
| 885 } | 885 } |
| 886 RawFunction* function_; // Parent/calling function of this IC. | 886 RawFunction* function_; // Parent/calling function of this IC. |
| 887 RawString* target_name_; // Name of target function. | 887 RawString* target_name_; // Name of target function. |
| 888 RawArray* ic_data_; // Contains test class-ids and target functions. | 888 RawArray* ic_data_; // Contains test class-ids and target functions. |
| 889 RawObject** to() { | 889 RawObject** to() { |
| 890 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); | 890 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); |
| 891 } | 891 } |
| 892 intptr_t id_; // Parser node id corresponding to this IC. | 892 intptr_t id_; // Parser node id corresponding to this IC. |
| 893 intptr_t num_args_tested_; // Number of arguments tested in IC. | 893 intptr_t num_args_tested_; // Number of arguments tested in IC. |
| 894 }; | 894 }; |
| 895 | 895 |
| 896 | 896 |
| 897 class RawSubtypeTestCache : public RawObject { | 897 class RawSubtypeTestCache : public RawObject { |
| 898 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); | 898 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); |
| 899 RawArray* cache_; | 899 RawArray* cache_; |
| 900 }; | 900 }; |
| 901 | 901 |
| 902 | 902 |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 kExternalUint64Array == kByteArray + 18 && | 1516 kExternalUint64Array == kByteArray + 18 && |
| 1517 kExternalFloat32Array == kByteArray + 19 && | 1517 kExternalFloat32Array == kByteArray + 19 && |
| 1518 kExternalFloat64Array == kByteArray + 20 && | 1518 kExternalFloat64Array == kByteArray + 20 && |
| 1519 kClosure == kByteArray + 21); | 1519 kClosure == kByteArray + 21); |
| 1520 return (index >= kByteArray && index <= kClosure); | 1520 return (index >= kByteArray && index <= kClosure); |
| 1521 } | 1521 } |
| 1522 | 1522 |
| 1523 } // namespace dart | 1523 } // namespace dart |
| 1524 | 1524 |
| 1525 #endif // VM_RAW_OBJECT_H_ | 1525 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |