|
[builtins] Add receiver to builtin exit frames
Stack trace generation requires access to the receiver; and while the
receiver is already on the stack, we cannot determine its position
during stack trace generation (it's stored in argv[0], and argc is only
stored in a callee-saved register).
This patch grants access to the receiver by pushing argc onto builtin
exit frames as an extra argument. Compared to simply pushing the
receiver, this requires an additional dereference during stack trace
generation, but one fewer during builtin calls.
BUG= v8:4815
Committed: https://crrev.com/f59a23356b437e369d75445177fea838ee5bccc7
Cr-Commit-Position: refs/heads/master@{#37500}
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+127 lines, -52 lines) |
Patch |
|
M |
src/arm/builtins-arm.cc
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/arm64/builtins-arm64.cc
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/builtins.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+25 lines, -14 lines |
0 comments
|
Download
|
|
M |
src/frames.h
|
View
|
1
2
3
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/frames.cc
|
View
|
1
2
3
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
src/frames-inl.h
|
View
|
1
2
3
|
1 chunk |
+21 lines, -1 line |
0 comments
|
Download
|
|
M |
src/heap-symbols.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/ia32/builtins-ia32.cc
|
View
|
1
2
|
1 chunk |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/isolate.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/js/messages.js
|
View
|
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/messages.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/mips/builtins-mips.cc
|
View
|
1
2
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/mips64/builtins-mips64.cc
|
View
|
1
2
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/x64/builtins-x64.cc
|
View
|
1
|
1 chunk |
+9 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/message/paren_in_arg_string.out
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-4815.js
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Depends on Patchset:
Dependent Patchsets:
Total messages: 34 (14 generated)
|