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

Side by Side Diff: src/d8.cc

Issue 319563003: Fix presubmit warning. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « 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 // 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 5
6 // Defined when linking against shared lib on Windows. 6 // Defined when linking against shared lib on Windows.
7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) 7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED)
8 #define V8_SHARED 8 #define V8_SHARED
9 #endif 9 #endif
10 10
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 #else 1303 #else
1304 options.dump_heap_constants = true; 1304 options.dump_heap_constants = true;
1305 argv[i] = NULL; 1305 argv[i] = NULL;
1306 #endif // V8_SHARED 1306 #endif // V8_SHARED
1307 } else if (strcmp(argv[i], "--throws") == 0) { 1307 } else if (strcmp(argv[i], "--throws") == 0) {
1308 options.expected_to_throw = true; 1308 options.expected_to_throw = true;
1309 argv[i] = NULL; 1309 argv[i] = NULL;
1310 } else if (strncmp(argv[i], "--icu-data-file=", 16) == 0) { 1310 } else if (strncmp(argv[i], "--icu-data-file=", 16) == 0) {
1311 options.icu_data_file = argv[i] + 16; 1311 options.icu_data_file = argv[i] + 16;
1312 argv[i] = NULL; 1312 argv[i] = NULL;
1313 }
1314 #ifdef V8_SHARED 1313 #ifdef V8_SHARED
1315 else if (strcmp(argv[i], "--dump-counters") == 0) { 1314 } else if (strcmp(argv[i], "--dump-counters") == 0) {
1316 printf("D8 with shared library does not include counters\n"); 1315 printf("D8 with shared library does not include counters\n");
1317 return false; 1316 return false;
1318 } else if (strcmp(argv[i], "--debugger") == 0) { 1317 } else if (strcmp(argv[i], "--debugger") == 0) {
1319 printf("Javascript debugger not included\n"); 1318 printf("Javascript debugger not included\n");
1320 return false; 1319 return false;
1321 }
1322 #endif // V8_SHARED 1320 #endif // V8_SHARED
1323 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 1321 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
1324 else if (strncmp(argv[i], "--natives_blob=", 15) == 0) { 1322 } else if (strncmp(argv[i], "--natives_blob=", 15) == 0) {
1325 options.natives_blob = argv[i] + 15; 1323 options.natives_blob = argv[i] + 15;
1326 argv[i] = NULL; 1324 argv[i] = NULL;
1327 } else if (strncmp(argv[i], "--snapshot_blob=", 16) == 0) { 1325 } else if (strncmp(argv[i], "--snapshot_blob=", 16) == 0) {
1328 options.snapshot_blob = argv[i] + 16; 1326 options.snapshot_blob = argv[i] + 16;
1329 argv[i] = NULL; 1327 argv[i] = NULL;
1328 #endif // V8_USE_EXTERNAL_STARTUP_DATA
1330 } 1329 }
1331 #endif // V8_USE_EXTERNAL_STARTUP_DATA
1332 } 1330 }
1333 1331
1334 v8::V8::SetFlagsFromCommandLine(&argc, argv, true); 1332 v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
1335 1333
1336 // Set up isolated source groups. 1334 // Set up isolated source groups.
1337 options.isolate_sources = new SourceGroup[options.num_isolates]; 1335 options.isolate_sources = new SourceGroup[options.num_isolates];
1338 SourceGroup* current = options.isolate_sources; 1336 SourceGroup* current = options.isolate_sources;
1339 current->Begin(argv, 1); 1337 current->Begin(argv, 1);
1340 for (int i = 1; i < argc; i++) { 1338 for (int i = 1; i < argc; i++) {
1341 const char* str = argv[i]; 1339 const char* str = argv[i];
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 } 1624 }
1627 1625
1628 } // namespace v8 1626 } // namespace v8
1629 1627
1630 1628
1631 #ifndef GOOGLE3 1629 #ifndef GOOGLE3
1632 int main(int argc, char* argv[]) { 1630 int main(int argc, char* argv[]) {
1633 return v8::Shell::Main(argc, argv); 1631 return v8::Shell::Main(argc, argv);
1634 } 1632 }
1635 #endif 1633 #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