| 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 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1865 | 1865 |
| 1866 | 1866 |
| 1867 static void DestroyCodeEntry(JITCodeEntry* entry) { | 1867 static void DestroyCodeEntry(JITCodeEntry* entry) { |
| 1868 free(entry); | 1868 free(entry); |
| 1869 } | 1869 } |
| 1870 | 1870 |
| 1871 | 1871 |
| 1872 static void RegisterCodeEntry(JITCodeEntry* entry, | 1872 static void RegisterCodeEntry(JITCodeEntry* entry, |
| 1873 bool dump_if_enabled, | 1873 bool dump_if_enabled, |
| 1874 const char* name_hint) { | 1874 const char* name_hint) { |
| 1875 #if defined(DEBUG) && !defined(WIN32) | 1875 #if defined(DEBUG) && !V8_OS_WIN |
| 1876 static int file_num = 0; | 1876 static int file_num = 0; |
| 1877 if (FLAG_gdbjit_dump && dump_if_enabled) { | 1877 if (FLAG_gdbjit_dump && dump_if_enabled) { |
| 1878 static const int kMaxFileNameSize = 64; | 1878 static const int kMaxFileNameSize = 64; |
| 1879 static const char* kElfFilePrefix = "/tmp/elfdump"; | 1879 static const char* kElfFilePrefix = "/tmp/elfdump"; |
| 1880 static const char* kObjFileExt = ".o"; | 1880 static const char* kObjFileExt = ".o"; |
| 1881 char file_name[64]; | 1881 char file_name[64]; |
| 1882 | 1882 |
| 1883 OS::SNPrintF(Vector<char>(file_name, kMaxFileNameSize), | 1883 OS::SNPrintF(Vector<char>(file_name, kMaxFileNameSize), |
| 1884 "%s%s%d%s", | 1884 "%s%s%d%s", |
| 1885 kElfFilePrefix, | 1885 kElfFilePrefix, |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2190 ScopedLock lock(mutex.Pointer()); | 2190 ScopedLock lock(mutex.Pointer()); |
| 2191 ASSERT(!IsLineInfoTagged(line_info)); | 2191 ASSERT(!IsLineInfoTagged(line_info)); |
| 2192 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); | 2192 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); |
| 2193 ASSERT(e->value == NULL); | 2193 ASSERT(e->value == NULL); |
| 2194 e->value = TagLineInfo(line_info); | 2194 e->value = TagLineInfo(line_info); |
| 2195 } | 2195 } |
| 2196 | 2196 |
| 2197 | 2197 |
| 2198 } } // namespace v8::internal | 2198 } } // namespace v8::internal |
| 2199 #endif | 2199 #endif |
| OLD | NEW |