| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 15 matching lines...) Expand all Loading... |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #include "v8.h" | 28 #include "v8.h" |
| 29 | 29 |
| 30 #include "version.h" | 30 #include "version.h" |
| 31 #include "cctest.h" | 31 #include "cctest.h" |
| 32 | 32 |
| 33 using namespace v8::internal; | 33 using namespace v8::internal; |
| 34 | 34 |
| 35 | 35 |
| 36 namespace v8 { namespace internal { | 36 namespace v8 { |
| 37 namespace internal { |
| 37 | 38 |
| 38 void SetVersion(int major, int minor, int build, int patch, | 39 void SetVersion(int major, int minor, int build, int patch, |
| 39 bool candidate, const char* soname) { | 40 bool candidate, const char* soname) { |
| 40 Version::major_ = major; | 41 Version::major_ = major; |
| 41 Version::minor_ = minor; | 42 Version::minor_ = minor; |
| 42 Version::build_ = build; | 43 Version::build_ = build; |
| 43 Version::patch_ = patch; | 44 Version::patch_ = patch; |
| 44 Version::candidate_ = candidate; | 45 Version::candidate_ = candidate; |
| 45 Version::soname_ = soname; | 46 Version::soname_ = soname; |
| 46 } | 47 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 CheckVersion(1, 0, 0, 0, false, "1.0.0", "libv8-1.0.0.so"); | 80 CheckVersion(1, 0, 0, 0, false, "1.0.0", "libv8-1.0.0.so"); |
| 80 CheckVersion(1, 0, 0, 0, true, | 81 CheckVersion(1, 0, 0, 0, true, |
| 81 "1.0.0 (candidate)", "libv8-1.0.0-candidate.so"); | 82 "1.0.0 (candidate)", "libv8-1.0.0-candidate.so"); |
| 82 CheckVersion(1, 0, 0, 1, false, "1.0.0.1", "libv8-1.0.0.1.so"); | 83 CheckVersion(1, 0, 0, 1, false, "1.0.0.1", "libv8-1.0.0.1.so"); |
| 83 CheckVersion(1, 0, 0, 1, true, | 84 CheckVersion(1, 0, 0, 1, true, |
| 84 "1.0.0.1 (candidate)", "libv8-1.0.0.1-candidate.so"); | 85 "1.0.0.1 (candidate)", "libv8-1.0.0.1-candidate.so"); |
| 85 CheckVersion(2, 5, 10, 7, false, "2.5.10.7", "libv8-2.5.10.7.so"); | 86 CheckVersion(2, 5, 10, 7, false, "2.5.10.7", "libv8-2.5.10.7.so"); |
| 86 CheckVersion(2, 5, 10, 7, true, | 87 CheckVersion(2, 5, 10, 7, true, |
| 87 "2.5.10.7 (candidate)", "libv8-2.5.10.7-candidate.so"); | 88 "2.5.10.7 (candidate)", "libv8-2.5.10.7-candidate.so"); |
| 88 } | 89 } |
| OLD | NEW |