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