Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: src/gdb-jit.cc

Issue 18023005: Fix the compilation of gdbjit (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698