def initialize(self): self.d = {} self.d['FRAMETYPE_MASK'] = (1 << self.jit_value('FRAMETYPE_BITS')) - 1 self.d['FRAMESIZE_SHIFT'] = self.jit_value('FRAMESIZE_SHIFT') self.d['FRAME_HEADER_SIZE_SHIFT'] = self.jit_value('FRAME_HEADER_SIZE_SHIFT') self.d['FRAME_HEADER_SIZE_MASK'] = self.jit_value('FRAME_HEADER_SIZE_MASK') self.compute_frame_info() commonFrameLayout = gdb.lookup_type('js::jit::CommonFrameLayout') self.d['typeCommonFrameLayout'] = commonFrameLayout self.d['typeCommonFrameLayoutPointer'] = commonFrameLayout.pointer() self.d['per_tls_context'] = gdb.lookup_global_symbol('js::TlsContext') self.d['void_starstar'] = gdb.lookup_type('void').pointer().pointer() self.d['mod_ExecutableAllocator'] = jsjitExecutableAllocatorCache() jitframe = gdb.lookup_type("js::jit::JitFrameLayout") self.d['jitFrameLayoutPointer'] = jitframe.pointer() self.d['CalleeToken_Function'] = self.jit_value("CalleeToken_Function") self.d['CalleeToken_FunctionConstructing'] = self.jit_value( "CalleeToken_FunctionConstructing") self.d['CalleeToken_Script'] = self.jit_value("CalleeToken_Script") self.d['JSFunction'] = gdb.lookup_type("JSFunction").pointer() self.d['JSScript'] = gdb.lookup_type("JSScript").pointer() self.d['Value'] = gdb.lookup_type("JS::Value") self.d['SOURCE_SLOT'] = self.value('js::ScriptSourceObject::SOURCE_SLOT') self.d['NativeObject'] = gdb.lookup_type("js::NativeObject").pointer() self.d['HeapSlot'] = gdb.lookup_type("js::HeapSlot").pointer() self.d['ScriptSource'] = gdb.lookup_type("js::ScriptSource").pointer()
def initialize(self): self.d = {} self.d['FRAMETYPE_MASK'] = (1 << self.jit_value('FRAMETYPE_BITS')) - 1 self.d['FRAMESIZE_SHIFT'] = self.jit_value('FRAMESIZE_SHIFT') self.d['FRAME_HEADER_SIZE_SHIFT'] = self.jit_value( 'FRAME_HEADER_SIZE_SHIFT') self.d['FRAME_HEADER_SIZE_MASK'] = self.jit_value( 'FRAME_HEADER_SIZE_MASK') self.compute_frame_info() commonFrameLayout = gdb.lookup_type('js::jit::CommonFrameLayout') self.d['typeCommonFrameLayout'] = commonFrameLayout self.d['typeCommonFrameLayoutPointer'] = commonFrameLayout.pointer() self.d['per_tls_context'] = gdb.lookup_global_symbol('js::TlsContext') self.d['void_starstar'] = gdb.lookup_type('void').pointer().pointer() self.d['mod_ExecutableAllocator'] = jsjitExecutableAllocatorCache() jitframe = gdb.lookup_type("js::jit::JitFrameLayout") self.d['jitFrameLayoutPointer'] = jitframe.pointer() self.d['CalleeToken_Function'] = self.jit_value("CalleeToken_Function") self.d['CalleeToken_FunctionConstructing'] = self.jit_value( "CalleeToken_FunctionConstructing") self.d['CalleeToken_Script'] = self.jit_value("CalleeToken_Script") self.d['JSFunction'] = gdb.lookup_type("JSFunction").pointer() self.d['JSScript'] = gdb.lookup_type("JSScript").pointer() self.d['Value'] = gdb.lookup_type("JS::Value") self.d['SOURCE_SLOT'] = self.value( 'js::ScriptSourceObject::SOURCE_SLOT') self.d['NativeObject'] = gdb.lookup_type("js::NativeObject").pointer() self.d['HeapSlot'] = gdb.lookup_type("js::HeapSlot").pointer() self.d['ScriptSource'] = gdb.lookup_type("js::ScriptSource").pointer()
def initialize(self): self.d = {} self.d['FRAMETYPE_MASK'] = (1 << self.value('FRAMETYPE_BITS')) - 1 self.d['FRAMESIZE_SHIFT'] = self.value('FRAMESIZE_SHIFT') self.d['FRAME_HEADER_SIZE_SHIFT'] = self.value('FRAME_HEADER_SIZE_SHIFT') self.d['FRAME_HEADER_SIZE_MASK'] = self.value('FRAME_HEADER_SIZE_MASK') self.compute_frame_info() commonFrameLayout = gdb.lookup_type('js::jit::CommonFrameLayout') self.d['typeCommonFrameLayout'] = commonFrameLayout self.d['typeCommonFrameLayoutPointer'] = commonFrameLayout.pointer() self.d['per_tls_data'] = gdb.lookup_global_symbol('js::TlsPerThreadData') self.d['void_starstar'] = gdb.lookup_type('void').pointer().pointer() self.d['mod_ExecutableAllocator'] = jsjitExecutableAllocatorCache()