Bug 179247 - [JSC][JIT] Clean up SlowPathCall stubs
Summary: [JSC][JIT] Clean up SlowPathCall stubs
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: Yusuke Suzuki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-11-03 10:46 PDT by Yusuke Suzuki
Modified: 2017-11-15 09:41 PST (History)
6 users (show)

See Also:


Attachments
Patch (33.34 KB, patch)
2017-11-03 10:47 PDT, Yusuke Suzuki
saam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>