Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Side by Side Diff: include/v8.h

Issue 14625003: expose AssertNoAllocation to api (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: state is now bool Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 bool last_state_;
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698