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 | 324 |
Hannes Payer (out of office)
2013/10/02 12:21:47
remove one newline
ulan
2013/10/02 12:36:49
Done.
| |
325 void AddWeakObjectToCodeDependency(Heap* heap, | |
326 Handle<Object> object, | |
327 Handle<Code> code); | |
328 | |
Hannes Payer (out of office)
2013/10/02 12:21:47
remove one newline
ulan
2013/10/02 12:36:49
Done.
| |
329 | |
325 // Seal off the current HandleScope so that new handles can only be created | 330 // Seal off the current HandleScope so that new handles can only be created |
326 // if a new HandleScope is entered. | 331 // if a new HandleScope is entered. |
327 class SealHandleScope BASE_EMBEDDED { | 332 class SealHandleScope BASE_EMBEDDED { |
328 public: | 333 public: |
329 #ifndef DEBUG | 334 #ifndef DEBUG |
330 explicit SealHandleScope(Isolate* isolate) {} | 335 explicit SealHandleScope(Isolate* isolate) {} |
331 ~SealHandleScope() {} | 336 ~SealHandleScope() {} |
332 #else | 337 #else |
333 explicit inline SealHandleScope(Isolate* isolate); | 338 explicit inline SealHandleScope(Isolate* isolate); |
334 inline ~SealHandleScope(); | 339 inline ~SealHandleScope(); |
335 private: | 340 private: |
336 Isolate* isolate_; | 341 Isolate* isolate_; |
337 Object** limit_; | 342 Object** limit_; |
338 int level_; | 343 int level_; |
339 #endif | 344 #endif |
340 }; | 345 }; |
341 | 346 |
342 } } // namespace v8::internal | 347 } } // namespace v8::internal |
343 | 348 |
344 #endif // V8_HANDLES_H_ | 349 #endif // V8_HANDLES_H_ |
OLD | NEW |