OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 v8::ImplementationUtilities::HandleScopeData* current = | 127 v8::ImplementationUtilities::HandleScopeData* current = |
128 isolate->handle_scope_data(); | 128 isolate->handle_scope_data(); |
129 | 129 |
130 current->next = prev_next; | 130 current->next = prev_next; |
131 current->level--; | 131 current->level--; |
132 if (current->limit != prev_limit) { | 132 if (current->limit != prev_limit) { |
133 current->limit = prev_limit; | 133 current->limit = prev_limit; |
134 DeleteExtensions(isolate); | 134 DeleteExtensions(isolate); |
135 } | 135 } |
136 | 136 |
137 #ifdef ENABLE_EXTRA_CHECKS | 137 #ifdef ENABLE_HANDLE_ZAPPING |
138 ZapRange(prev_next, prev_limit); | 138 ZapRange(prev_next, prev_limit); |
139 #endif | 139 #endif |
140 } | 140 } |
141 | 141 |
142 | 142 |
143 template <typename T> | 143 template <typename T> |
144 Handle<T> HandleScope::CloseAndEscape(Handle<T> handle_value) { | 144 Handle<T> HandleScope::CloseAndEscape(Handle<T> handle_value) { |
145 v8::ImplementationUtilities::HandleScopeData* current = | 145 v8::ImplementationUtilities::HandleScopeData* current = |
146 isolate_->handle_scope_data(); | 146 isolate_->handle_scope_data(); |
147 | 147 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 current->level = level_; | 203 current->level = level_; |
204 ASSERT_EQ(current->next, current->limit); | 204 ASSERT_EQ(current->next, current->limit); |
205 current->limit = limit_; | 205 current->limit = limit_; |
206 } | 206 } |
207 | 207 |
208 #endif | 208 #endif |
209 | 209 |
210 } } // namespace v8::internal | 210 } } // namespace v8::internal |
211 | 211 |
212 #endif // V8_HANDLES_INL_H_ | 212 #endif // V8_HANDLES_INL_H_ |
OLD | NEW |