| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 | 517 |
| 518 template <class S> | 518 template <class S> |
| 519 V8_INLINE bool operator!=(const PersistentBase<S>& that) const { | 519 V8_INLINE bool operator!=(const PersistentBase<S>& that) const { |
| 520 return !operator==(that); | 520 return !operator==(that); |
| 521 } | 521 } |
| 522 | 522 |
| 523 template <class S> V8_INLINE bool operator!=(const Handle<S>& that) const { | 523 template <class S> V8_INLINE bool operator!=(const Handle<S>& that) const { |
| 524 return !operator==(that); | 524 return !operator==(that); |
| 525 } | 525 } |
| 526 | 526 |
| 527 /** |
| 528 * Install a finalization callback on this object. |
| 529 * NOTE: There is no guarantee as to *when* or even *if* the callback is |
| 530 * invoked. The invocation is performed solely on a best effort basis. |
| 531 * As always, GC-based finalization should *not* be relied upon for any |
| 532 * critical form of resource management! |
| 533 */ |
| 527 template<typename P> | 534 template<typename P> |
| 528 V8_INLINE void SetWeak( | 535 V8_INLINE void SetWeak( |
| 529 P* parameter, | 536 P* parameter, |
| 530 typename WeakCallbackData<T, P>::Callback callback); | 537 typename WeakCallbackData<T, P>::Callback callback); |
| 531 | 538 |
| 532 template<typename S, typename P> | 539 template<typename S, typename P> |
| 533 V8_INLINE void SetWeak( | 540 V8_INLINE void SetWeak( |
| 534 P* parameter, | 541 P* parameter, |
| 535 typename WeakCallbackData<S, P>::Callback callback); | 542 typename WeakCallbackData<S, P>::Callback callback); |
| 536 | 543 |
| (...skipping 6122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6659 */ | 6666 */ |
| 6660 | 6667 |
| 6661 | 6668 |
| 6662 } // namespace v8 | 6669 } // namespace v8 |
| 6663 | 6670 |
| 6664 | 6671 |
| 6665 #undef TYPE_CHECK | 6672 #undef TYPE_CHECK |
| 6666 | 6673 |
| 6667 | 6674 |
| 6668 #endif // V8_H_ | 6675 #endif // V8_H_ |
| OLD | NEW |