WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
183387
Prepare LLInt code to support pointer profiling.
https://bugs.webkit.org/show_bug.cgi?id=183387
Summary
Prepare LLInt code to support pointer profiling.
Mark Lam
Reported
2018-03-06 16:18:05 PST
Patch coming.
Attachments
proposed patch.
(46.75 KB, patch)
2018-03-06 20:14 PST
,
Mark Lam
jfbastien
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-03-06 16:18:44 PST
<
rdar://problem/38199678
>
Mark Lam
Comment 2
2018-03-06 20:14:14 PST
Created
attachment 335170
[details]
proposed patch.
JF Bastien
Comment 3
2018-03-06 21:39:57 PST
Comment on
attachment 335170
[details]
proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=335170&action=review
r=me
> Source/JavaScriptCore/llint/LLIntData.cpp:90 > + ExceptionHandlerPtrTag, // handleUncaughtException
This seems brittle. Could we auto-gen this or something like xmacros?
> Source/JavaScriptCore/offlineasm/ast.rb:932 > + when "tagReturnAddress", "untagReturnAddress"
FIXME?
> Source/JavaScriptCore/runtime/PtrTag.h:73 > + inline constexpr T removeCodePtrTag(PtrType ptr) { return bitwise_cast<T>(ptr); }
Weird indent.
Mark Lam
Comment 4
2018-03-06 21:55:12 PST
Comment on
attachment 335170
[details]
proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=335170&action=review
Thanks for the review. Responses below.
>> Source/JavaScriptCore/llint/LLIntData.cpp:90 >> + ExceptionHandlerPtrTag, // handleUncaughtException > > This seems brittle. Could we auto-gen this or something like xmacros?
The 2 static asserts below makes this not brittle. They will catch the case where new opcodes get added. We can revisit this later if we want to do something fancier for this.
>> Source/JavaScriptCore/offlineasm/ast.rb:932 >> + when "tagReturnAddress", "untagReturnAddress" > > FIXME?
This is the intended behavior i.e. these are no-ops by default. So, I'll leave them as is.
>> Source/JavaScriptCore/runtime/PtrTag.h:73 >> + inline constexpr T removeCodePtrTag(PtrType ptr) { return bitwise_cast<T>(ptr); } > > Weird indent.
Oops. Will fix.
Mark Lam
Comment 5
2018-03-06 22:45:31 PST
Landed in
r229354
: <
http://trac.webkit.org/r229354
>.
WebKit Commit Bot
Comment 6
2018-03-08 17:59:46 PST
Re-opened since this is blocked by
bug 183492
Mark Lam
Comment 7
2018-03-09 13:35:58 PST
Re-landed in
r229481
: <
http://trac.webkit.org/r229481
>.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug