Version 3.21.7

Fixed casts of eternal handles.

Turned on global handle zapping.

Always visit branches during HGraph building (Chromium issue 280333).

Profiler changes: removed deprecated API, support higher sampling rate on Windows.

Performance and stability improvements on all platforms.

git-svn-id: http://v8.googlecode.com/svn/trunk@16446 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/gdb-jit.cc b/src/gdb-jit.cc
index 664673f..21cfd22 100644
--- a/src/gdb-jit.cc
+++ b/src/gdb-jit.cc
@@ -2063,7 +2063,7 @@
                               CompilationInfo* info) {
   if (!FLAG_gdbjit) return;
 
-  ScopedLock lock(mutex.Pointer());
+  LockGuard<Mutex> lock_guard(mutex.Pointer());
   DisallowHeapAllocation no_gc;
 
   HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true);
@@ -2149,7 +2149,7 @@
 void GDBJITInterface::RemoveCode(Code* code) {
   if (!FLAG_gdbjit) return;
 
-  ScopedLock lock(mutex.Pointer());
+  LockGuard<Mutex> lock_guard(mutex.Pointer());
   HashMap::Entry* e = GetEntries()->Lookup(code,
                                            HashForCodeObject(code),
                                            false);
@@ -2187,7 +2187,7 @@
 
 void GDBJITInterface::RegisterDetailedLineInfo(Code* code,
                                                GDBJITLineInfo* line_info) {
-  ScopedLock lock(mutex.Pointer());
+  LockGuard<Mutex> lock_guard(mutex.Pointer());
   ASSERT(!IsLineInfoTagged(line_info));
   HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true);
   ASSERT(e->value == NULL);