Created attachment 320335[details]
the patch
Updated patch.
I'm pretty sure this will have WebCore build errors. But I'll put it up anyway while I run some benchmarks.
Comment on attachment 320335[details]
the patch
View in context: https://bugs.webkit.org/attachment.cgi?id=320335&action=review> Source/JavaScriptCore/ChangeLog:12
> + This is an enormous speed-up for programs that allocate and throw exceptions.
Awesome
> Source/JavaScriptCore/runtime/Error.cpp:41
> +#include "SuperSampler.h"
Please remove it doesn’t look like it’s used
> Source/JavaScriptCore/runtime/ErrorInstance.cpp:29
> +#include "SuperSampler.h"
Please remove it doesn’t look like it’s used
Created attachment 320337[details]
Archive of layout-test-results from ews100 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 320338[details]
Archive of layout-test-results from ews106 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Created attachment 320339[details]
Archive of layout-test-results from ews125 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
Comment on attachment 320351[details]
possible patch for landing
Attachment 320351[details] did not pass jsc-ews (mac):
Output: http://webkit-queues.webkit.org/results/4498497
New failing tests:
jsc-layout-tests.yaml/js/script-tests/exception-properties.js.layout-ftl-eager-no-cjit
jsc-layout-tests.yaml/js/script-tests/exception-properties.js.layout-ftl-no-cjit
ChakraCore.yaml/ChakraCore/test/StackTrace/ErrorDotStackAlreadyExists.js.default
ChakraCore.yaml/ChakraCore/test/Error/NativeErrors.js.default
jsc-layout-tests.yaml/js/script-tests/exception-properties.js.layout-dfg-eager-no-cjit
jsc-layout-tests.yaml/js/script-tests/exception-properties.js.layout
jsc-layout-tests.yaml/js/script-tests/exception-properties.js.layout-no-llint
jsc-layout-tests.yaml/js/script-tests/exception-properties.js.layout-no-cjit
jsc-layout-tests.yaml/js/script-tests/exception-properties.js.layout-no-ftl
Created attachment 320354[details]
Archive of layout-test-results from ews100 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 320355[details]
Archive of layout-test-results from ews105 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Created attachment 320356[details]
Archive of layout-test-results from ews112 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 320357[details]
possible patch for landing
It took me a while to figure out exactly what to override if you want to handle for-in by materializing.
I think we can ignore the remaining JSC test failure, because it's a ChakraCore test that asserts that the stack property and its friends are in a particular order as observable by for-in. Because these are non-standard properties, I don't think we have to worry about this.
(In reply to Filip Pizlo from comment #23)
> I think we can ignore the remaining JSC test failure, because it's a
> ChakraCore test that asserts that the stack property and its friends are in
> a particular order as observable by for-in. Because these are non-standard
> properties, I don't think we have to worry about this.
(so I'll skip or modify the test.)
Created attachment 320361[details]
Archive of layout-test-results from ews102 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 320362[details]
Archive of layout-test-results from ews105 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Created attachment 320363[details]
Archive of layout-test-results from ews116 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 320364[details]
Archive of layout-test-results from ews122 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
Created attachment 320371[details]
possible patch for landing
Fixed more bugs.
There was code relying on being able to get the line/etc properties using getDirect. That doesn't work if we're lazily materializing them.
Comment on attachment 320371[details]
possible patch for landing
Attachment 320371[details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/4500873
New failing tests:
userscripts/window-onerror-for-isolated-world-2.html
fast/events/window-onerror4.html
inspector/unit-tests/globals-uncaught-exception-from-timer-callback.html
userscripts/window-onerror-for-isolated-world-1.html
js/dom/parse-error-external-script-in-new-Function.html
fast/events/window-onerror-syntax-error-in-attr.html
inspector/debugger/setBreakpoint-options-exception.html
inspector/console/messageAdded-from-named-evaluations.html
Created attachment 320372[details]
Archive of layout-test-results from ews103 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 320371[details]
possible patch for landing
Attachment 320371[details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/4500877
New failing tests:
fast/events/window-onerror4.html
inspector/unit-tests/globals-uncaught-exception-from-timer-callback.html
js/dom/parse-error-external-script-in-new-Function.html
fast/events/window-onerror-syntax-error-in-attr.html
inspector/debugger/setBreakpoint-options-exception.html
inspector/console/messageAdded-from-named-evaluations.html
Created attachment 320373[details]
Archive of layout-test-results from ews105 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Comment on attachment 320371[details]
possible patch for landing
Attachment 320371[details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/4500882
New failing tests:
userscripts/window-onerror-for-isolated-world-2.html
fast/events/window-onerror4.html
inspector/unit-tests/globals-uncaught-exception-from-timer-callback.html
userscripts/window-onerror-for-isolated-world-1.html
js/dom/parse-error-external-script-in-new-Function.html
fast/events/window-onerror-syntax-error-in-attr.html
inspector/debugger/setBreakpoint-options-exception.html
inspector/console/messageAdded-from-named-evaluations.html
Created attachment 320374[details]
Archive of layout-test-results from ews116 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 320375[details]
Archive of layout-test-results from ews125 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
Created attachment 320378[details]
Archive of layout-test-results from ews100 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 320379[details]
Archive of layout-test-results from ews105 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Created attachment 320380[details]
Archive of layout-test-results from ews115 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 320381[details]
Archive of layout-test-results from ews125 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
Created attachment 320396[details]
possible patch for landing
Boy, getting these line/column heuristics right is tough.
Turns out that ScriptCallStackFactory does need to handle the case where column isn't set.
2017-09-08 21:33 PDT, Filip Pizlo
2017-09-08 22:15 PDT, Filip Pizlo
2017-09-08 22:35 PDT, Filip Pizlo
buildbot: commit-queue-
2017-09-08 23:41 PDT, Build Bot
2017-09-08 23:49 PDT, Build Bot
2017-09-09 00:26 PDT, Build Bot
2017-09-09 12:23 PDT, Filip Pizlo
2017-09-09 13:32 PDT, Build Bot
2017-09-09 13:38 PDT, Build Bot
2017-09-09 13:50 PDT, Build Bot
2017-09-09 13:55 PDT, Filip Pizlo
2017-09-09 15:04 PDT, Build Bot
2017-09-09 15:09 PDT, Build Bot
2017-09-09 15:18 PDT, Build Bot
2017-09-09 15:47 PDT, Build Bot
2017-09-09 18:50 PDT, Filip Pizlo
2017-09-09 20:12 PDT, Build Bot
2017-09-09 20:16 PDT, Build Bot
2017-09-09 20:34 PDT, Build Bot
2017-09-09 20:40 PDT, Build Bot
2017-09-09 20:52 PDT, Filip Pizlo
2017-09-09 22:03 PDT, Build Bot
2017-09-09 22:06 PDT, Build Bot
2017-09-09 22:16 PDT, Build Bot
2017-09-09 22:31 PDT, Build Bot
2017-09-10 09:59 PDT, Filip Pizlo
2017-09-10 11:03 PDT, Filip Pizlo