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

Side by Side Diff: include/v8.h

Issue 26814002: Fix windows shared library build. (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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 840
841 internal::Object** escape_slot_; 841 internal::Object** escape_slot_;
842 }; 842 };
843 843
844 844
845 /** 845 /**
846 * A simple Maybe type, representing an object which may or may not have a 846 * A simple Maybe type, representing an object which may or may not have a
847 * value. 847 * value.
848 */ 848 */
849 template<class T> 849 template<class T>
850 struct V8_EXPORT Maybe { 850 struct Maybe {
851 Maybe() : has_value(false) {} 851 Maybe() : has_value(false) {}
852 explicit Maybe(T t) : has_value(true), value(t) {} 852 explicit Maybe(T t) : has_value(true), value(t) {}
853 Maybe(bool has, T t) : has_value(has), value(t) {} 853 Maybe(bool has, T t) : has_value(has), value(t) {}
854 854
855 bool has_value; 855 bool has_value;
856 T value; 856 T value;
857 }; 857 };
858 858
859 859
860 // --- Special objects --- 860 // --- Special objects ---
(...skipping 5596 matching lines...) Expand 10 before | Expand all | Expand 10 after
6457 */ 6457 */
6458 6458
6459 6459
6460 } // namespace v8 6460 } // namespace v8
6461 6461
6462 6462
6463 #undef TYPE_CHECK 6463 #undef TYPE_CHECK
6464 6464
6465 6465
6466 #endif // V8_H_ 6466 #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