Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b1922e7

Browse filesBrowse files
committed
dtrace: fix ustack helper for V8 5.1
V8 5.1 changes the layout of stack frames. PR-URL: #6482 Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
1 parent cda8bfc commit b1922e7
Copy full SHA for b1922e7

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎src/v8abbr.h‎

Copy file name to clipboardExpand all lines: src/v8abbr.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
V8_OFF_HEAP(V8DBG_CLASS_JSFUNCTION__SHARED__SHAREDFUNCTIONINFO)
8888
#define V8_OFF_SHARED_NAME \
8989
V8_OFF_HEAP(V8DBG_CLASS_SHAREDFUNCTIONINFO__NAME__OBJECT)
90-
#define V8_OFF_SHARED_INFERRED \
91-
V8_OFF_HEAP(V8DBG_CLASS_SHAREDFUNCTIONINFO__INFERRED_NAME__STRING)
90+
#define V8_OFF_SHARED_IDENT \
91+
V8_OFF_HEAP(V8DBG_CLASS_SHAREDFUNCTIONINFO__FUNCTION_IDENTIFIER__OBJECT)
9292
#define V8_OFF_SHARED_SCRIPT \
9393
V8_OFF_HEAP(V8DBG_CLASS_SHAREDFUNCTIONINFO__SCRIPT__OBJECT)
9494
#define V8_OFF_SHARED_FUNTOK \
Collapse file

‎src/v8ustack.d‎

Copy file name to clipboardExpand all lines: src/v8ustack.d
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ dtrace:helper:ustack:
414414
dtrace:helper:ustack:
415415
/!this->done/
416416
{
417-
this->marker = COPYIN_PTR(this->fp + V8_OFF_FP_MARKER);
417+
this->marker = COPYIN_PTR(this->fp + V8_OFF_FP_CONTEXT);
418418
}
419419

420420
dtrace:helper:ustack:
@@ -532,7 +532,7 @@ dtrace:helper:ustack:
532532
APPEND_CHR('s');
533533
APPEND_CHR(' ');
534534

535-
this->funcnamestr = COPYIN_PTR(this->shared + V8_OFF_SHARED_INFERRED);
535+
this->funcnamestr = COPYIN_PTR(this->shared + V8_OFF_SHARED_IDENT);
536536
LOAD_STRFIELDS(this->funcnamestr, this->funcnamelen,
537537
this->funcnameattrs);
538538
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.