| 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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 } | 923 } |
| 924 RawFunction* function_; // Parent/calling function of this IC. | 924 RawFunction* function_; // Parent/calling function of this IC. |
| 925 RawString* target_name_; // Name of target function. | 925 RawString* target_name_; // Name of target function. |
| 926 RawArray* ic_data_; // Contains test class-ids and target functions. | 926 RawArray* ic_data_; // Contains test class-ids and target functions. |
| 927 RawObject** to() { | 927 RawObject** to() { |
| 928 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); | 928 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); |
| 929 } | 929 } |
| 930 intptr_t deopt_id_; // Deoptimization id corresponding to this IC. | 930 intptr_t deopt_id_; // Deoptimization id corresponding to this IC. |
| 931 intptr_t num_args_tested_; // Number of arguments tested in IC. | 931 intptr_t num_args_tested_; // Number of arguments tested in IC. |
| 932 uint8_t deopt_reason_; // Last deoptimization reason. | 932 uint8_t deopt_reason_; // Last deoptimization reason. |
| 933 uint8_t is_closure_call_; // 0 or 1. |
| 933 }; | 934 }; |
| 934 | 935 |
| 935 | 936 |
| 936 class RawSubtypeTestCache : public RawObject { | 937 class RawSubtypeTestCache : public RawObject { |
| 937 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); | 938 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); |
| 938 RawArray* cache_; | 939 RawArray* cache_; |
| 939 }; | 940 }; |
| 940 | 941 |
| 941 | 942 |
| 942 class RawError : public RawObject { | 943 class RawError : public RawObject { |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1614 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && | 1615 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && |
| 1615 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && | 1616 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && |
| 1616 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && | 1617 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && |
| 1617 kStacktraceCid == kExternalInt8ArrayCid + 10); | 1618 kStacktraceCid == kExternalInt8ArrayCid + 10); |
| 1618 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); | 1619 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); |
| 1619 } | 1620 } |
| 1620 | 1621 |
| 1621 } // namespace dart | 1622 } // namespace dart |
| 1622 | 1623 |
| 1623 #endif // VM_RAW_OBJECT_H_ | 1624 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |