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 2066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2077 info); | 2077 info); |
2078 | 2078 |
2079 if (!FLAG_gdbjit_full && !code_desc.IsLineInfoAvailable()) { | 2079 if (!FLAG_gdbjit_full && !code_desc.IsLineInfoAvailable()) { |
2080 delete lineinfo; | 2080 delete lineinfo; |
2081 GetEntries()->Remove(code, HashForCodeObject(code)); | 2081 GetEntries()->Remove(code, HashForCodeObject(code)); |
2082 return; | 2082 return; |
2083 } | 2083 } |
2084 | 2084 |
2085 AddUnwindInfo(&code_desc); | 2085 AddUnwindInfo(&code_desc); |
2086 Isolate* isolate = code->GetIsolate(); | 2086 Isolate* isolate = code->GetIsolate(); |
2087 Zone* zone = code->GetIsolate()->runtime_zone(); | |
2088 JITCodeEntry* entry = CreateELFObject(&code_desc, isolate); | 2087 JITCodeEntry* entry = CreateELFObject(&code_desc, isolate); |
2089 ASSERT(!IsLineInfoTagged(entry)); | 2088 ASSERT(!IsLineInfoTagged(entry)); |
2090 | 2089 |
2091 delete lineinfo; | 2090 delete lineinfo; |
2092 e->value = entry; | 2091 e->value = entry; |
2093 | 2092 |
2094 const char* name_hint = NULL; | 2093 const char* name_hint = NULL; |
2095 bool should_dump = false; | 2094 bool should_dump = false; |
2096 if (FLAG_gdbjit_dump) { | 2095 if (FLAG_gdbjit_dump) { |
2097 if (strlen(FLAG_gdbjit_dump_filter) == 0) { | 2096 if (strlen(FLAG_gdbjit_dump_filter) == 0) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2171 ScopedLock lock(mutex.Pointer()); | 2170 ScopedLock lock(mutex.Pointer()); |
2172 ASSERT(!IsLineInfoTagged(line_info)); | 2171 ASSERT(!IsLineInfoTagged(line_info)); |
2173 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); | 2172 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); |
2174 ASSERT(e->value == NULL); | 2173 ASSERT(e->value == NULL); |
2175 e->value = TagLineInfo(line_info); | 2174 e->value = TagLineInfo(line_info); |
2176 } | 2175 } |
2177 | 2176 |
2178 | 2177 |
2179 } } // namespace v8::internal | 2178 } } // namespace v8::internal |
2180 #endif | 2179 #endif |
OLD | NEW |