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

Side by Side Diff: src/version.cc

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 years, 10 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
« no previous file with comments | « src/variables.cc ('k') | src/vm-state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 14 matching lines...) Expand all
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
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 31
32 // These macros define the version number for the current version. 32 // These macros define the version number for the current version.
33 // NOTE these macros are used by the SCons build script so their names 33 // NOTE these macros are used by the SCons build script so their names
34 // cannot be changed without changing the SCons build script. 34 // cannot be changed without changing the SCons build script.
35 #define MAJOR_VERSION 2 35 #define MAJOR_VERSION 3
36 #define MINOR_VERSION 6 36 #define MINOR_VERSION 0
37 #define BUILD_NUMBER 0 37 #define BUILD_NUMBER 0
38 #define PATCH_LEVEL 0 38 #define PATCH_LEVEL 0
39 // Use 1 for candidates and 0 otherwise. 39 // Use 1 for candidates and 0 otherwise.
40 // (Boolean macro values are not supported by all preprocessors.) 40 // (Boolean macro values are not supported by all preprocessors.)
41 #define IS_CANDIDATE_VERSION 0 41 #define IS_CANDIDATE_VERSION 0
42 42
43 // Define SONAME to have the SCons build the put a specific SONAME into the 43 // Define SONAME to have the SCons build the put a specific SONAME into the
44 // shared library instead the generic SONAME generated from the V8 version 44 // shared library instead the generic SONAME generated from the V8 version
45 // number. This define is mainly used by the SCons build script. 45 // number. This define is mainly used by the SCons build script.
46 #define SONAME "" 46 #define SONAME ""
(...skipping 24 matching lines...) Expand all
71 int Version::minor_ = MINOR_VERSION; 71 int Version::minor_ = MINOR_VERSION;
72 int Version::build_ = BUILD_NUMBER; 72 int Version::build_ = BUILD_NUMBER;
73 int Version::patch_ = PATCH_LEVEL; 73 int Version::patch_ = PATCH_LEVEL;
74 bool Version::candidate_ = (IS_CANDIDATE_VERSION != 0); 74 bool Version::candidate_ = (IS_CANDIDATE_VERSION != 0);
75 const char* Version::soname_ = SONAME; 75 const char* Version::soname_ = SONAME;
76 const char* Version::version_string_ = VERSION_STRING; 76 const char* Version::version_string_ = VERSION_STRING;
77 77
78 // Calculate the V8 version string. 78 // Calculate the V8 version string.
79 void Version::GetString(Vector<char> str) { 79 void Version::GetString(Vector<char> str) {
80 const char* candidate = IsCandidate() ? " (candidate)" : ""; 80 const char* candidate = IsCandidate() ? " (candidate)" : "";
81 #ifdef USE_SIMULATOR
82 const char* is_simulator = " SIMULATOR";
83 #else
84 const char* is_simulator = "";
85 #endif // USE_SIMULATOR
81 if (GetPatch() > 0) { 86 if (GetPatch() > 0) {
82 OS::SNPrintF(str, "%d.%d.%d.%d%s", 87 OS::SNPrintF(str, "%d.%d.%d.%d%s%s",
83 GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate); 88 GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate,
89 is_simulator);
84 } else { 90 } else {
85 OS::SNPrintF(str, "%d.%d.%d%s", 91 OS::SNPrintF(str, "%d.%d.%d%s%s",
86 GetMajor(), GetMinor(), GetBuild(), candidate); 92 GetMajor(), GetMinor(), GetBuild(), candidate,
93 is_simulator);
87 } 94 }
88 } 95 }
89 96
90 97
91 // Calculate the SONAME for the V8 shared library. 98 // Calculate the SONAME for the V8 shared library.
92 void Version::GetSONAME(Vector<char> str) { 99 void Version::GetSONAME(Vector<char> str) {
93 if (soname_ == NULL || *soname_ == '\0') { 100 if (soname_ == NULL || *soname_ == '\0') {
94 // Generate generic SONAME if no specific SONAME is defined. 101 // Generate generic SONAME if no specific SONAME is defined.
95 const char* candidate = IsCandidate() ? "-candidate" : ""; 102 const char* candidate = IsCandidate() ? "-candidate" : "";
96 if (GetPatch() > 0) { 103 if (GetPatch() > 0) {
97 OS::SNPrintF(str, "libv8-%d.%d.%d.%d%s.so", 104 OS::SNPrintF(str, "libv8-%d.%d.%d.%d%s.so",
98 GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate); 105 GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate);
99 } else { 106 } else {
100 OS::SNPrintF(str, "libv8-%d.%d.%d%s.so", 107 OS::SNPrintF(str, "libv8-%d.%d.%d%s.so",
101 GetMajor(), GetMinor(), GetBuild(), candidate); 108 GetMajor(), GetMinor(), GetBuild(), candidate);
102 } 109 }
103 } else { 110 } else {
104 // Use specific SONAME. 111 // Use specific SONAME.
105 OS::SNPrintF(str, "%s", soname_); 112 OS::SNPrintF(str, "%s", soname_);
106 } 113 }
107 } 114 }
108 115
109 } } // namespace v8::internal 116 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/variables.cc ('k') | src/vm-state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698