Bug 162253 - [JSC] Add `typeof value === "symbol"` handling to bytecode compiler
Summary: [JSC] Add `typeof value === "symbol"` handling to bytecode compiler
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-19 21:41 PDT by Yusuke Suzuki
Modified: 2016-09-20 08:48 PDT (History)
5 users (show)

See Also:


Attachments
Patch (4.44 KB, patch)
2016-09-19 21:50 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2016-09-19 21:41:27 PDT
We can easily implement it by using is_cell_with_type.
Comment 1 Yusuke Suzuki 2016-09-19 21:47:48 PDT
Benefit is super tiny, but it is consistent to the current implementation that have the similar path for "string" case.
Comment 2 Yusuke Suzuki 2016-09-19 21:48:09 PDT
                          baseline                  patched                                      

is-symbol              1.5291+-0.0149     ^      1.4763+-0.0160        ^ definitely 1.0358x faster
is-symbol-mixed        4.7242+-0.1301            4.5916+-0.1242          might be 1.0289x faster
Comment 3 Yusuke Suzuki 2016-09-19 21:50:17 PDT
Created attachment 289310 [details]
Patch
Comment 4 Yusuke Suzuki 2016-09-20 08:24:40 PDT
Comment on attachment 289310 [details]
Patch

Thanks!
Comment 5 WebKit Commit Bot 2016-09-20 08:47:56 PDT
Comment on attachment 289310 [details]
Patch

Clearing flags on attachment: 289310

Committed r206147: <http://trac.webkit.org/changeset/206147>
Comment 6 WebKit Commit Bot 2016-09-20 08:48:00 PDT
All reviewed patches have been landed.  Closing bug.