Bug 183512 - Move jsc CLI breakpoint function to $vm
Summary: Move jsc CLI breakpoint function to $vm
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Keith Miller
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-03-09 05:20 PST by Keith Miller
Modified: 2018-03-14 12:44 PDT (History)
7 users (show)

See Also:


Attachments
Patch (1.72 KB, patch)
2018-03-09 05:22 PST, Keith Miller
no flags Details | Formatted Diff | Diff
Patch for landing (4.00 KB, patch)
2018-03-14 12:07 PDT, Keith Miller
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Miller 2018-03-09 05:20:48 PST
Move jsc CLI breakpoint function to $vm
Comment 1 Keith Miller 2018-03-09 05:22:12 PST
Created attachment 335423 [details]
Patch
Comment 2 EWS Watchlist 2018-03-09 05:23:03 PST
Attachment 335423 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/ChangeLog:8:  Please consider whether the use of security-sensitive phrasing could help someone exploit WebKit: fuzzer  [changelog/unwantedsecurityterms] [3]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Yusuke Suzuki 2018-03-09 06:03:35 PST
Comment on attachment 335423 [details]
Patch

r=me, nice.
Comment 4 Yusuke Suzuki 2018-03-09 06:06:10 PST
Comment on attachment 335423 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=335423&action=review

> Source/JavaScriptCore/jsc.cpp:582
> +        addFunction(vm, dollar, "breakpoint", functionBreakpoint, 0);

I think, this is `$.breakpoint`, not `$vm.breakpoint`, correct?
You can move this to tools/JSDollarVM.cpp
Comment 5 Mark Lam 2018-03-09 06:42:08 PST
Comment on attachment 335423 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=335423&action=review

>> Source/JavaScriptCore/jsc.cpp:582
>> +        addFunction(vm, dollar, "breakpoint", functionBreakpoint, 0);
> 
> I think, this is `$.breakpoint`, not `$vm.breakpoint`, correct?
> You can move this to tools/JSDollarVM.cpp

Yes, to put this in $vm, you should add it in JSDollarVM.
Comment 6 David Kilzer (:ddkilzer) 2018-03-14 11:33:33 PDT
<rdar://problem/38462027>
Comment 7 Keith Miller 2018-03-14 12:07:14 PDT
Created attachment 335783 [details]
Patch for landing
Comment 8 WebKit Commit Bot 2018-03-14 12:44:40 PDT
Comment on attachment 335783 [details]
Patch for landing

Clearing flags on attachment: 335783

Committed r229605: <https://trac.webkit.org/changeset/229605>
Comment 9 WebKit Commit Bot 2018-03-14 12:44:43 PDT
All reviewed patches have been landed.  Closing bug.