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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 | 296 |
297 // Computes the union of keys and return the result. | 297 // Computes the union of keys and return the result. |
298 // Used for implementing "for (n in object) { }" | 298 // Used for implementing "for (n in object) { }" |
299 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, | 299 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, |
300 Handle<FixedArray> second); | 300 Handle<FixedArray> second); |
301 | 301 |
302 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( | 302 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( |
303 Handle<JSFunction> constructor, | 303 Handle<JSFunction> constructor, |
304 Handle<JSGlobalProxy> global); | 304 Handle<JSGlobalProxy> global); |
305 | 305 |
306 Handle<ObjectHashSet> ObjectHashSetAdd(Handle<ObjectHashSet> table, | |
307 Handle<Object> key); | |
308 | |
309 Handle<ObjectHashSet> ObjectHashSetRemove(Handle<ObjectHashSet> table, | |
310 Handle<Object> key); | |
311 | |
312 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, | 306 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, |
313 Handle<Object> key, | 307 Handle<Object> key, |
314 Handle<Object> value); | 308 Handle<Object> value); |
315 | 309 |
316 void AddWeakObjectToCodeDependency(Heap* heap, | 310 void AddWeakObjectToCodeDependency(Heap* heap, |
317 Handle<Object> object, | 311 Handle<Object> object, |
318 Handle<Code> code); | 312 Handle<Code> code); |
319 | 313 |
320 // Seal off the current HandleScope so that new handles can only be created | 314 // Seal off the current HandleScope so that new handles can only be created |
321 // if a new HandleScope is entered. | 315 // if a new HandleScope is entered. |
322 class SealHandleScope BASE_EMBEDDED { | 316 class SealHandleScope BASE_EMBEDDED { |
323 public: | 317 public: |
324 #ifndef DEBUG | 318 #ifndef DEBUG |
325 explicit SealHandleScope(Isolate* isolate) {} | 319 explicit SealHandleScope(Isolate* isolate) {} |
326 ~SealHandleScope() {} | 320 ~SealHandleScope() {} |
327 #else | 321 #else |
328 explicit inline SealHandleScope(Isolate* isolate); | 322 explicit inline SealHandleScope(Isolate* isolate); |
329 inline ~SealHandleScope(); | 323 inline ~SealHandleScope(); |
330 private: | 324 private: |
331 Isolate* isolate_; | 325 Isolate* isolate_; |
332 Object** limit_; | 326 Object** limit_; |
333 int level_; | 327 int level_; |
334 #endif | 328 #endif |
335 }; | 329 }; |
336 | 330 |
337 } } // namespace v8::internal | 331 } } // namespace v8::internal |
338 | 332 |
339 #endif // V8_HANDLES_H_ | 333 #endif // V8_HANDLES_H_ |
OLD | NEW |