| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1834 } | 1834 } |
| 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(MaybeObject* object) { | 1842 void __gdb_print_v8_object(MaybeObject* object) { |
| 1843 object->Print(); | 1843 object->Print(); |
| 1844 fprintf(stdout, "\n"); | 1844 PrintF(stdout, "\n"); |
| 1845 } | 1845 } |
| 1846 #endif | 1846 #endif |
| 1847 } | 1847 } |
| 1848 | 1848 |
| 1849 | 1849 |
| 1850 static JITCodeEntry* CreateCodeEntry(Address symfile_addr, | 1850 static JITCodeEntry* CreateCodeEntry(Address symfile_addr, |
| 1851 uintptr_t symfile_size) { | 1851 uintptr_t symfile_size) { |
| 1852 JITCodeEntry* entry = static_cast<JITCodeEntry*>( | 1852 JITCodeEntry* entry = static_cast<JITCodeEntry*>( |
| 1853 malloc(sizeof(JITCodeEntry) + symfile_size)); | 1853 malloc(sizeof(JITCodeEntry) + symfile_size)); |
| 1854 | 1854 |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2169 ScopedLock lock(mutex.Pointer()); | 2169 ScopedLock lock(mutex.Pointer()); |
| 2170 ASSERT(!IsLineInfoTagged(line_info)); | 2170 ASSERT(!IsLineInfoTagged(line_info)); |
| 2171 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); | 2171 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); |
| 2172 ASSERT(e->value == NULL); | 2172 ASSERT(e->value == NULL); |
| 2173 e->value = TagLineInfo(line_info); | 2173 e->value = TagLineInfo(line_info); |
| 2174 } | 2174 } |
| 2175 | 2175 |
| 2176 | 2176 |
| 2177 } } // namespace v8::internal | 2177 } } // namespace v8::internal |
| 2178 #endif | 2178 #endif |
| OLD | NEW |