2017-03-27 06:44:15 +00:00
|
|
|
# Copyright 2017 the V8 project authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
# Print HeapObjects.
|
|
|
|
command regex -h 'Print a v8 JavaScript object' job 's/(.+)/expr -- '_v8_internal_Print_Object((void*)(%1))/'
|
|
|
|
|
|
|
|
# Print v8::Local handle value.
|
|
|
|
command regex -h 'Print content of a v8::Local handle' jlh 's/(.+)/expr -- '_v8_internal_Print_Object(*(v8::internal::Object**)(*%1))/'
|
|
|
|
|
|
|
|
# Print Code objects containing given PC.
|
|
|
|
command regex -h 'Print a v8 Code object from an internal code address' jco 's/(.+)/expr -- '_v8_internal_Print_Code((void*)(*%1))/'
|
|
|
|
|
|
|
|
# Print LayoutDescriptor.
|
|
|
|
command regex -h 'Print a v8 LayoutDescriptor object' jld 's/(.+)/expr -- '_v8_internal_Print_LayoutDescriptor((void*)(%1))/'
|
|
|
|
|
2018-06-26 11:43:50 +00:00
|
|
|
# Print TransitionTree.
|
2017-07-06 08:17:19 +00:00
|
|
|
command regex -h 'Print the transition tree of a v8 Map' jtt 's/(.+)/expr -- '_v8_internal_Print_TransitionTree((void*)(%1))/'
|
|
|
|
|
2017-03-27 06:44:15 +00:00
|
|
|
command script import ~/lldb_commands.py
|