OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_REUSABLE_HANDLES_H_ | 5 #ifndef VM_REUSABLE_HANDLES_H_ |
6 #define VM_REUSABLE_HANDLES_H_ | 6 #define VM_REUSABLE_HANDLES_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/handles.h" | 9 #include "vm/handles.h" |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 private: \ | 71 private: \ |
72 name* handle_; \ | 72 name* handle_; \ |
73 DISALLOW_COPY_AND_ASSIGN(Reusable##name##HandleScope); \ | 73 DISALLOW_COPY_AND_ASSIGN(Reusable##name##HandleScope); \ |
74 }; | 74 }; |
75 #endif // defined(DEBUG) | 75 #endif // defined(DEBUG) |
76 REUSABLE_HANDLE_LIST(REUSABLE_SCOPE) | 76 REUSABLE_HANDLE_LIST(REUSABLE_SCOPE) |
77 #undef REUSABLE_SCOPE | 77 #undef REUSABLE_SCOPE |
78 | 78 |
79 #define REUSABLE_OBJECT_HANDLESCOPE(isolate) \ | 79 #define REUSABLE_OBJECT_HANDLESCOPE(isolate) \ |
80 ReusableObjectHandleScope reused_object_handle(isolate); | 80 ReusableObjectHandleScope reused_object_handle(isolate); |
| 81 #define REUSABLE_ERROR_HANDLESCOPE(isolate) \ |
| 82 ReusableErrorHandleScope reused_error_handle(isolate); |
81 #define REUSABLE_ARRAY_HANDLESCOPE(isolate) \ | 83 #define REUSABLE_ARRAY_HANDLESCOPE(isolate) \ |
82 ReusableArrayHandleScope reused_array_handle(isolate); | 84 ReusableArrayHandleScope reused_array_handle(isolate); |
83 #define REUSABLE_STRING_HANDLESCOPE(isolate) \ | 85 #define REUSABLE_STRING_HANDLESCOPE(isolate) \ |
84 ReusableStringHandleScope reused_string_handle(isolate); | 86 ReusableStringHandleScope reused_string_handle(isolate); |
85 #define REUSABLE_INSTANCE_HANDLESCOPE(isolate) \ | 87 #define REUSABLE_INSTANCE_HANDLESCOPE(isolate) \ |
86 ReusableInstanceHandleScope reused_instance_handle(isolate); | 88 ReusableInstanceHandleScope reused_instance_handle(isolate); |
87 #define REUSABLE_FUNCTION_HANDLESCOPE(isolate) \ | 89 #define REUSABLE_FUNCTION_HANDLESCOPE(isolate) \ |
88 ReusableFunctionHandleScope reused_function_handle(isolate); | 90 ReusableFunctionHandleScope reused_function_handle(isolate); |
89 #define REUSABLE_FIELD_HANDLESCOPE(isolate) \ | 91 #define REUSABLE_FIELD_HANDLESCOPE(isolate) \ |
90 ReusableFieldHandleScope reused_field_handle(isolate); | 92 ReusableFieldHandleScope reused_field_handle(isolate); |
91 #define REUSABLE_CLASS_HANDLESCOPE(isolate) \ | 93 #define REUSABLE_CLASS_HANDLESCOPE(isolate) \ |
92 ReusableClassHandleScope reused_class_handle(isolate); | 94 ReusableClassHandleScope reused_class_handle(isolate); |
93 #define REUSABLE_TYPE_PARAMETER_HANDLESCOPE(isolate) \ | 95 #define REUSABLE_TYPE_PARAMETER_HANDLESCOPE(isolate) \ |
94 ReusableTypeParameterHandleScope reused_type_parameter(isolate); | 96 ReusableTypeParameterHandleScope reused_type_parameter(isolate); |
95 #define REUSABLE_TYPE_ARGUMENTS_HANDLESCOPE(isolate) \ | 97 #define REUSABLE_TYPE_ARGUMENTS_HANDLESCOPE(isolate) \ |
96 ReusableTypeArgumentsHandleScope reused_type_arguments_handle(isolate); | 98 ReusableTypeArgumentsHandleScope reused_type_arguments_handle(isolate); |
97 | 99 |
98 } // namespace dart | 100 } // namespace dart |
99 | 101 |
100 #endif // VM_REUSABLE_HANDLES_H_ | 102 #endif // VM_REUSABLE_HANDLES_H_ |
OLD | NEW |