| 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 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 926 } | 926 } |
| 927 RawFunction* function_; // Parent/calling function of this IC. | 927 RawFunction* function_; // Parent/calling function of this IC. |
| 928 RawString* target_name_; // Name of target function. | 928 RawString* target_name_; // Name of target function. |
| 929 RawArray* ic_data_; // Contains test class-ids and target functions. | 929 RawArray* ic_data_; // Contains test class-ids and target functions. |
| 930 RawObject** to() { | 930 RawObject** to() { |
| 931 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); | 931 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); |
| 932 } | 932 } |
| 933 intptr_t deopt_id_; // Deoptimization id corresponding to this IC. | 933 intptr_t deopt_id_; // Deoptimization id corresponding to this IC. |
| 934 intptr_t num_args_tested_; // Number of arguments tested in IC. | 934 intptr_t num_args_tested_; // Number of arguments tested in IC. |
| 935 uint8_t deopt_reason_; // Last deoptimization reason. | 935 uint8_t deopt_reason_; // Last deoptimization reason. |
| 936 uint8_t is_closure_call_; // 0 or 1. |
| 936 }; | 937 }; |
| 937 | 938 |
| 938 | 939 |
| 939 class RawSubtypeTestCache : public RawObject { | 940 class RawSubtypeTestCache : public RawObject { |
| 940 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); | 941 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); |
| 941 RawArray* cache_; | 942 RawArray* cache_; |
| 942 }; | 943 }; |
| 943 | 944 |
| 944 | 945 |
| 945 class RawError : public RawObject { | 946 class RawError : public RawObject { |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1633 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && | 1634 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && |
| 1634 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && | 1635 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && |
| 1635 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && | 1636 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && |
| 1636 kStacktraceCid == kExternalInt8ArrayCid + 10); | 1637 kStacktraceCid == kExternalInt8ArrayCid + 10); |
| 1637 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); | 1638 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); |
| 1638 } | 1639 } |
| 1639 | 1640 |
| 1640 } // namespace dart | 1641 } // namespace dart |
| 1641 | 1642 |
| 1642 #endif // VM_RAW_OBJECT_H_ | 1643 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |