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

Side by Side Diff: include/v8.h

Issue 225723004: Deprecate Context::HasOutOfMemoryException. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: deprecate instead of remove Created 6 years, 8 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 | no next file » | 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 5256 matching lines...) Expand 10 before | Expand all | Expand 10 after
5267 * restored when the new context is exited. 5267 * restored when the new context is exited.
5268 */ 5268 */
5269 void Enter(); 5269 void Enter();
5270 5270
5271 /** 5271 /**
5272 * Exit this context. Exiting the current context restores the 5272 * Exit this context. Exiting the current context restores the
5273 * context that was in place when entering the current context. 5273 * context that was in place when entering the current context.
5274 */ 5274 */
5275 void Exit(); 5275 void Exit();
5276 5276
5277 /** Returns true if the context has experienced an out of memory situation. */ 5277 /**
5278 bool HasOutOfMemoryException() { return false; } 5278 * Returns true if the context has experienced an out of memory situation.
5279 * Since V8 always treats OOM as fatal error, this can no longer return true.
5280 * Therefore this is now deprecated.
5281 * */
5282 V8_DEPRECATED("This can no longer happen. OOM is a fatal error.",
5283 bool HasOutOfMemoryException()) { return false; }
5279 5284
5280 /** Returns an isolate associated with a current context. */ 5285 /** Returns an isolate associated with a current context. */
5281 v8::Isolate* GetIsolate(); 5286 v8::Isolate* GetIsolate();
5282 5287
5283 /** 5288 /**
5284 * Gets the embedder data with the given index, which must have been set by a 5289 * Gets the embedder data with the given index, which must have been set by a
5285 * previous call to SetEmbedderData with the same index. Note that index 0 5290 * previous call to SetEmbedderData with the same index. Note that index 0
5286 * currently has a special meaning for Chrome's debugger. 5291 * currently has a special meaning for Chrome's debugger.
5287 */ 5292 */
5288 V8_INLINE Local<Value> GetEmbedderData(int index); 5293 V8_INLINE Local<Value> GetEmbedderData(int index);
(...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after
6684 */ 6689 */
6685 6690
6686 6691
6687 } // namespace v8 6692 } // namespace v8
6688 6693
6689 6694
6690 #undef TYPE_CHECK 6695 #undef TYPE_CHECK
6691 6696
6692 6697
6693 #endif // V8_H_ 6698 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698