| 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 3586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3597 */ | 3597 */ |
| 3598 class V8EXPORT PersistentHandleVisitor { // NOLINT | 3598 class V8EXPORT PersistentHandleVisitor { // NOLINT |
| 3599 public: | 3599 public: |
| 3600 virtual ~PersistentHandleVisitor() {} | 3600 virtual ~PersistentHandleVisitor() {} |
| 3601 virtual void VisitPersistentHandle(Persistent<Value> value, | 3601 virtual void VisitPersistentHandle(Persistent<Value> value, |
| 3602 uint16_t class_id) {} | 3602 uint16_t class_id) {} |
| 3603 }; | 3603 }; |
| 3604 | 3604 |
| 3605 | 3605 |
| 3606 /** | 3606 /** |
| 3607 * Asserts that no action is performed that could cause a handle's value |
| 3608 * to be modified. Useful when otherwise unsafe handle operations need to |
| 3609 * be performed. |
| 3610 */ |
| 3611 class V8EXPORT AssertNoGCScope { |
| 3612 #ifndef DEBUG |
| 3613 V8_INLINE(AssertNoGCScope(Isolate* isolate)) {} |
| 3614 #else |
| 3615 AssertNoGCScope(Isolate* isolate); |
| 3616 ~AssertNoGCScope(); |
| 3617 private: |
| 3618 Isolate* isolate_; |
| 3619 uint8_t data_; |
| 3620 #endif |
| 3621 }; |
| 3622 |
| 3623 |
| 3624 /** |
| 3607 * Container class for static utility functions. | 3625 * Container class for static utility functions. |
| 3608 */ | 3626 */ |
| 3609 class V8EXPORT V8 { | 3627 class V8EXPORT V8 { |
| 3610 public: | 3628 public: |
| 3611 /** Set the callback to invoke in case of fatal errors. */ | 3629 /** Set the callback to invoke in case of fatal errors. */ |
| 3612 static void SetFatalErrorHandler(FatalErrorCallback that); | 3630 static void SetFatalErrorHandler(FatalErrorCallback that); |
| 3613 | 3631 |
| 3614 /** | 3632 /** |
| 3615 * Set the callback to invoke to check if code generation from | 3633 * Set the callback to invoke to check if code generation from |
| 3616 * strings should be allowed. | 3634 * strings should be allowed. |
| (...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5579 | 5597 |
| 5580 | 5598 |
| 5581 } // namespace v8 | 5599 } // namespace v8 |
| 5582 | 5600 |
| 5583 | 5601 |
| 5584 #undef V8EXPORT | 5602 #undef V8EXPORT |
| 5585 #undef TYPE_CHECK | 5603 #undef TYPE_CHECK |
| 5586 | 5604 |
| 5587 | 5605 |
| 5588 #endif // V8_H_ | 5606 #endif // V8_H_ |
| OLD | NEW |