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

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

Issue 10795074: Add a new API V8::SetJitCodeEventHandler to push code name and location to users such as profilers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ready for review Created 8 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
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 28 matching lines...) Expand all
39 39
40 namespace v8 { 40 namespace v8 {
41 namespace internal { 41 namespace internal {
42 42
43 #ifdef __APPLE__ 43 #ifdef __APPLE__
44 #define __MACH_O 44 #define __MACH_O
45 class MachO; 45 class MachO;
46 class MachOSection; 46 class MachOSection;
47 typedef MachO DebugObject; 47 typedef MachO DebugObject;
48 typedef MachOSection DebugSection; 48 typedef MachOSection DebugSection;
49 #else 49 #elif !defined(WIN32) // DO NOT SUBMIT
danno 2012/07/25 13:50:42 What is this change for?
Sigurður Ásgeirsson 2012/07/25 14:38:35 Reverted, sorry.
50 #define __ELF 50 #define __ELF
51 class ELF; 51 class ELF;
52 class ELFSection; 52 class ELFSection;
53 typedef ELF DebugObject; 53 typedef ELF DebugObject;
54 typedef ELFSection DebugSection; 54 typedef ELFSection DebugSection;
55 #else
56 typedef void DebugObject;
55 #endif 57 #endif
56 58
57 class Writer BASE_EMBEDDED { 59 class Writer BASE_EMBEDDED {
58 public: 60 public:
59 explicit Writer(DebugObject* debug_object) 61 explicit Writer(DebugObject* debug_object)
60 : debug_object_(debug_object), 62 : debug_object_(debug_object),
61 position_(0), 63 position_(0),
62 capacity_(1024), 64 capacity_(1024),
63 buffer_(reinterpret_cast<byte*>(malloc(capacity_))) { 65 buffer_(reinterpret_cast<byte*>(malloc(capacity_))) {
64 } 66 }
(...skipping 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after
2150 ScopedLock lock(mutex.Pointer()); 2152 ScopedLock lock(mutex.Pointer());
2151 ASSERT(!IsLineInfoTagged(line_info)); 2153 ASSERT(!IsLineInfoTagged(line_info));
2152 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); 2154 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true);
2153 ASSERT(e->value == NULL); 2155 ASSERT(e->value == NULL);
2154 e->value = TagLineInfo(line_info); 2156 e->value = TagLineInfo(line_info);
2155 } 2157 }
2156 2158
2157 2159
2158 } } // namespace v8::internal 2160 } } // namespace v8::internal
2159 #endif 2161 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698