| 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 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1575 constraints.ConfigureDefaults(base::OS::TotalPhysicalMemory(), | 1575 constraints.ConfigureDefaults(base::OS::TotalPhysicalMemory(), |
| 1576 base::OS::MaxVirtualMemory(), | 1576 base::OS::MaxVirtualMemory(), |
| 1577 base::OS::NumberOfProcessorsOnline()); | 1577 base::OS::NumberOfProcessorsOnline()); |
| 1578 v8::SetResourceConstraints(isolate, &constraints); | 1578 v8::SetResourceConstraints(isolate, &constraints); |
| 1579 #endif | 1579 #endif |
| 1580 DumbLineEditor dumb_line_editor(isolate); | 1580 DumbLineEditor dumb_line_editor(isolate); |
| 1581 { | 1581 { |
| 1582 Isolate::Scope scope(isolate); | 1582 Isolate::Scope scope(isolate); |
| 1583 Initialize(isolate); | 1583 Initialize(isolate); |
| 1584 #ifdef ENABLE_GDB_JIT_INTERFACE | 1584 #ifdef ENABLE_GDB_JIT_INTERFACE |
| 1585 v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, | 1585 if (i::FLAG_gdbjit) { |
| 1586 i::GDBJITInterface::EventHandler); | 1586 v8::V8::SetJitCodeEventHandler(v8::kJitCodeEventDefault, |
| 1587 i::GDBJITInterface::EventHandler); |
| 1588 } |
| 1587 #endif | 1589 #endif |
| 1588 #ifdef ENABLE_VTUNE_JIT_INTERFACE | 1590 #ifdef ENABLE_VTUNE_JIT_INTERFACE |
| 1589 vTune::InitializeVtuneForV8(); | 1591 vTune::InitializeVtuneForV8(); |
| 1590 #endif | 1592 #endif |
| 1591 PerIsolateData data(isolate); | 1593 PerIsolateData data(isolate); |
| 1592 InitializeDebugger(isolate); | 1594 InitializeDebugger(isolate); |
| 1593 | 1595 |
| 1594 #ifndef V8_SHARED | 1596 #ifndef V8_SHARED |
| 1595 if (options.dump_heap_constants) { | 1597 if (options.dump_heap_constants) { |
| 1596 DumpHeapConstants(reinterpret_cast<i::Isolate*>(isolate)); | 1598 DumpHeapConstants(reinterpret_cast<i::Isolate*>(isolate)); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1646 } | 1648 } |
| 1647 | 1649 |
| 1648 } // namespace v8 | 1650 } // namespace v8 |
| 1649 | 1651 |
| 1650 | 1652 |
| 1651 #ifndef GOOGLE3 | 1653 #ifndef GOOGLE3 |
| 1652 int main(int argc, char* argv[]) { | 1654 int main(int argc, char* argv[]) { |
| 1653 return v8::Shell::Main(argc, argv); | 1655 return v8::Shell::Main(argc, argv); |
| 1654 } | 1656 } |
| 1655 #endif | 1657 #endif |
| OLD | NEW |