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 16093041: Fix compilation with gdbjit=on. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: remove GOATS :) Created 7 years, 6 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
« no previous file with comments | « no previous file | src/mips/assembler-mips.cc » ('j') | 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 2044 matching lines...) Expand 10 before | Expand all | Expand 10 after
2055 2055
2056 2056
2057 void GDBJITInterface::AddCode(const char* name, 2057 void GDBJITInterface::AddCode(const char* name,
2058 Code* code, 2058 Code* code,
2059 GDBJITInterface::CodeTag tag, 2059 GDBJITInterface::CodeTag tag,
2060 Script* script, 2060 Script* script,
2061 CompilationInfo* info) { 2061 CompilationInfo* info) {
2062 if (!FLAG_gdbjit) return; 2062 if (!FLAG_gdbjit) return;
2063 2063
2064 ScopedLock lock(mutex.Pointer()); 2064 ScopedLock lock(mutex.Pointer());
2065 AssertNoAllocation no_gc; 2065 DisallowHeapAllocation no_gc;
2066 2066
2067 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); 2067 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true);
2068 if (e->value != NULL && !IsLineInfoTagged(e->value)) return; 2068 if (e->value != NULL && !IsLineInfoTagged(e->value)) return;
2069 2069
2070 GDBJITLineInfo* lineinfo = UntagLineInfo(e->value); 2070 GDBJITLineInfo* lineinfo = UntagLineInfo(e->value);
2071 CodeDescription code_desc(name, 2071 CodeDescription code_desc(name,
2072 code, 2072 code,
2073 script != NULL ? Handle<Script>(script) 2073 script != NULL ? Handle<Script>(script)
2074 : Handle<Script>(), 2074 : Handle<Script>(),
2075 lineinfo, 2075 lineinfo,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
2170 ScopedLock lock(mutex.Pointer()); 2170 ScopedLock lock(mutex.Pointer());
2171 ASSERT(!IsLineInfoTagged(line_info)); 2171 ASSERT(!IsLineInfoTagged(line_info));
2172 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); 2172 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true);
2173 ASSERT(e->value == NULL); 2173 ASSERT(e->value == NULL);
2174 e->value = TagLineInfo(line_info); 2174 e->value = TagLineInfo(line_info);
2175 } 2175 }
2176 2176
2177 2177
2178 } } // namespace v8::internal 2178 } } // namespace v8::internal
2179 #endif 2179 #endif
OLDNEW
« no previous file with comments | « no previous file | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698