Bug 158893 - It should be easy to add a private global helper function for builtins
Summary: It should be easy to add a private global helper function for builtins
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Keith Miller
URL:
Keywords:
Depends on: 158960
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-17 16:55 PDT by Keith Miller
Modified: 2016-06-21 10:54 PDT (History)
5 users (show)

See Also:


Attachments
Patch (117.74 KB, patch)
2016-06-20 09:50 PDT, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (118.20 KB, patch)
2016-06-20 10:52 PDT, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (120.13 KB, patch)
2016-06-20 11:13 PDT, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (165.61 KB, patch)
2016-06-20 12:52 PDT, Keith Miller
no flags Details | Formatted Diff | Diff
Patch (172.47 KB, patch)
2016-06-20 13:58 PDT, Keith Miller
mark.lam: review+
commit-queue: commit-queue-
Details | Formatted Diff | Diff
Benchmark results (78.46 KB, text/plain)
2016-06-20 14:07 PDT, Keith Miller
no flags Details
Patch for landing (158.40 KB, patch)
2016-06-20 15:10 PDT, Keith Miller
no flags Details | Formatted Diff | Diff
Patch for landing v2 (163.42 KB, patch)
2016-06-21 10:24 PDT, Keith Miller
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Miller 2016-06-17 16:55:51 PDT
It should be easy to add a private global helper function for builtins
Comment 1 Keith Miller 2016-06-20 09:50:11 PDT
Created attachment 281651 [details]
Patch
Comment 2 Keith Miller 2016-06-20 10:52:23 PDT
Created attachment 281654 [details]
Patch
Comment 3 WebKit Commit Bot 2016-06-20 10:54:05 PDT
This patch modifies the JS builtins code generator. Please ensure that you have rebaselined any generator test results (i.e., by running `Tools/Scripts/run-builtins-generator-tests --reset-results`)
Comment 4 WebKit Commit Bot 2016-06-20 10:54:19 PDT
Attachment 281654 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/Scripts/builtins/builtins_generate_combined_header.py:157:  [BuiltinsCombinedHeaderGenerator.generate_section_for_global_private_code_name_macro] Instance of 'BuiltinsCombinedHeaderGenerator' has no 'model' member  [pylint/E1101] [5]
ERROR: Source/JavaScriptCore/Scripts/builtins/builtins_generate_combined_header.py:162:  [BuiltinsCombinedHeaderGenerator.generate_section_for_global_private_code_name_macro] Instance of 'BuiltinsCombinedHeaderGenerator' has no 'model' member  [pylint/E1101] [5]
Total errors found: 2 in 37 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Keith Miller 2016-06-20 11:13:58 PDT
Created attachment 281656 [details]
Patch
Comment 6 Mark Lam 2016-06-20 11:14:36 PDT
Comment on attachment 281654 [details]
Patch

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

> Source/JavaScriptCore/Scripts/builtins/builtins_generate_combined_header.py:3
> +# Copyright (c) 2014, 2015, 2016 Apple Inc. All rights reserved.

You can abbreviate this as 2014-2016.

> Source/JavaScriptCore/Scripts/builtins/builtins_generate_separate_header.py:3
> +# Copyright (c) 2014, 2015, 2016 Apple Inc. All rights reserved.

Ditto.
Comment 7 WebKit Commit Bot 2016-06-20 11:15:44 PDT
Attachment 281656 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/Scripts/builtins/builtins_generate_combined_header.py:157:  [BuiltinsCombinedHeaderGenerator.generate_section_for_global_private_code_name_macro] Instance of 'BuiltinsCombinedHeaderGenerator' has no 'model' member  [pylint/E1101] [5]
ERROR: Source/JavaScriptCore/Scripts/builtins/builtins_generate_combined_header.py:162:  [BuiltinsCombinedHeaderGenerator.generate_section_for_global_private_code_name_macro] Instance of 'BuiltinsCombinedHeaderGenerator' has no 'model' member  [pylint/E1101] [5]
Total errors found: 2 in 38 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 BJ Burg 2016-06-20 11:34:38 PDT
Comment on attachment 281656 [details]
Patch

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

Generator changes look good, except I would have expected some tests to need rebaselining. Did you do run-builtins-generator-tests --reset-results?

> Source/JavaScriptCore/ChangeLog:13
> +        on the glabol object. The name of the property will be the same as

