1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
8 #include "src/allocation.h"
11 // Basic implementation of GDB JIT Interface client.
12 // GBD JIT Interface is supported in GDB 7.0 and above.
13 // Currently on x64 and ia32 architectures and Linux OS are supported.
16 #ifdef ENABLE_GDB_JIT_INTERFACE
19 #include "src/factory.h"
24 class CompilationInfo;
26 class GDBJITInterface: public AllStatic {
28 enum CodeTag { NON_FUNCTION, FUNCTION };
30 // Main entry point into GDB JIT realized as a JitCodeEventHandler.
31 static void EventHandler(const v8::JitCodeEvent* event);
33 static void AddCode(Handle<Name> name,
34 Handle<Script> script,
36 CompilationInfo* info);
38 static void RemoveCodeRange(Address start, Address end);
41 static void AddCode(const char* name, Code* code, CodeTag tag, Script* script,
42 CompilationInfo* info);
44 static void RemoveCode(Code* code);
47 #define GDBJIT(action) GDBJITInterface::action
49 } } // namespace v8::internal
51 #define GDBJIT(action) ((void) 0)