| 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_CODE_DESCRIPTORS_H_ | 5 #ifndef VM_CODE_DESCRIPTORS_H_ |
| 6 #define VM_CODE_DESCRIPTORS_H_ | 6 #define VM_CODE_DESCRIPTORS_H_ |
| 7 | 7 |
| 8 #include "vm/code_generator.h" | 8 #include "vm/code_generator.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 intptr_t TryIndex(int index) const { | 54 intptr_t TryIndex(int index) const { |
| 55 return list_[index].try_index; | 55 return list_[index].try_index; |
| 56 } | 56 } |
| 57 | 57 |
| 58 void AddDescriptor(PcDescriptors::Kind kind, | 58 void AddDescriptor(PcDescriptors::Kind kind, |
| 59 intptr_t pc_offset, | 59 intptr_t pc_offset, |
| 60 intptr_t deopt_id, | 60 intptr_t deopt_id, |
| 61 intptr_t token_index, | 61 intptr_t token_index, |
| 62 intptr_t try_index); | 62 intptr_t try_index); |
| 63 void AddDeoptIndex(intptr_t pc_offset, | |
| 64 intptr_t deopt_id, | |
| 65 DeoptReasonId deopt_reason, | |
| 66 intptr_t deopt_array_index); | |
| 67 | 63 |
| 68 RawPcDescriptors* FinalizePcDescriptors(uword entry_point); | 64 RawPcDescriptors* FinalizePcDescriptors(uword entry_point); |
| 69 | 65 |
| 70 private: | 66 private: |
| 71 GrowableArray<struct PcDesc> list_; | 67 GrowableArray<struct PcDesc> list_; |
| 72 DISALLOW_COPY_AND_ASSIGN(DescriptorList); | 68 DISALLOW_COPY_AND_ASSIGN(DescriptorList); |
| 73 }; | 69 }; |
| 74 | 70 |
| 75 | 71 |
| 76 class StackmapTableBuilder : public ZoneAllocated { | 72 class StackmapTableBuilder : public ZoneAllocated { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 } | 136 } |
| 141 | 137 |
| 142 private: | 138 private: |
| 143 GrowableArray<struct HandlerDesc> list_; | 139 GrowableArray<struct HandlerDesc> list_; |
| 144 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerList); | 140 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerList); |
| 145 }; | 141 }; |
| 146 | 142 |
| 147 } // namespace dart | 143 } // namespace dart |
| 148 | 144 |
| 149 #endif // VM_CODE_DESCRIPTORS_H_ | 145 #endif // VM_CODE_DESCRIPTORS_H_ |
| OLD | NEW |