typo: 'global'
Comment 9 Keith Miller 2016-06-20 11:50:51 PDT
(In reply to comment #8)
> Comment on attachment 281656 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=281656&action=review
> 
> Generator changes look good, except I would have expected some tests to need
> rebaselining. Did you do run-builtins-generator-tests --reset-results?

Nope I totally missed that. It looks like they have not been rebaselined in a long time . Since there are changes that don't appear to be part of my patch. I'll include the rebaselined tests in my build fix.
Comment 10 Keith Miller 2016-06-20 11:51:26 PDT
> You can abbreviate this as 2014-2016.

Fixed.

> > Source/JavaScriptCore/Scripts/builtins/builtins_generate_separate_header.py:3
> > +# Copyright (c) 2014, 2015, 2016 Apple Inc. All rights reserved.
> 
> Ditto.

It looks like there shouldn't even be a copyright change in that file. I'll remove.
Comment 11 Keith Miller 2016-06-20 12:52:24 PDT
Created attachment 281666 [details]
Patch
Comment 12 WebKit Commit Bot 2016-06-20 12:53:18 PDT
Attachment 281666 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/Scripts/builtins/builtins_generate_combined_header.py:157:  [BuiltinsCombinedHeaderGenerator.generate_section_for_global_private_code_name_macro] Instance of 'BuiltinsCombinedHeaderGenerator' has no 'model' member  [pylint/E1101] [5]
ERROR: Source/JavaScriptCore/Scripts/builtins/builtins_generate_combined_header.py:162:  [BuiltinsCombinedHeaderGenerator.generate_section_for_global_private_code_name_macro] Instance of 'BuiltinsCombinedHeaderGenerator' has no 'model' member  [pylint/E1101] [5]
Total errors found: 2 in 50 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 13 Keith Miller 2016-06-20 13:58:11 PDT
Created attachment 281674 [details]
Patch
Comment 14 WebKit Commit Bot 2016-06-20 14:00:42 PDT
Attachment 281674 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:8:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
ERROR: Source/JavaScriptCore/Scripts/builtins/builtins_generate_combined_header.py:157:  [BuiltinsCombinedHeaderGenerator.generate_section_for_global_private_code_name_macro] Instance of 'BuiltinsCombinedHeaderGenerator' has no 'model' member  [pylint/E1101] [5]
ERROR: Source/JavaScriptCore/Scripts/builtins/builtins_generate_combined_header.py:162:  [BuiltinsCombinedHeaderGenerator.generate_section_for_global_private_code_name_macro] Instance of 'BuiltinsCombinedHeaderGenerator' has no 'model' member  [pylint/E1101] [5]
Total errors found: 3 in 52 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 15 Keith Miller 2016-06-20 14:07:44 PDT
Created attachment 281676 [details]
Benchmark results
Comment 16 Mark Lam 2016-06-20 14:34:32 PDT
Comment on attachment 281674 [details]
Patch

r=me
Comment 17 WebKit Commit Bot 2016-06-20 14:47:22 PDT
Comment on attachment 281674 [details]
Patch

Rejecting attachment 281674 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'validate-changelog', '--check-oops', '--non-interactive', 281674, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

ChangeLog entry in Source/WebCore/ChangeLog contains OOPS!.

Full output: http://webkit-queues.webkit.org/results/1538359
Comment 18 Keith Miller 2016-06-20 15:10:09 PDT
Created attachment 281680 [details]
Patch for landing
Comment 19 WebKit Commit Bot 2016-06-20 15:38:55 PDT
Comment on attachment 281680 [details]
Patch for landing

Clearing flags on attachment: 281680

Committed r202248: <http://trac.webkit.org/changeset/202248>
Comment 20 WebKit Commit Bot 2016-06-20 15:38:59 PDT
All reviewed patches have been landed.  Closing bug.
Comment 21 WebKit Commit Bot 2016-06-20 17:24:12 PDT
Re-opened since this is blocked by bug 158960
Comment 22 Keith Miller 2016-06-21 10:24:12 PDT
Created attachment 281757 [details]
Patch for landing v2
Comment 23 WebKit Commit Bot 2016-06-21 10:54:44 PDT
Comment on attachment 281757 [details]
Patch for landing v2

Clearing flags on attachment: 281757

Committed r202280: <http://trac.webkit.org/changeset/202280>
Comment 24 WebKit Commit Bot 2016-06-21 10:54:49 PDT
All reviewed patches have been landed.  Closing bug.