Bug 147140 - DestructuringPatternNode and DestructuringAssignmentNode should be ParserArenaFreeable
Summary: DestructuringPatternNode and DestructuringAssignmentNode should be ParserAren...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Saam Barati
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 21:23 PDT by Saam Barati
Modified: 2015-07-21 12:20 PDT (History)
4 users (show)

See Also:


Attachments
patch (3.52 KB, patch)
2015-07-20 22:33 PDT, Saam Barati
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-mavericks (863.28 KB, application/zip)
2015-07-20 23:11 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews107 for mac-mavericks-wk2 (862.27 KB, application/zip)
2015-07-20 23:33 PDT, Build Bot
no flags Details
patch (7.92 KB, patch)
2015-07-21 00:10 PDT, Saam Barati
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Saam Barati 2015-07-20 21:23:18 PDT
And the descendants of DestructuringPatternNode that need destruction should be ParserArenaDeletable.
Comment 1 Saam Barati 2015-07-20 22:33:54 PDT
Created attachment 257161 [details]
patch
Comment 2 Build Bot 2015-07-20 23:11:25 PDT
Comment on attachment 257161 [details]
patch

Attachment 257161 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5043540103004160

Number of test failures exceeded the failure limit.
Comment 3 Build Bot 2015-07-20 23:11:28 PDT
Created attachment 257162 [details]
Archive of layout-test-results from ews102 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 4 Build Bot 2015-07-20 23:33:28 PDT
Comment on attachment 257161 [details]
patch

Attachment 257161 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5108245932802048

Number of test failures exceeded the failure limit.
Comment 5 Build Bot 2015-07-20 23:33:31 PDT
Created attachment 257165 [details]
Archive of layout-test-results from ews107 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 6 Saam Barati 2015-07-21 00:10:25 PDT
Created attachment 257167 [details]
patch

We want to make all Identifiers in the parser references to arena allocated Identifiers.
BindingPatterns were not doing this.
Comment 7 Geoffrey Garen 2015-07-21 11:10:17 PDT
Comment on attachment 257167 [details]
patch

I think BindingNode needs to switch to const Identifier& as well.
Comment 8 Saam Barati 2015-07-21 11:23:43 PDT
Comment on attachment 257167 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=257167&action=review

> Source/JavaScriptCore/parser/Nodes.h:1826
> +        const Identifier& m_boundProperty;

This line is BindingNode switched to "const Identifier&"
Comment 9 Geoffrey Garen 2015-07-21 11:28:43 PDT
Comment on attachment 257167 [details]
patch

Oops!

r=me

We should probably change the Identifier in ObjectPatternNode as well, just to match parsing conventions, even though it won't eliminate the destructor.
Comment 10 WebKit Commit Bot 2015-07-21 12:20:06 PDT
Comment on attachment 257167 [details]
patch

Clearing flags on attachment: 257167

Committed r187111: <http://trac.webkit.org/changeset/187111>
Comment 11 WebKit Commit Bot 2015-07-21 12:20:09 PDT
All reviewed patches have been landed.  Closing bug.