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 24269003: Add methods to enable configuration of ResourceConstraints based on limits derived at runtime. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Move device-specific defaults into ConfigureResourceConstraintsForCurrentPlatform Created 7 years, 3 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
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 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 1641
1642 1642
1643 int Shell::Main(int argc, char* argv[]) { 1643 int Shell::Main(int argc, char* argv[]) {
1644 if (!SetOptions(argc, argv)) return 1; 1644 if (!SetOptions(argc, argv)) return 1;
1645 v8::V8::InitializeICU(); 1645 v8::V8::InitializeICU();
1646 #ifndef V8_SHARED 1646 #ifndef V8_SHARED
1647 i::FLAG_trace_hydrogen_file = "hydrogen.cfg"; 1647 i::FLAG_trace_hydrogen_file = "hydrogen.cfg";
1648 #else 1648 #else
1649 SetStandaloneFlagsViaCommandLine(); 1649 SetStandaloneFlagsViaCommandLine();
1650 #endif 1650 #endif
1651 v8::SetDefaultResourceConstraintsForCurrentPlatform();
1651 ShellArrayBufferAllocator array_buffer_allocator; 1652 ShellArrayBufferAllocator array_buffer_allocator;
1652 v8::V8::SetArrayBufferAllocator(&array_buffer_allocator); 1653 v8::V8::SetArrayBufferAllocator(&array_buffer_allocator);
1653 int result = 0; 1654 int result = 0;
1654 Isolate* isolate = Isolate::GetCurrent(); 1655 Isolate* isolate = Isolate::GetCurrent();
1655 DumbLineEditor dumb_line_editor(isolate); 1656 DumbLineEditor dumb_line_editor(isolate);
1656 { 1657 {
1657 Initialize(isolate); 1658 Initialize(isolate);
1658 #ifdef ENABLE_VTUNE_JIT_INTERFACE 1659 #ifdef ENABLE_VTUNE_JIT_INTERFACE
1659 vTune::InitializeVtuneForV8(); 1660 vTune::InitializeVtuneForV8();
1660 #endif 1661 #endif
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 } 1726 }
1726 1727
1727 } // namespace v8 1728 } // namespace v8
1728 1729
1729 1730
1730 #ifndef GOOGLE3 1731 #ifndef GOOGLE3
1731 int main(int argc, char* argv[]) { 1732 int main(int argc, char* argv[]) {
1732 return v8::Shell::Main(argc, argv); 1733 return v8::Shell::Main(argc, argv);
1733 } 1734 }
1734 #endif 1735 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698