[Webkit-unassigned] [Bug 154639] New: [ES6] Arrow function. Some not used byte code is emited
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 24 04:10:51 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=154639
Bug ID: 154639
Summary: [ES6] Arrow function. Some not used byte code is
emited
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gskachkov at gmail.com
During checking arrow function I found that some unused byte code is emited:
for instance for:
var f2 = function () { return ()=>'test';};
f2()();
was generated:
....
f2#DrpDJu:[0x10de8f840->0x10de76f40, NoneFunctionCall, 20]: 20 m_instructions; 160 bytes; 1 parameter(s); 8 callee register(s); 7 variable(s)
[ 0] enter
[ 1] get_scope loc3
[ 3] mov loc4, loc3
[ 6] create_lexical_environment loc5, loc3, Cell: 0x10de3bdd0 (0x10de27600:[SymbolTable, {}, NonArray, Leaf]), ID: 20(const0), Undefined(const1) // Not used create_lexical_environment byte code
[ 11] mov loc3, loc5
[ 14] op_new_arrow_func_exp loc7, loc3, f0
[ 18] ret loc7
Constants:
k0 = Cell: 0x10de3bdd0 (0x10de27600:[SymbolTable, {}, NonArray, Leaf]), ID: 20
k1 = Undefined
#An0cos:[0x10de8f620->0x10de76e00, NoneFunctionCall, 10]: 10 m_instructions; 80 bytes; 1 parameter(s); 8 callee register(s); 6 variable(s)
[ 0] enter
[ 1] get_scope loc3
[ 3] mov loc4, loc3
[ 6] ret String (atomic) (identifier): test, ID: 4(const1)
[ 8] ret Undefined(const2) // Not used byte code
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160224/62fcff74/attachment.html>
More information about the webkit-unassigned
mailing list