Bug 178531 - We should hard code the poly proto offset
Summary: We should hard code the poly proto offset
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Saam Barati
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-10-19 12:18 PDT by Saam Barati
Modified: 2017-11-15 13:02 PST (History)
13 users (show)

See Also:


Attachments
might be the patch (19.19 KB, patch)
2017-10-19 13:07 PDT, Saam Barati
no flags Details | Formatted Diff | Diff
test on EWS (21.62 KB, patch)
2017-10-19 13:09 PDT, Saam Barati
no flags Details | Formatted Diff | Diff
patch (23.88 KB, patch)
2017-10-19 14:22 PDT, Saam Barati
fpizlo: review+
Details | Formatted Diff | Diff
patch for landing (23.80 KB, patch)
2017-10-19 14:33 PDT, Saam Barati
saam: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Saam Barati 2017-10-19 12:18:49 PDT
Currently, it's always at offset zero in inline storage. Let's make this a hard coded assumption because it speeds up speedometer.
Comment 1 Saam Barati 2017-10-19 13:07:02 PDT
Created attachment 324267 [details]
might be the patch
Comment 2 Saam Barati 2017-10-19 13:09:58 PDT
Created attachment 324269 [details]
test on EWS
Comment 3 Saam Barati 2017-10-19 14:22:04 PDT
Created attachment 324283 [details]
patch
Comment 4 Mark Lam 2017-10-19 14:31:44 PDT
Comment on attachment 324283 [details]
patch

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

> Source/JavaScriptCore/bytecode/AccessCase.cpp:450
> +                        RELEASE_ASSERT(isInlineOffset(knownPolyProtoOffset));

Remove this.
Comment 5 Saam Barati 2017-10-19 14:33:13 PDT
Created attachment 324292 [details]
patch for landing
Comment 6 Saam Barati 2017-10-19 15:02:41 PDT
need to fix some debug asserts.
Comment 7 Saam Barati 2017-10-19 15:24:17 PDT
landed in:
https://trac.webkit.org/changeset/223715/webkit
Comment 8 Radar WebKit Bug Importer 2017-11-15 13:02:10 PST
<rdar://problem/35568656>