| 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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 | 869 |
| 870 | 870 |
| 871 class RawICData : public RawObject { | 871 class RawICData : public RawObject { |
| 872 RAW_HEAP_OBJECT_IMPLEMENTATION(ICData); | 872 RAW_HEAP_OBJECT_IMPLEMENTATION(ICData); |
| 873 | 873 |
| 874 RawObject** from() { | 874 RawObject** from() { |
| 875 return reinterpret_cast<RawObject**>(&ptr()->function_); | 875 return reinterpret_cast<RawObject**>(&ptr()->function_); |
| 876 } | 876 } |
| 877 RawFunction* function_; // Parent/calling function of this IC. | 877 RawFunction* function_; // Parent/calling function of this IC. |
| 878 RawString* target_name_; // Name of target function. | 878 RawString* target_name_; // Name of target function. |
| 879 RawArray* ic_data_; // Contains test classes and target function. | 879 RawArray* ic_data_; // Contains test class-ids and target functions. |
| 880 RawObject** to() { | 880 RawObject** to() { |
| 881 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); | 881 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); |
| 882 } | 882 } |
| 883 intptr_t id_; // Parser node id corresponding to this IC. | 883 intptr_t id_; // Parser node id corresponding to this IC. |
| 884 intptr_t num_args_tested_; // Number of arguments tested in IC. | 884 intptr_t num_args_tested_; // Number of arguments tested in IC. |
| 885 }; | 885 }; |
| 886 | 886 |
| 887 | 887 |
| 888 class RawSubtypeTestCache : public RawObject { | 888 class RawSubtypeTestCache : public RawObject { |
| 889 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); | 889 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1507 kExternalUint64Array == kByteArray + 18 && | 1507 kExternalUint64Array == kByteArray + 18 && |
| 1508 kExternalFloat32Array == kByteArray + 19 && | 1508 kExternalFloat32Array == kByteArray + 19 && |
| 1509 kExternalFloat64Array == kByteArray + 20 && | 1509 kExternalFloat64Array == kByteArray + 20 && |
| 1510 kClosure == kByteArray + 21); | 1510 kClosure == kByteArray + 21); |
| 1511 return (index >= kByteArray && index <= kClosure); | 1511 return (index >= kByteArray && index <= kClosure); |
| 1512 } | 1512 } |
| 1513 | 1513 |
| 1514 } // namespace dart | 1514 } // namespace dart |
| 1515 | 1515 |
| 1516 #endif // VM_RAW_OBJECT_H_ | 1516 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |