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

Side by Side Diff: src/version.cc

Issue 328343003: Remove dependency on Vector from platform files (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 6 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 | « src/utils.cc ('k') | src/x64/disasm-x64.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/version.h" 7 #include "src/version.h"
8 8
9 // These macros define the version number for the current version. 9 // These macros define the version number for the current version.
10 // NOTE these macros are used by some of the tool scripts and the build 10 // NOTE these macros are used by some of the tool scripts and the build
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // Calculate the V8 version string. 55 // Calculate the V8 version string.
56 void Version::GetString(Vector<char> str) { 56 void Version::GetString(Vector<char> str) {
57 const char* candidate = IsCandidate() ? " (candidate)" : ""; 57 const char* candidate = IsCandidate() ? " (candidate)" : "";
58 #ifdef USE_SIMULATOR 58 #ifdef USE_SIMULATOR
59 const char* is_simulator = " SIMULATOR"; 59 const char* is_simulator = " SIMULATOR";
60 #else 60 #else
61 const char* is_simulator = ""; 61 const char* is_simulator = "";
62 #endif // USE_SIMULATOR 62 #endif // USE_SIMULATOR
63 if (GetPatch() > 0) { 63 if (GetPatch() > 0) {
64 OS::SNPrintF(str, "%d.%d.%d.%d%s%s", 64 SNPrintF(str, "%d.%d.%d.%d%s%s",
65 GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate, 65 GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate,
66 is_simulator); 66 is_simulator);
67 } else { 67 } else {
68 OS::SNPrintF(str, "%d.%d.%d%s%s", 68 SNPrintF(str, "%d.%d.%d%s%s",
69 GetMajor(), GetMinor(), GetBuild(), candidate, 69 GetMajor(), GetMinor(), GetBuild(), candidate,
70 is_simulator); 70 is_simulator);
71 } 71 }
72 } 72 }
73 73
74 74
75 // Calculate the SONAME for the V8 shared library. 75 // Calculate the SONAME for the V8 shared library.
76 void Version::GetSONAME(Vector<char> str) { 76 void Version::GetSONAME(Vector<char> str) {
77 if (soname_ == NULL || *soname_ == '\0') { 77 if (soname_ == NULL || *soname_ == '\0') {
78 // Generate generic SONAME if no specific SONAME is defined. 78 // Generate generic SONAME if no specific SONAME is defined.
79 const char* candidate = IsCandidate() ? "-candidate" : ""; 79 const char* candidate = IsCandidate() ? "-candidate" : "";
80 if (GetPatch() > 0) { 80 if (GetPatch() > 0) {
81 OS::SNPrintF(str, "libv8-%d.%d.%d.%d%s.so", 81 SNPrintF(str, "libv8-%d.%d.%d.%d%s.so",
82 GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate); 82 GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate);
83 } else { 83 } else {
84 OS::SNPrintF(str, "libv8-%d.%d.%d%s.so", 84 SNPrintF(str, "libv8-%d.%d.%d%s.so",
85 GetMajor(), GetMinor(), GetBuild(), candidate); 85 GetMajor(), GetMinor(), GetBuild(), candidate);
86 } 86 }
87 } else { 87 } else {
88 // Use specific SONAME. 88 // Use specific SONAME.
89 OS::SNPrintF(str, "%s", soname_); 89 SNPrintF(str, "%s", soname_);
90 } 90 }
91 } 91 }
92 92
93 } } // namespace v8::internal 93 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/utils.cc ('k') | src/x64/disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698