RESOLVED FIXED 142436
The code to link FunctionExecutable is duplicated everywhere
https://bugs.webkit.org/show_bug.cgi?id=142436
Summary The code to link FunctionExecutable is duplicated everywhere
Ryosuke Niwa
Reported 2015-03-07 01:18:02 PST
There's a lot of code duplicated to adjust offsets within SourceCode. Refactor them into two functions.
Attachments
Patch (13.38 KB, patch)
2015-03-07 01:25 PST, Ryosuke Niwa
no flags
Fixed the bug title (13.37 KB, patch)
2015-03-07 01:27 PST, Ryosuke Niwa
no flags
Cleanup (13.35 KB, patch)
2015-03-07 01:36 PST, Ryosuke Niwa
darin: review+
Ryosuke Niwa
Comment 1 2015-03-07 01:25:53 PST
Ryosuke Niwa
Comment 2 2015-03-07 01:27:50 PST
Created attachment 248151 [details] Fixed the bug title
Ryosuke Niwa
Comment 3 2015-03-07 01:36:41 PST
Darin Adler
Comment 4 2015-03-07 08:51:12 PST
Comment on attachment 248152 [details] Cleanup View in context: https://bugs.webkit.org/attachment.cgi?id=248152&action=review > Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp:144 > + // The unlinkedBodyEndColumn is based-0. Hence, we need to add 1 to it. But if the The term is "0-based", not "based-0". Would be nice to fix this since you are moving this comment into a new function.
Filip Pizlo
Comment 5 2015-03-07 09:05:03 PST
Comment on attachment 248152 [details] Cleanup Thanks for doing this!
Ryosuke Niwa
Comment 6 2015-03-07 13:44:54 PST
(In reply to comment #4) > Comment on attachment 248152 [details] > Cleanup > > View in context: > https://bugs.webkit.org/attachment.cgi?id=248152&action=review > > > Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp:144 > > + // The unlinkedBodyEndColumn is based-0. Hence, we need to add 1 to it. But if the > > The term is "0-based", not "based-0". Would be nice to fix this since you > are moving this comment into a new function. Thanks for the review. Will fix!
Ryosuke Niwa
Comment 7 2015-03-07 14:10:34 PST
Note You need to log in before you can comment on or make changes to this bug.