OLD | NEW |
1 # Copyright 2014 the V8 project authors. All rights reserved. | 1 # Copyright 2014 the V8 project authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # Print HeapObjects. | 5 # Print HeapObjects. |
6 define job | 6 define job |
7 print ((v8::internal::HeapObject*)($arg0))->Print() | 7 print ((v8::internal::HeapObject*)($arg0))->Print() |
8 end | 8 end |
9 document job | 9 document job |
10 Print a v8 JavaScript object | 10 Print a v8 JavaScript object |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 # Print JavaScript stack trace. | 50 # Print JavaScript stack trace. |
51 define jst | 51 define jst |
52 print v8::internal::Isolate::Current()->PrintStack((FILE*) stdout, 1) | 52 print v8::internal::Isolate::Current()->PrintStack((FILE*) stdout, 1) |
53 end | 53 end |
54 document jst | 54 document jst |
55 Print the current JavaScript stack trace | 55 Print the current JavaScript stack trace |
56 Usage: jst | 56 Usage: jst |
57 end | 57 end |
58 | 58 |
| 59 # Skip the JavaScript stack. |
| 60 define jss |
| 61 set $js_entry_sp=v8::internal::Isolate::Current()->thread_local_top()->js_entry_
sp_ |
| 62 set $rbp=*(void**)$js_entry_sp |
| 63 set $rsp=$js_entry_sp + 2*sizeof(void*) |
| 64 set $pc=*(void**)($js_entry_sp+sizeof(void*)) |
| 65 end |
| 66 document jss |
| 67 Skip the jitted stack on x64 to where we entered JS last. |
| 68 Usage: jss |
| 69 end |
| 70 |
59 set disassembly-flavor intel | 71 set disassembly-flavor intel |
60 set disable-randomization off | 72 set disable-randomization off |
OLD | NEW |