OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 // Extend the handle scope making room for more handles. | 156 // Extend the handle scope making room for more handles. |
157 static internal::Object** Extend(); | 157 static internal::Object** Extend(); |
158 | 158 |
159 // Zaps the handles in the half-open interval [start, end). | 159 // Zaps the handles in the half-open interval [start, end). |
160 static void ZapRange(internal::Object** start, internal::Object** end); | 160 static void ZapRange(internal::Object** start, internal::Object** end); |
161 | 161 |
162 friend class v8::HandleScope; | 162 friend class v8::HandleScope; |
163 friend class v8::internal::HandleScopeImplementer; | 163 friend class v8::internal::HandleScopeImplementer; |
164 friend class v8::ImplementationUtilities; | 164 friend class v8::ImplementationUtilities; |
| 165 friend class v8::internal::Isolate; |
165 }; | 166 }; |
166 | 167 |
167 | 168 |
168 class DeferredHandles; | 169 class DeferredHandles; |
169 | 170 |
170 | 171 |
171 class DeferredHandleScope { | 172 class DeferredHandleScope { |
172 public: | 173 public: |
173 explicit DeferredHandleScope(Isolate* isolate); | 174 explicit DeferredHandleScope(Isolate* isolate); |
174 // The DeferredHandles object returned stores the Handles created | 175 // The DeferredHandles object returned stores the Handles created |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 inline NoHandleAllocation(); | 324 inline NoHandleAllocation(); |
324 inline ~NoHandleAllocation(); | 325 inline ~NoHandleAllocation(); |
325 private: | 326 private: |
326 int level_; | 327 int level_; |
327 #endif | 328 #endif |
328 }; | 329 }; |
329 | 330 |
330 } } // namespace v8::internal | 331 } } // namespace v8::internal |
331 | 332 |
332 #endif // V8_HANDLES_H_ | 333 #endif // V8_HANDLES_H_ |
OLD | NEW |