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

Side by Side Diff: include/v8.h

Issue 25077002: Try to make MSVC happy about EscapableHandleScope. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 template <class T> 852 template <class T>
853 V8_INLINE Local<T> Escape(Local<T> value) { 853 V8_INLINE Local<T> Escape(Local<T> value) {
854 internal::Object** slot = 854 internal::Object** slot =
855 Escape(reinterpret_cast<internal::Object**>(*value)); 855 Escape(reinterpret_cast<internal::Object**>(*value));
856 return Local<T>(reinterpret_cast<T*>(slot)); 856 return Local<T>(reinterpret_cast<T*>(slot));
857 } 857 }
858 858
859 private: 859 private:
860 internal::Object** Escape(internal::Object** escape_value); 860 internal::Object** Escape(internal::Object** escape_value);
861 861
862 // Make it hard to create heap-allocated or illegal handle scopes by
863 // disallowing certain operations.
864 EscapableHandleScope(const EscapableHandleScope&);
865 void operator=(const EscapableHandleScope&);
866 void* operator new(size_t size);
867 void operator delete(void*, size_t);
868
862 internal::Object** escape_slot_; 869 internal::Object** escape_slot_;
863 }; 870 };
864 871
865 872
866 /** 873 /**
867 * A simple Maybe type, representing an object which may or may not have a 874 * A simple Maybe type, representing an object which may or may not have a
868 * value. 875 * value.
869 */ 876 */
870 template<class T> 877 template<class T>
871 struct V8_EXPORT Maybe { 878 struct V8_EXPORT Maybe {
(...skipping 5629 matching lines...) Expand 10 before | Expand all | Expand 10 after
6501 */ 6508 */
6502 6509
6503 6510
6504 } // namespace v8 6511 } // namespace v8
6505 6512
6506 6513
6507 #undef TYPE_CHECK 6514 #undef TYPE_CHECK
6508 6515
6509 6516
6510 #endif // V8_H_ 6517 #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