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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 Handle<Object> key); | 324 Handle<Object> key); |
325 | 325 |
326 Handle<ObjectHashSet> ObjectHashSetRemove(Handle<ObjectHashSet> table, | 326 Handle<ObjectHashSet> ObjectHashSetRemove(Handle<ObjectHashSet> table, |
327 Handle<Object> key); | 327 Handle<Object> key); |
328 | 328 |
329 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, | 329 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, |
330 Handle<Object> key, | 330 Handle<Object> key, |
331 Handle<Object> value); | 331 Handle<Object> value); |
332 | 332 |
333 | 333 |
| 334 void AddWeakObjectToCodeDependency(Heap* heap, |
| 335 Handle<Object> object, |
| 336 Handle<Code> code); |
| 337 |
| 338 |
334 // Seal off the current HandleScope so that new handles can only be created | 339 // Seal off the current HandleScope so that new handles can only be created |
335 // if a new HandleScope is entered. | 340 // if a new HandleScope is entered. |
336 class SealHandleScope BASE_EMBEDDED { | 341 class SealHandleScope BASE_EMBEDDED { |
337 public: | 342 public: |
338 #ifndef DEBUG | 343 #ifndef DEBUG |
339 explicit SealHandleScope(Isolate* isolate) {} | 344 explicit SealHandleScope(Isolate* isolate) {} |
340 ~SealHandleScope() {} | 345 ~SealHandleScope() {} |
341 #else | 346 #else |
342 explicit inline SealHandleScope(Isolate* isolate); | 347 explicit inline SealHandleScope(Isolate* isolate); |
343 inline ~SealHandleScope(); | 348 inline ~SealHandleScope(); |
344 private: | 349 private: |
345 Isolate* isolate_; | 350 Isolate* isolate_; |
346 Object** limit_; | 351 Object** limit_; |
347 int level_; | 352 int level_; |
348 #endif | 353 #endif |
349 }; | 354 }; |
350 | 355 |
351 } } // namespace v8::internal | 356 } } // namespace v8::internal |
352 | 357 |
353 #endif // V8_HANDLES_H_ | 358 #endif // V8_HANDLES_H_ |
OLD | NEW |