Chromium Code Reviews| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 154 inline void CloseScope(); | 154 inline void CloseScope(); |
| 155 | 155 |
| 156 Isolate* isolate_; | 156 Isolate* isolate_; |
| 157 Object** prev_next_; | 157 Object** prev_next_; |
| 158 Object** prev_limit_; | 158 Object** prev_limit_; |
| 159 | 159 |
| 160 // Extend the handle scope making room for more handles. | 160 // Extend the handle scope making room for more handles. |
| 161 static internal::Object** Extend(Isolate* isolate); | 161 static internal::Object** Extend(Isolate* isolate); |
| 162 | 162 |
| 163 // Zaps the handles in the half-open interval [start, end). | 163 // Zaps the handles in the half-open interval [start, end). |
| 164 static void ZapRange(internal::Object** start, internal::Object** end); | 164 static void ZapRange(internal::Object** start, internal::Object** end); |
|
Jakob Kummerow
2013/03/22 13:36:38
How about putting this guy behind an #ifdef ENABLE
Michael Starzinger
2013/03/22 13:39:54
Done.
| |
| 165 | 165 |
| 166 friend class v8::HandleScope; | |
| 166 friend class v8::internal::DeferredHandles; | 167 friend class v8::internal::DeferredHandles; |
| 167 friend class v8::HandleScope; | |
| 168 friend class v8::internal::HandleScopeImplementer; | 168 friend class v8::internal::HandleScopeImplementer; |
| 169 friend class v8::ImplementationUtilities; | |
| 170 friend class v8::internal::Isolate; | 169 friend class v8::internal::Isolate; |
| 171 }; | 170 }; |
| 172 | 171 |
| 173 | 172 |
| 174 class DeferredHandles; | 173 class DeferredHandles; |
| 175 | 174 |
| 176 | 175 |
| 177 class DeferredHandleScope { | 176 class DeferredHandleScope { |
| 178 public: | 177 public: |
| 179 explicit DeferredHandleScope(Isolate* isolate); | 178 explicit DeferredHandleScope(Isolate* isolate); |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 350 inline ~HandleDereferenceGuard(); | 349 inline ~HandleDereferenceGuard(); |
| 351 private: | 350 private: |
| 352 Isolate* isolate_; | 351 Isolate* isolate_; |
| 353 bool old_state_; | 352 bool old_state_; |
| 354 #endif | 353 #endif |
| 355 }; | 354 }; |
| 356 | 355 |
| 357 } } // namespace v8::internal | 356 } } // namespace v8::internal |
| 358 | 357 |
| 359 #endif // V8_HANDLES_H_ | 358 #endif // V8_HANDLES_H_ |
| OLD | NEW |