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

Side by Side Diff: src/d8.cc

Issue 105833008: Fix trivial error when building with clang. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 7 years 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 | « 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 i::Mutex Shell::context_mutex_; 161 i::Mutex Shell::context_mutex_;
162 const i::TimeTicks Shell::kInitialTicks = i::TimeTicks::HighResolutionNow(); 162 const i::TimeTicks Shell::kInitialTicks = i::TimeTicks::HighResolutionNow();
163 Persistent<Context> Shell::utility_context_; 163 Persistent<Context> Shell::utility_context_;
164 #endif // V8_SHARED 164 #endif // V8_SHARED
165 165
166 Persistent<Context> Shell::evaluation_context_; 166 Persistent<Context> Shell::evaluation_context_;
167 ShellOptions Shell::options; 167 ShellOptions Shell::options;
168 const char* Shell::kPrompt = "d8> "; 168 const char* Shell::kPrompt = "d8> ";
169 169
170 170
171 #ifndef V8_SHARED
171 const int MB = 1024 * 1024; 172 const int MB = 1024 * 1024;
172 173
173
174 #ifndef V8_SHARED
175 bool CounterMap::Match(void* key1, void* key2) { 174 bool CounterMap::Match(void* key1, void* key2) {
176 const char* name1 = reinterpret_cast<const char*>(key1); 175 const char* name1 = reinterpret_cast<const char*>(key1);
177 const char* name2 = reinterpret_cast<const char*>(key2); 176 const char* name2 = reinterpret_cast<const char*>(key2);
178 return strcmp(name1, name2) == 0; 177 return strcmp(name1, name2) == 0;
179 } 178 }
180 #endif // V8_SHARED 179 #endif // V8_SHARED
181 180
182 181
183 // Converts a V8 value to a C string. 182 // Converts a V8 value to a C string.
184 const char* Shell::ToCString(const v8::String::Utf8Value& value) { 183 const char* Shell::ToCString(const v8::String::Utf8Value& value) {
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
1763 } 1762 }
1764 1763
1765 } // namespace v8 1764 } // namespace v8
1766 1765
1767 1766
1768 #ifndef GOOGLE3 1767 #ifndef GOOGLE3
1769 int main(int argc, char* argv[]) { 1768 int main(int argc, char* argv[]) {
1770 return v8::Shell::Main(argc, argv); 1769 return v8::Shell::Main(argc, argv);
1771 } 1770 }
1772 #endif 1771 #endif
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