Bug 179247

Summary: [JSC][JIT] Clean up SlowPathCall stubs
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: New BugsAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, keith_miller, mark.lam, msaboff, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch saam: review+

Description Yusuke Suzuki 2017-11-03 10:46:34 PDT
[JSC][JIT] Clean up SlowPathCall stubs
Comment 1 Yusuke Suzuki 2017-11-03 10:47:58 PDT
Created attachment 325916 [details]
Patch
Comment 2 Saam Barati 2017-11-08 10:49:12 PST
Comment on attachment 325916 [details]
Patch

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

nice cleanup. r=me

> Source/JavaScriptCore/runtime/CommonSlowPaths.cpp:283
> +SLOW_PATH_DECL(slow_path_check_tdz)
> +{
> +    BEGIN();
> +    THROW(createTDZError(exec));
> +}

Not a fan of this name, this used to be called throw_tdz_error or whatever, which I think is more intuitive.
Comment 3 Saam Barati 2017-11-08 10:49:35 PST
Comment on attachment 325916 [details]
Patch

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

> Source/JavaScriptCore/ChangeLog:8
> +        We have bunch of duplicate functions that just calls a slow path function.

calls => call
Comment 4 Yusuke Suzuki 2017-11-09 07:14:26 PST
Comment on attachment 325916 [details]
Patch

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

Thanks

>> Source/JavaScriptCore/ChangeLog:8
>> +        We have bunch of duplicate functions that just calls a slow path function.
> 
> calls => call

Fixed!

>> Source/JavaScriptCore/runtime/CommonSlowPaths.cpp:283
>> +}
> 
> Not a fan of this name, this used to be called throw_tdz_error or whatever, which I think is more intuitive.

Currently, we rely on this name because we mechanically call slow_path function that has the same name to the opcode :(
Comment 5 Yusuke Suzuki 2017-11-09 07:16:30 PST
Committed r224626: <https://trac.webkit.org/changeset/224626>
Comment 6 Radar WebKit Bug Importer 2017-11-15 09:41:01 PST
<rdar://problem/35562220>