WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
223884
Reduce bytecode instruction count emitted for `class extends`
https://bugs.webkit.org/show_bug.cgi?id=223884
Summary
Reduce bytecode instruction count emitted for `class extends`
Alexey Shvayka
Reported
2021-03-29 10:37:12 PDT
Reduce bytecode instruction count emitted for `class extends`
Attachments
Patch
(19.75 KB, patch)
2021-03-29 10:40 PDT
,
Alexey Shvayka
no flags
Details
Formatted Diff
Diff
Patch
(21.33 KB, patch)
2021-03-30 15:44 PDT
,
Alexey Shvayka
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alexey Shvayka
Comment 1
2021-03-29 10:40:21 PDT
Created
attachment 424544
[details]
Patch
Alexey Shvayka
Comment 2
2021-03-30 15:44:28 PDT
Created
attachment 424707
[details]
Patch Fix divots to point to correct location.
Yusuke Suzuki
Comment 3
2021-04-02 13:47:32 PDT
Comment on
attachment 424707
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=424707&action=review
r=me
> Source/JavaScriptCore/runtime/ExceptionHelpers.cpp:275 > +static String invalidPrototypeSourceAppender(const String& originalMessage, const String& sourceText, RuntimeType, ErrorInstance::SourceTextWhereErrorOccurred occurrence) > +{ > + if (occurrence == ErrorInstance::FoundApproximateSource) > + return defaultApproximateSourceError(originalMessage, sourceText); > + > + auto extendsIndex = sourceText.reverseFind("extends"); > + if (extendsIndex == notFound || sourceText.find("extends") != extendsIndex) > + return makeString(originalMessage, " (evaluating '", sourceText, "')"); > + > + return "The value of the superclass's prototype property is not an object or null."_s; > +}
This is awesome.
EWS
Comment 4
2021-04-02 14:20:51 PDT
Committed
r275439
: <
https://commits.webkit.org/r275439
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 424707
[details]
.
Radar WebKit Bug Importer
Comment 5
2021-04-02 14:21:24 PDT
<
rdar://problem/76165091
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug