| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 #ifdef ENABLE_GDB_JIT_INTERFACE | 5 #ifdef ENABLE_GDB_JIT_INTERFACE |
| 6 #include "src/v8.h" | 6 #include "src/v8.h" |
| 7 | 7 |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 9 #include "src/base/platform/platform.h" | 9 #include "src/base/platform/platform.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1835 | 1835 |
| 1836 // GDB will inspect contents of this descriptor. | 1836 // GDB will inspect contents of this descriptor. |
| 1837 // Static initialization is necessary to prevent GDB from seeing | 1837 // Static initialization is necessary to prevent GDB from seeing |
| 1838 // uninitialized descriptor. | 1838 // uninitialized descriptor. |
| 1839 JITDescriptor __jit_debug_descriptor = { 1, 0, 0, 0 }; | 1839 JITDescriptor __jit_debug_descriptor = { 1, 0, 0, 0 }; |
| 1840 | 1840 |
| 1841 #ifdef OBJECT_PRINT | 1841 #ifdef OBJECT_PRINT |
| 1842 void __gdb_print_v8_object(Object* object) { | 1842 void __gdb_print_v8_object(Object* object) { |
| 1843 OFStream os(stdout); | 1843 OFStream os(stdout); |
| 1844 object->Print(os); | 1844 object->Print(os); |
| 1845 os << flush; | 1845 os << std::flush; |
| 1846 } | 1846 } |
| 1847 #endif | 1847 #endif |
| 1848 } | 1848 } |
| 1849 | 1849 |
| 1850 | 1850 |
| 1851 static JITCodeEntry* CreateCodeEntry(Address symfile_addr, | 1851 static JITCodeEntry* CreateCodeEntry(Address symfile_addr, |
| 1852 uintptr_t symfile_size) { | 1852 uintptr_t symfile_size) { |
| 1853 JITCodeEntry* entry = static_cast<JITCodeEntry*>( | 1853 JITCodeEntry* entry = static_cast<JITCodeEntry*>( |
| 1854 malloc(sizeof(JITCodeEntry) + symfile_size)); | 1854 malloc(sizeof(JITCodeEntry) + symfile_size)); |
| 1855 | 1855 |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2195 reinterpret_cast<Address>(event->code_start)); | 2195 reinterpret_cast<Address>(event->code_start)); |
| 2196 RegisterDetailedLineInfo(code, line_info); | 2196 RegisterDetailedLineInfo(code, line_info); |
| 2197 break; | 2197 break; |
| 2198 } | 2198 } |
| 2199 } | 2199 } |
| 2200 } | 2200 } |
| 2201 | 2201 |
| 2202 | 2202 |
| 2203 } } // namespace v8::internal | 2203 } } // namespace v8::internal |
| 2204 #endif | 2204 #endif |
| OLD | NEW |