| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 Object** prev_limit_; | 170 Object** prev_limit_; |
| 171 | 171 |
| 172 // Close the handle scope resetting limits to a previous state. | 172 // Close the handle scope resetting limits to a previous state. |
| 173 static inline void CloseScope(Isolate* isolate, | 173 static inline void CloseScope(Isolate* isolate, |
| 174 Object** prev_next, | 174 Object** prev_next, |
| 175 Object** prev_limit); | 175 Object** prev_limit); |
| 176 | 176 |
| 177 // Extend the handle scope making room for more handles. | 177 // Extend the handle scope making room for more handles. |
| 178 static internal::Object** Extend(Isolate* isolate); | 178 static internal::Object** Extend(Isolate* isolate); |
| 179 | 179 |
| 180 #ifdef ENABLE_EXTRA_CHECKS | 180 #ifdef ENABLE_HANDLE_ZAPPING |
| 181 // Zaps the handles in the half-open interval [start, end). | 181 // Zaps the handles in the half-open interval [start, end). |
| 182 static void ZapRange(Object** start, Object** end); | 182 static void ZapRange(Object** start, Object** end); |
| 183 #endif | 183 #endif |
| 184 | 184 |
| 185 friend class v8::HandleScope; | 185 friend class v8::HandleScope; |
| 186 friend class v8::internal::DeferredHandles; | 186 friend class v8::internal::DeferredHandles; |
| 187 friend class v8::internal::HandleScopeImplementer; | 187 friend class v8::internal::HandleScopeImplementer; |
| 188 friend class v8::internal::Isolate; | 188 friend class v8::internal::Isolate; |
| 189 }; | 189 }; |
| 190 | 190 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 private: | 352 private: |
| 353 Isolate* isolate_; | 353 Isolate* isolate_; |
| 354 Object** limit_; | 354 Object** limit_; |
| 355 int level_; | 355 int level_; |
| 356 #endif | 356 #endif |
| 357 }; | 357 }; |
| 358 | 358 |
| 359 } } // namespace v8::internal | 359 } } // namespace v8::internal |
| 360 | 360 |
| 361 #endif // V8_HANDLES_H_ | 361 #endif // V8_HANDLES_H_ |
| OLD | NEW |