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

Side by Side Diff: src/d8.cc

Issue 149133004: A64: Synchronize with r17807. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler.cc ('k') | src/defaults.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 // 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 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 } 1351 }
1352 } 1352 }
1353 #endif // V8_SHARED 1353 #endif // V8_SHARED
1354 1354
1355 1355
1356 bool Shell::SetOptions(int argc, char* argv[]) { 1356 bool Shell::SetOptions(int argc, char* argv[]) {
1357 for (int i = 0; i < argc; i++) { 1357 for (int i = 0; i < argc; i++) {
1358 if (strcmp(argv[i], "--stress-opt") == 0) { 1358 if (strcmp(argv[i], "--stress-opt") == 0) {
1359 options.stress_opt = true; 1359 options.stress_opt = true;
1360 argv[i] = NULL; 1360 argv[i] = NULL;
1361 } else if (strcmp(argv[i], "--nostress-opt") == 0) {
1362 options.stress_opt = false;
1363 argv[i] = NULL;
1361 } else if (strcmp(argv[i], "--stress-deopt") == 0) { 1364 } else if (strcmp(argv[i], "--stress-deopt") == 0) {
1362 options.stress_deopt = true; 1365 options.stress_deopt = true;
1363 argv[i] = NULL; 1366 argv[i] = NULL;
1364 } else if (strcmp(argv[i], "--noalways-opt") == 0) { 1367 } else if (strcmp(argv[i], "--noalways-opt") == 0) {
1365 // No support for stressing if we can't use --always-opt. 1368 // No support for stressing if we can't use --always-opt.
1366 options.stress_opt = false; 1369 options.stress_opt = false;
1367 options.stress_deopt = false; 1370 options.stress_deopt = false;
1368 } else if (strcmp(argv[i], "--shell") == 0) { 1371 } else if (strcmp(argv[i], "--shell") == 0) {
1369 options.interactive_shell = true; 1372 options.interactive_shell = true;
1370 argv[i] = NULL; 1373 argv[i] = NULL;
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
1672 1675
1673 int Shell::Main(int argc, char* argv[]) { 1676 int Shell::Main(int argc, char* argv[]) {
1674 if (!SetOptions(argc, argv)) return 1; 1677 if (!SetOptions(argc, argv)) return 1;
1675 v8::V8::InitializeICU(); 1678 v8::V8::InitializeICU();
1676 #ifndef V8_SHARED 1679 #ifndef V8_SHARED
1677 i::FLAG_trace_hydrogen_file = "hydrogen.cfg"; 1680 i::FLAG_trace_hydrogen_file = "hydrogen.cfg";
1678 i::FLAG_redirect_code_traces_to = "code.asm"; 1681 i::FLAG_redirect_code_traces_to = "code.asm";
1679 #else 1682 #else
1680 SetStandaloneFlagsViaCommandLine(); 1683 SetStandaloneFlagsViaCommandLine();
1681 #endif 1684 #endif
1682 v8::SetDefaultResourceConstraintsForCurrentPlatform();
1683 ShellArrayBufferAllocator array_buffer_allocator; 1685 ShellArrayBufferAllocator array_buffer_allocator;
1684 v8::V8::SetArrayBufferAllocator(&array_buffer_allocator); 1686 v8::V8::SetArrayBufferAllocator(&array_buffer_allocator);
1685 int result = 0; 1687 int result = 0;
1686 Isolate* isolate = Isolate::GetCurrent(); 1688 Isolate* isolate = Isolate::GetCurrent();
1689 #ifndef V8_SHARED
1690 v8::ResourceConstraints constraints;
1691 constraints.ConfigureDefaults(i::OS::TotalPhysicalMemory());
1692 v8::SetResourceConstraints(isolate, &constraints);
1693 #endif
1687 DumbLineEditor dumb_line_editor(isolate); 1694 DumbLineEditor dumb_line_editor(isolate);
1688 { 1695 {
1689 Initialize(isolate); 1696 Initialize(isolate);
1690 #ifdef ENABLE_VTUNE_JIT_INTERFACE 1697 #ifdef ENABLE_VTUNE_JIT_INTERFACE
1691 vTune::InitializeVtuneForV8(); 1698 vTune::InitializeVtuneForV8();
1692 #endif 1699 #endif
1693 PerIsolateData data(isolate); 1700 PerIsolateData data(isolate);
1694 InitializeDebugger(isolate); 1701 InitializeDebugger(isolate);
1695 1702
1696 #ifndef V8_SHARED 1703 #ifndef V8_SHARED
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1757 } 1764 }
1758 1765
1759 } // namespace v8 1766 } // namespace v8
1760 1767
1761 1768
1762 #ifndef GOOGLE3 1769 #ifndef GOOGLE3
1763 int main(int argc, char* argv[]) { 1770 int main(int argc, char* argv[]) {
1764 return v8::Shell::Main(argc, argv); 1771 return v8::Shell::Main(argc, argv);
1765 } 1772 }
1766 #endif 1773 #endif
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/defaults.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698