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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 938 }; | 938 }; |
| 939 | 939 |
| 940 | 940 |
| 941 class RawExceptionHandlers : public RawObject { | 941 class RawExceptionHandlers : public RawObject { |
| 942 public: | 942 public: |
| 943 // The index into the ExceptionHandlers table corresponds to | 943 // The index into the ExceptionHandlers table corresponds to |
| 944 // the try_index of the handler. | 944 // the try_index of the handler. |
| 945 struct HandlerInfo { | 945 struct HandlerInfo { |
| 946 intptr_t outer_try_index; // Try block index of enclosing try block. | 946 intptr_t outer_try_index; // Try block index of enclosing try block. |
| 947 intptr_t handler_pc; // PC value of handler. | 947 intptr_t handler_pc; // PC value of handler. |
| 948 bool needs_stacktrace; // True if a stacktrace is needed. | |
|
hausner
2013/08/28 16:08:20
Due to alignment of HandlerInfo elements in the da
siva
2013/08/28 17:00:09
I second this comment.
On 2013/08/28 16:08:20, ha
srdjan
2013/08/28 20:38:29
Will do that in a follow up CL.
| |
| 948 }; | 949 }; |
| 949 private: | 950 private: |
| 950 RAW_HEAP_OBJECT_IMPLEMENTATION(ExceptionHandlers); | 951 RAW_HEAP_OBJECT_IMPLEMENTATION(ExceptionHandlers); |
| 951 | 952 |
| 952 // Number of exception handler entries. | 953 // Number of exception handler entries. |
| 953 intptr_t length_; | 954 intptr_t length_; |
| 954 | 955 |
| 955 // Array with [length_] entries. Each entry is an array of all handled | 956 // Array with [length_] entries. Each entry is an array of all handled |
| 956 // exception types. | 957 // exception types. |
| 957 RawArray* handled_types_data_; | 958 RawArray* handled_types_data_; |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1711 // Make sure this is updated when new TypedData types are added. | 1712 // Make sure this is updated when new TypedData types are added. |
| 1712 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); | 1713 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); |
| 1713 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); | 1714 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); |
| 1714 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); | 1715 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); |
| 1715 return (kNullCid - kTypedDataInt8ArrayCid); | 1716 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1716 } | 1717 } |
| 1717 | 1718 |
| 1718 } // namespace dart | 1719 } // namespace dart |
| 1719 | 1720 |
| 1720 #endif // VM_RAW_OBJECT_H_ | 1721 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |