Chromium Code Reviews| 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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 918 return reinterpret_cast<RawObject**>(&ptr()->function_); | 918 return reinterpret_cast<RawObject**>(&ptr()->function_); |
| 919 } | 919 } |
| 920 RawFunction* function_; // Parent/calling function of this IC. | 920 RawFunction* function_; // Parent/calling function of this IC. |
| 921 RawString* target_name_; // Name of target function. | 921 RawString* target_name_; // Name of target function. |
| 922 RawArray* ic_data_; // Contains test class-ids and target functions. | 922 RawArray* ic_data_; // Contains test class-ids and target functions. |
| 923 RawObject** to() { | 923 RawObject** to() { |
| 924 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); | 924 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); |
| 925 } | 925 } |
| 926 intptr_t deopt_id_; // Deoptimization id corresponding to this IC. | 926 intptr_t deopt_id_; // Deoptimization id corresponding to this IC. |
| 927 intptr_t num_args_tested_; // Number of arguments tested in IC. | 927 intptr_t num_args_tested_; // Number of arguments tested in IC. |
| 928 intptr_t deopt_reason_; // Last deoptimization reason. | |
|
srdjan
2012/11/08 21:37:27
uint8_t
Florian Schneider
2012/11/08 22:03:00
Done.
| |
| 928 }; | 929 }; |
| 929 | 930 |
| 930 | 931 |
| 931 class RawSubtypeTestCache : public RawObject { | 932 class RawSubtypeTestCache : public RawObject { |
| 932 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); | 933 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); |
| 933 RawArray* cache_; | 934 RawArray* cache_; |
| 934 }; | 935 }; |
| 935 | 936 |
| 936 | 937 |
| 937 | |
| 938 class RawError : public RawObject { | 938 class RawError : public RawObject { |
| 939 RAW_HEAP_OBJECT_IMPLEMENTATION(Error); | 939 RAW_HEAP_OBJECT_IMPLEMENTATION(Error); |
| 940 }; | 940 }; |
| 941 | 941 |
| 942 | 942 |
| 943 class RawApiError : public RawError { | 943 class RawApiError : public RawError { |
| 944 RAW_HEAP_OBJECT_IMPLEMENTATION(ApiError); | 944 RAW_HEAP_OBJECT_IMPLEMENTATION(ApiError); |
| 945 | 945 |
| 946 RawObject** from() { | 946 RawObject** from() { |
| 947 return reinterpret_cast<RawObject**>(&ptr()->message_); | 947 return reinterpret_cast<RawObject**>(&ptr()->message_); |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1610 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && | 1610 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 7 && |
| 1611 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && | 1611 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 8 && |
| 1612 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && | 1612 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 9 && |
| 1613 kStacktraceCid == kExternalInt8ArrayCid + 10); | 1613 kStacktraceCid == kExternalInt8ArrayCid + 10); |
| 1614 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); | 1614 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); |
| 1615 } | 1615 } |
| 1616 | 1616 |
| 1617 } // namespace dart | 1617 } // namespace dart |
| 1618 | 1618 |
| 1619 #endif // VM_RAW_OBJECT_H_ | 1619 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |