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 #include "vm/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/bigint_operations.h" | 10 #include "vm/bigint_operations.h" |
(...skipping 6905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6916 return raw_ptr()->data_[index].try_index; | 6916 return raw_ptr()->data_[index].try_index; |
6917 } | 6917 } |
6918 | 6918 |
6919 | 6919 |
6920 intptr_t ExceptionHandlers::HandlerPC(intptr_t index) const { | 6920 intptr_t ExceptionHandlers::HandlerPC(intptr_t index) const { |
6921 ASSERT((index >= 0) && (index < Length())); | 6921 ASSERT((index >= 0) && (index < Length())); |
6922 return raw_ptr()->data_[index].handler_pc; | 6922 return raw_ptr()->data_[index].handler_pc; |
6923 } | 6923 } |
6924 | 6924 |
6925 | 6925 |
| 6926 intptr_t ExceptionHandlers::OuterTryIndex(intptr_t index) const { |
| 6927 ASSERT((index >= 0) && (index < Length())); |
| 6928 return raw_ptr()->data_[index].outer_try_index; |
| 6929 } |
| 6930 |
| 6931 |
6926 void ExceptionHandlers::SetHandledTypes(intptr_t index, | 6932 void ExceptionHandlers::SetHandledTypes(intptr_t index, |
6927 const Array& handled_types) const { | 6933 const Array& handled_types) const { |
6928 ASSERT((index >= 0) && (index < Length())); | 6934 ASSERT((index >= 0) && (index < Length())); |
6929 const Array& handled_types_data = | 6935 const Array& handled_types_data = |
6930 Array::Handle(raw_ptr()->handled_types_data_); | 6936 Array::Handle(raw_ptr()->handled_types_data_); |
6931 handled_types_data.SetAt(index, handled_types); | 6937 handled_types_data.SetAt(index, handled_types); |
6932 } | 6938 } |
6933 | 6939 |
6934 | 6940 |
6935 RawArray* ExceptionHandlers::GetHandledTypes(intptr_t index) const { | 6941 RawArray* ExceptionHandlers::GetHandledTypes(intptr_t index) const { |
(...skipping 5607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12543 } | 12549 } |
12544 return result.raw(); | 12550 return result.raw(); |
12545 } | 12551 } |
12546 | 12552 |
12547 | 12553 |
12548 const char* WeakProperty::ToCString() const { | 12554 const char* WeakProperty::ToCString() const { |
12549 return "_WeakProperty"; | 12555 return "_WeakProperty"; |
12550 } | 12556 } |
12551 | 12557 |
12552 } // namespace dart | 12558 } // namespace dart |
OLD | NEW |