WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
176590
[DFG][FTL] GetByVal(ObjectUse with Array::Generic, StringUse/SymbolUse) should be supported
https://bugs.webkit.org/show_bug.cgi?id=176590
Summary
[DFG][FTL] GetByVal(ObjectUse with Array::Generic, StringUse/SymbolUse) shoul...
Yusuke Suzuki
Reported
2017-09-08 05:58:48 PDT
We can find the code like, var dispatchTable = { "xxx": function () { ... }, "yyy": ..., ... }; dispatchTable[xxx]() In the above case, we can easily find 1. dispatchTable is Cell 2. xxx is String I find it in Octane/TypeScript. Currently, we always go to operationGetByVal, which is too generic method.
Attachments
Patch
(15.79 KB, patch)
2017-09-08 07:30 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(16.07 KB, patch)
2017-09-08 07:41 PDT
,
Yusuke Suzuki
saam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2017-09-08 07:30:35 PDT
Created
attachment 320261
[details]
Patch
Yusuke Suzuki
Comment 2
2017-09-08 07:41:07 PDT
Created
attachment 320263
[details]
Patch
Saam Barati
Comment 3
2017-09-08 07:53:00 PDT
Comment on
attachment 320263
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=320263&action=review
> Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:3175 > + JSValueRegs resultRegs = result.regs();
Is it worth using the FlushedCallResult (I forget actual class name) here?
Yusuke Suzuki
Comment 4
2017-09-08 08:07:16 PDT
Comment on
attachment 320263
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=320263&action=review
>> Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:3175 >> + JSValueRegs resultRegs = result.regs(); > > Is it worth using the FlushedCallResult (I forget actual class name) here?
Sounds good. Fixed.
Yusuke Suzuki
Comment 5
2017-09-08 08:36:25 PDT
Committed
r221783
: <
http://trac.webkit.org/changeset/221783
>
Radar WebKit Bug Importer
Comment 6
2017-09-27 12:37:17 PDT
<
rdar://problem/34693620
>
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