| OLD | NEW |
| 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 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1661 virtual void* AllocateUninitialized(size_t length) V8_OVERRIDE { | 1661 virtual void* AllocateUninitialized(size_t length) V8_OVERRIDE { |
| 1662 return malloc(0); | 1662 return malloc(0); |
| 1663 } | 1663 } |
| 1664 virtual void Free(void*, size_t) V8_OVERRIDE { | 1664 virtual void Free(void*, size_t) V8_OVERRIDE { |
| 1665 } | 1665 } |
| 1666 }; | 1666 }; |
| 1667 | 1667 |
| 1668 | 1668 |
| 1669 int Shell::Main(int argc, char* argv[]) { | 1669 int Shell::Main(int argc, char* argv[]) { |
| 1670 if (!SetOptions(argc, argv)) return 1; | 1670 if (!SetOptions(argc, argv)) return 1; |
| 1671 v8::V8::PerThreadSetUp(); |
| 1671 v8::V8::InitializeICU(); | 1672 v8::V8::InitializeICU(); |
| 1672 #ifndef V8_SHARED | 1673 #ifndef V8_SHARED |
| 1673 i::FLAG_trace_hydrogen_file = "hydrogen.cfg"; | 1674 i::FLAG_trace_hydrogen_file = "hydrogen.cfg"; |
| 1674 i::FLAG_redirect_code_traces_to = "code.asm"; | 1675 i::FLAG_redirect_code_traces_to = "code.asm"; |
| 1675 #else | 1676 #else |
| 1676 SetStandaloneFlagsViaCommandLine(); | 1677 SetStandaloneFlagsViaCommandLine(); |
| 1677 #endif | 1678 #endif |
| 1678 ShellArrayBufferAllocator array_buffer_allocator; | 1679 ShellArrayBufferAllocator array_buffer_allocator; |
| 1679 MockArrayBufferAllocator mock_arraybuffer_allocator; | 1680 MockArrayBufferAllocator mock_arraybuffer_allocator; |
| 1680 if (options.mock_arraybuffer_allocator) { | 1681 if (options.mock_arraybuffer_allocator) { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1763 } | 1764 } |
| 1764 | 1765 |
| 1765 } // namespace v8 | 1766 } // namespace v8 |
| 1766 | 1767 |
| 1767 | 1768 |
| 1768 #ifndef GOOGLE3 | 1769 #ifndef GOOGLE3 |
| 1769 int main(int argc, char* argv[]) { | 1770 int main(int argc, char* argv[]) { |
| 1770 return v8::Shell::Main(argc, argv); | 1771 return v8::Shell::Main(argc, argv); |
| 1771 } | 1772 } |
| 1772 #endif | 1773 #endif |
| OLD | NEW |