| 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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 | 963 |
| 964 RawObject** from() { | 964 RawObject** from() { |
| 965 return reinterpret_cast<RawObject**>(&ptr()->function_); | 965 return reinterpret_cast<RawObject**>(&ptr()->function_); |
| 966 } | 966 } |
| 967 RawFunction* function_; // Parent/calling function of this IC. | 967 RawFunction* function_; // Parent/calling function of this IC. |
| 968 RawString* target_name_; // Name of target function. | 968 RawString* target_name_; // Name of target function. |
| 969 RawArray* ic_data_; // Contains test class-ids and target functions. | 969 RawArray* ic_data_; // Contains test class-ids and target functions. |
| 970 RawObject** to() { | 970 RawObject** to() { |
| 971 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); | 971 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); |
| 972 } | 972 } |
| 973 intptr_t id_; // Parser node id corresponding to this IC. | 973 intptr_t deopt_id_; // Deoptimization id corresponding to this IC. |
| 974 intptr_t num_args_tested_; // Number of arguments tested in IC. | 974 intptr_t num_args_tested_; // Number of arguments tested in IC. |
| 975 }; | 975 }; |
| 976 | 976 |
| 977 | 977 |
| 978 class RawSubtypeTestCache : public RawObject { | 978 class RawSubtypeTestCache : public RawObject { |
| 979 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); | 979 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); |
| 980 RawArray* cache_; | 980 RawArray* cache_; |
| 981 }; | 981 }; |
| 982 | 982 |
| 983 | 983 |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1597 kExternalUint64Array == kByteArray + 18 && | 1597 kExternalUint64Array == kByteArray + 18 && |
| 1598 kExternalFloat32Array == kByteArray + 19 && | 1598 kExternalFloat32Array == kByteArray + 19 && |
| 1599 kExternalFloat64Array == kByteArray + 20 && | 1599 kExternalFloat64Array == kByteArray + 20 && |
| 1600 kClosure == kByteArray + 21); | 1600 kClosure == kByteArray + 21); |
| 1601 return (index >= kByteArray && index <= kClosure); | 1601 return (index >= kByteArray && index <= kClosure); |
| 1602 } | 1602 } |
| 1603 | 1603 |
| 1604 } // namespace dart | 1604 } // namespace dart |
| 1605 | 1605 |
| 1606 #endif // VM_RAW_OBJECT_H_ | 1606 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |