RESOLVED FIXED 172225
[JSC] Make get_by_val & string "499" to number 499
https://bugs.webkit.org/show_bug.cgi?id=172225
Summary [JSC] Make get_by_val & string "499" to number 499
Yusuke Suzuki
Reported 2017-05-17 09:24:11 PDT
...
Attachments
Patch (15.20 KB, patch)
2017-05-19 21:07 PDT, Yusuke Suzuki
saam: review+
Yusuke Suzuki
Comment 1 2017-05-17 09:26:12 PDT
And we should convert GetByVal(..., String:"499") to GetByVal(..., Int32:499).
Yusuke Suzuki
Comment 2 2017-05-19 06:27:08 PDT
(In reply to Yusuke Suzuki from comment #1) > And we should convert GetByVal(..., String:"499") to GetByVal(..., > Int32:499). I would like to do it in a separate patch. https://bugs.webkit.org/show_bug.cgi?id=172358
Yusuke Suzuki
Comment 3 2017-05-19 21:07:15 PDT
Saam Barati
Comment 4 2017-05-21 14:37:52 PDT
Comment on attachment 310757 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=310757&action=review r=me > Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h:585 > + if (leftHandSideNeedsCopy(rightHasAssignments, rightIsPure)) { > + RefPtr<RegisterID> dst = newTemporary(); > + emitNodeForProperty(dst.get(), n); > + return dst; > + } Do you have a test for this?
Yusuke Suzuki
Comment 5 2017-05-21 22:32:47 PDT
Comment on attachment 310757 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=310757&action=review Thanks! >> Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h:585 >> + } > > Do you have a test for this? Nice, added.
Yusuke Suzuki
Comment 6 2017-05-21 22:33:56 PDT
Yusuke Suzuki
Comment 7 2017-05-21 23:00:51 PDT
Note You need to log in before you can comment on or make changes to this bug.