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

Side by Side Diff: include/v8.h

Issue 24054008: Fixed shared_library build on Windows. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 812
813 friend class ImplementationUtilities; 813 friend class ImplementationUtilities;
814 }; 814 };
815 815
816 816
817 /** 817 /**
818 * A simple Maybe type, representing an object which may or may not have a 818 * A simple Maybe type, representing an object which may or may not have a
819 * value. 819 * value.
820 */ 820 */
821 template<class T> 821 template<class T>
822 struct Maybe { 822 struct V8_EXPORT Maybe {
823 Maybe() : has_value(false) {} 823 Maybe() : has_value(false) {}
824 explicit Maybe(T t) : has_value(true), value(t) {} 824 explicit Maybe(T t) : has_value(true), value(t) {}
825 Maybe(bool has, T t) : has_value(has), value(t) {} 825 Maybe(bool has, T t) : has_value(has), value(t) {}
826 826
827 bool has_value; 827 bool has_value;
828 T value; 828 T value;
829 }; 829 };
830 830
831 831
832 // --- Special objects --- 832 // --- Special objects ---
(...skipping 5598 matching lines...) Expand 10 before | Expand all | Expand 10 after
6431 */ 6431 */
6432 6432
6433 6433
6434 } // namespace v8 6434 } // namespace v8
6435 6435
6436 6436
6437 #undef TYPE_CHECK 6437 #undef TYPE_CHECK
6438 6438
6439 6439
6440 #endif // V8_H_ 6440 #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