OLD | NEW |
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 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1618 #endif // defined(_WIN32) || defined(_WIN64) | 1618 #endif // defined(_WIN32) || defined(_WIN64) |
1619 if (!SetOptions(argc, argv)) return 1; | 1619 if (!SetOptions(argc, argv)) return 1; |
1620 v8::V8::InitializeICU(options.icu_data_file); | 1620 v8::V8::InitializeICU(options.icu_data_file); |
1621 v8::Platform* platform = v8::platform::CreateDefaultPlatform(); | 1621 v8::Platform* platform = v8::platform::CreateDefaultPlatform(); |
1622 v8::V8::InitializePlatform(platform); | 1622 v8::V8::InitializePlatform(platform); |
1623 v8::V8::Initialize(); | 1623 v8::V8::Initialize(); |
1624 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 1624 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
1625 StartupDataHandler startup_data(options.natives_blob, options.snapshot_blob); | 1625 StartupDataHandler startup_data(options.natives_blob, options.snapshot_blob); |
1626 #endif | 1626 #endif |
1627 SetFlagsFromString("--trace-hydrogen-file=hydrogen.cfg"); | 1627 SetFlagsFromString("--trace-hydrogen-file=hydrogen.cfg"); |
| 1628 SetFlagsFromString("--trace-turbo-cfg-file=turbo.cfg"); |
1628 SetFlagsFromString("--redirect-code-traces-to=code.asm"); | 1629 SetFlagsFromString("--redirect-code-traces-to=code.asm"); |
1629 ShellArrayBufferAllocator array_buffer_allocator; | 1630 ShellArrayBufferAllocator array_buffer_allocator; |
1630 MockArrayBufferAllocator mock_arraybuffer_allocator; | 1631 MockArrayBufferAllocator mock_arraybuffer_allocator; |
1631 if (options.mock_arraybuffer_allocator) { | 1632 if (options.mock_arraybuffer_allocator) { |
1632 v8::V8::SetArrayBufferAllocator(&mock_arraybuffer_allocator); | 1633 v8::V8::SetArrayBufferAllocator(&mock_arraybuffer_allocator); |
1633 } else { | 1634 } else { |
1634 v8::V8::SetArrayBufferAllocator(&array_buffer_allocator); | 1635 v8::V8::SetArrayBufferAllocator(&array_buffer_allocator); |
1635 } | 1636 } |
1636 int result = 0; | 1637 int result = 0; |
1637 Isolate::CreateParams create_params; | 1638 Isolate::CreateParams create_params; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1720 } | 1721 } |
1721 | 1722 |
1722 } // namespace v8 | 1723 } // namespace v8 |
1723 | 1724 |
1724 | 1725 |
1725 #ifndef GOOGLE3 | 1726 #ifndef GOOGLE3 |
1726 int main(int argc, char* argv[]) { | 1727 int main(int argc, char* argv[]) { |
1727 return v8::Shell::Main(argc, argv); | 1728 return v8::Shell::Main(argc, argv); |
1728 } | 1729 } |
1729 #endif | 1730 #endif |
OLD | NEW |