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

Side by Side Diff: include/v8.h

Issue 11968011: Implement Context::GetIsolate() (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 7 years, 11 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
« 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 3778 matching lines...) Expand 10 before | Expand all | Expand 10 after
3789 * context that was in place when entering the current context. 3789 * context that was in place when entering the current context.
3790 */ 3790 */
3791 void Exit(); 3791 void Exit();
3792 3792
3793 /** Returns true if the context has experienced an out of memory situation. */ 3793 /** Returns true if the context has experienced an out of memory situation. */
3794 bool HasOutOfMemoryException(); 3794 bool HasOutOfMemoryException();
3795 3795
3796 /** Returns true if V8 has a current context. */ 3796 /** Returns true if V8 has a current context. */
3797 static bool InContext(); 3797 static bool InContext();
3798 3798
3799 /** Returns an isolate associated with a current context. */
3800 v8::Isolate* GetIsolate();
3801
3799 /** 3802 /**
3800 * Gets the embedder data with the given index, which must have been set by a 3803 * Gets the embedder data with the given index, which must have been set by a
3801 * previous call to SetEmbedderData with the same index. Note that index 0 3804 * previous call to SetEmbedderData with the same index. Note that index 0
3802 * currently has a special meaning for Chrome's debugger. 3805 * currently has a special meaning for Chrome's debugger.
3803 */ 3806 */
3804 V8_INLINE(Local<Value> GetEmbedderData(int index)); 3807 V8_INLINE(Local<Value> GetEmbedderData(int index));
3805 3808
3806 /** 3809 /**
3807 * Sets the embedder data with the given index, growing the data as 3810 * Sets the embedder data with the given index, growing the data as
3808 * needed. Note that index 0 currently has a special meaning for Chrome's 3811 * needed. Note that index 0 currently has a special meaning for Chrome's
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
4805 4808
4806 4809
4807 } // namespace v8 4810 } // namespace v8
4808 4811
4809 4812
4810 #undef V8EXPORT 4813 #undef V8EXPORT
4811 #undef TYPE_CHECK 4814 #undef TYPE_CHECK
4812 4815
4813 4816
4814 #endif // V8_H_ 4817 #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