- 14 Jul, 2022 6 commits
-
-
Marja Hölttä authored
In this part: forEach, reduce, reduceRight + missing tests for includes Bug: v8:11111 Change-Id: I3586d56655bd65c054e0933816f5331d5a8d1860 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3758210 Commit-Queue: Marja Hölttä <marja@chromium.org> Reviewed-by: Shu-yu Guo <syg@chromium.org> Cr-Commit-Position: refs/heads/main@{#81712}
-
v8-ci-autoroll-builder authored
Rolling v8/build: https://chromium.googlesource.com/chromium/src/build/+log/78234e5..142c351 R=v8-waterfall-sheriff@grotations.appspotmail.com,mtv-sf-v8-sheriff@grotations.appspotmail.com Change-Id: If6ce5201a8b9ee75f54d6da84e0da61097f2e788 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3761236 Commit-Queue: v8-ci-autoroll-builder <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com> Bot-Commit: v8-ci-autoroll-builder <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#81711}
-
v8-ci-autoroll-builder authored
Rolling v8/third_party/catapult: https://chromium.googlesource.com/catapult/+log/8e95834..e8f62ff Rolling v8/third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools/+log/d22bf60..c8fadda Rolling v8/third_party/fuchsia-sdk/sdk: version:8.20220712.1.1..version:8.20220713.2.1 Rolling v8/tools/luci-go: git_revision:be5d9aacf8987c0826223264f0427cd0b530b6a4..git_revision:a0ba80649473055bae3d789eec28c9967adb5e45 Rolling v8/tools/luci-go: git_revision:be5d9aacf8987c0826223264f0427cd0b530b6a4..git_revision:a0ba80649473055bae3d789eec28c9967adb5e45 R=v8-waterfall-sheriff@grotations.appspotmail.com,mtv-sf-v8-sheriff@grotations.appspotmail.com Change-Id: I96a5f587b802f8db537774fd03a050a841de9fb0 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3761235 Commit-Queue: v8-ci-autoroll-builder <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com> Bot-Commit: v8-ci-autoroll-builder <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#81710}
-
JianxiaoLuIntel authored
See details at https://groups.google.com/g/v8-dev/c/H3YXXKoauLI Change-Id: Ibe255e95bfd1d09a115eb04d6cbfcca7a671d900 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3756729Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Jianxiao Lu <jianxiao.lu@intel.com> Reviewed-by: Omer Katz <omerkatz@chromium.org> Cr-Commit-Position: refs/heads/main@{#81709}
-
Shu-yu Guo authored
Errors in the callback were not correctly unlocking the mutex, oops. Bug: v8:12547 Change-Id: If44ebc023b8192605c9f29bfd4099a197110f5c4 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3760986 Commit-Queue: Shu-yu Guo <syg@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/main@{#81708}
-
Milad Fa authored
PPC Simd regs are already using separate set of register banks on ppc, more details can be found here: https://crrev.com/c/2718472 Here we are making use of this CL https://crrev.com/c/3005768 (fcd3ef48) and fully separating Simd regs during register allocation. Member function `toSimd()` is also introduced which will be used to cast FP regs to Simd regs in liftoff. Change-Id: Ic5551fb04f37de7fc9501a2f1aba8fb44f622d95 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3755213 Commit-Queue: Milad Farazmand <mfarazma@redhat.com> Reviewed-by: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/main@{#81707}
-
- 13 Jul, 2022 31 commits
-
-
Anton Bikineev authored
The current compression scheme defines isomorphism with respect to relational operations (i.e. the relational operators preserve their results on the set of compressed pointers). In addition, provide overloads for nullptr/sentinel. Bug: chromium:1325007 Change-Id: I476a1c59e92f5210e26142320eb03802bd11ea51 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3758143Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Anton Bikineev <bikineev@chromium.org> Cr-Commit-Position: refs/heads/main@{#81706}
-
Anton Bikineev authored
The increase caused a significant PMF regression on Windows. Apparently, leaving the table in reserved state didn't eliminate the regression. The CL returns the age size back to 1MB. The followup is to investiage and fix the regression. Bug: chromium:1336420 Change-Id: I56542ba4efe0fc8d08d8c5febf758384559a8860 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3758146Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Auto-Submit: Anton Bikineev <bikineev@chromium.org> Commit-Queue: Anton Bikineev <bikineev@chromium.org> Cr-Commit-Position: refs/heads/main@{#81705}
-
Michael Achenbach authored
To prevent timeouts on arm64-sim debug and gc-stress builder. Also skip a very slow test on the arm64-sim gc-stress builder. No-Try: true Change-Id: I7d275aa893dbe4942b4d41c6e83d9b9e6f861a33 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3760455Reviewed-by: Adam Klein <adamk@chromium.org> Auto-Submit: Michael Achenbach <machenbach@chromium.org> Commit-Queue: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/main@{#81704}
-
Samuel Groß authored
Bug: v8:10391 Change-Id: I4c5c209454db316fe86f379f6b2e6dfc7ba7754e Cq-Include-Trybots: luci.v8.try:v8_linux64_heap_sandbox_dbg_ng,v8_linux_arm64_sim_heap_sandbox_dbg_ng Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3757340Reviewed-by: Igor Sheludko <ishell@chromium.org> Commit-Queue: Samuel Groß <saelo@chromium.org> Cr-Commit-Position: refs/heads/main@{#81703}
-
Anton Bikineev authored
The operator with raw pointer allows us to avoid Member decompression, which is more expensive than compression. It's also quite frequently called (e.g. in HeapHashSet::find()). The existing operator template <...> bool operator==(const Member<T1>&, const Member<T2>&); was not called for GCed* raw = ...; member == raw; because the compiler wouldn't deduce `T2` in `const Member<T2>` as `GCed` when the initializer expression `raw` is of different type (`GCed*`). Bug: chromium:1325007 Change-Id: Ie1ee12bad28081c66f4e08a146467fd7c040bb70 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3757344Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Anton Bikineev <bikineev@chromium.org> Cr-Commit-Position: refs/heads/main@{#81702}
-
Shu-yu Guo authored
Bug: chromium:1344014 Change-Id: I5009af963d95d96f70785593664a1145ad20c97d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3760975Reviewed-by: Adam Klein <adamk@chromium.org> Auto-Submit: Shu-yu Guo <syg@chromium.org> Commit-Queue: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/main@{#81701}
-
Jakob Kummerow authored
When the control-flow aware type of a Node doesn't actually change, then we shouldn't claim that it did (which causes later re-visiting of the node). Fixed: v8:13061 Change-Id: I064cedf3721a79844bfc36ad3142428bdfbaf891 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3760675 Commit-Queue: Jakob Kummerow <jkummerow@chromium.org> Reviewed-by: Nico Hartmann <nicohartmann@chromium.org> Commit-Queue: Nico Hartmann <nicohartmann@chromium.org> Auto-Submit: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/main@{#81700}
-
Jacob Abraham authored
Implements an initial prototype of the Wasm Trace proposal. A custom section containing offsets to functions is decoded into trace instructions that are inserted into the function. In Liftoff, these are directly inserted. In TurboFan, these are added as StackEffect's, this is a work in progress. Traces will only be decoded and added when a flag is given to V8, currently "--experimental-wasm-instruction-tracing". If a trace is ever not valid or an error occurs, it is safe to just throw them away. Code Metadata Tool Convention: https://github.com/WebAssembly/tool-conventions/blob/main/CodeMetadata.md Design Doc: https://docs.google.com/document/d/1739a_LXbavBnek7pa0uqhHOCz8IJ56mn2C2Yvbssvkg/edit?usp=sharing Wasm Trace Proposal: https://github.com/WebAssembly/instrument-tracing Bug: chromium:1090122, chromium:1252113 Change-Id: Id4690d8deca482ff0e863761668ffabca159bd29 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3386604 Commit-Queue: Clemens Backes <clemensb@chromium.org> Reviewed-by: Tobias Tebbi <tebbi@chromium.org> Reviewed-by: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/main@{#81699}
-
Sergey Ulanov authored
V8 was compiled for Fuchsia with optimize_speed instead of optimize_max used on most other platfroms. There is no reason Fuchsia needs to be different, so it's better to use optimize_max. It also allows to save about 1MB on the binary size. Bug: chromium:1343990 Change-Id: Ie4a07fbbfd8100def61bf7709d2c4e6cb74209f4 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3759647 Commit-Queue: Sergey Ulanov <sergeyu@chromium.org> Reviewed-by: Michael Achenbach <machenbach@chromium.org> Reviewed-by: Anton Bikineev <bikineev@chromium.org> Auto-Submit: Sergey Ulanov <sergeyu@chromium.org> Cr-Commit-Position: refs/heads/main@{#81698}
-
Marja Hölttä authored
Bug: v8:11111 Change-Id: Ic07628bcf6018ea9814a38a0dab3667a7d8f0d69 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3755145 Commit-Queue: Marja Hölttä <marja@chromium.org> Reviewed-by: Shu-yu Guo <syg@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/main@{#81697}
-
Shu-yu Guo authored
Bug: v8:13039 Change-Id: I80c9e0ab84437f8e932c13b3cb134b9bdb74c1a7 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3759563Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Shu-yu Guo <syg@chromium.org> Cr-Commit-Position: refs/heads/main@{#81696}
-
Victor Gomes authored
Bug: v8:7700 Change-Id: I07e63a33e1ef1ab8e423bf46be1d83b8724d924d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3760449 Commit-Queue: Leszek Swirski <leszeks@chromium.org> Auto-Submit: Victor Gomes <victorgomes@chromium.org> Reviewed-by: Leszek Swirski <leszeks@chromium.org> Cr-Commit-Position: refs/heads/main@{#81695}
-
Andy Wingo authored
Feature complete! Bug: v8:12868 Change-Id: I7727071bdd062a6dae26206a65080f675ef7ee93 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3758226Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Andy Wingo <wingo@igalia.com> Cr-Commit-Position: refs/heads/main@{#81694}
-
Andy Wingo authored
Bug: v8:12868 Change-Id: I2e4a1733876a817dca36e0134ba4b7549f0cf4b8 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3757886 Commit-Queue: Andy Wingo <wingo@igalia.com> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/main@{#81693}
-
Andy Wingo authored
Bug: v8:12868 Change-Id: Ice7134d0ad5efddb85420543ea785253791d0258 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3757885Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Andy Wingo <wingo@igalia.com> Cr-Commit-Position: refs/heads/main@{#81692}
-
Clemens Backes authored
The exact method name is not interesting when looking at crash statistics, and can easily be retrieved from stack traces. Instead, print a consice string saying what we were trying to do when we ran OOM. This is more consistent with other OOM location strings. R=ahaas@chromium.org Change-Id: Ic8cf70b40c304711e8b96391418019b3f697e977 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3760446Reviewed-by: Andreas Haas <ahaas@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/main@{#81691}
-
Samuel Groß authored
It is not safe to allocate ExternalPointerTable entries while the table is being swept. This property is currently ensured by the GC. To better catch any potential future violation of this requirement, this CL now changes the Sweep() method to first set the freelist head to a special marker value, which is checked in Allocate() in debug builds and will cause a recognizable crash in release builds. Bug: v8:10391 Change-Id: Iab69c1e97afc23ae5b2b894b2d765b82a760cdd8 Cq-Include-Trybots: luci.v8.try:v8_linux64_heap_sandbox_dbg_ng,v8_linux_arm64_sim_heap_sandbox_dbg_ng Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3758211Reviewed-by: Igor Sheludko <ishell@chromium.org> Commit-Queue: Samuel Groß <saelo@chromium.org> Cr-Commit-Position: refs/heads/main@{#81690}
-
Leszek Swirski authored
Avoid loading objects with 64-bit movq when they are only being used to compare against another object with a 32-bit cmp_tagged under pointer compression. Change-Id: Ib8ccd093fb49caea3bf1b923b83825626ba0bffc Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3760447Reviewed-by: Igor Sheludko <ishell@chromium.org> Commit-Queue: Leszek Swirski <leszeks@chromium.org> Auto-Submit: Leszek Swirski <leszeks@chromium.org> Cr-Commit-Position: refs/heads/main@{#81689}
-
Junliang Yan authored
Change-Id: I8f0235877f9f31a5f81467a9f0ccfbc7491faa14 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3757888Reviewed-by: Milad Farazmand <mfarazma@redhat.com> Commit-Queue: Junliang Yan <junyan@redhat.com> Cr-Commit-Position: refs/heads/main@{#81688}
-
Leszek Swirski authored
Also changes CreateObjectLiteral to take the boilerplate as a constant value, not a node. Bug: v8:7700 Change-Id: I6852c7c4b8d361f903155c513e627ebc1af4d2f6 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3758223 Commit-Queue: Leszek Swirski <leszeks@chromium.org> Reviewed-by: Victor Gomes <victorgomes@chromium.org> Cr-Commit-Position: refs/heads/main@{#81687}
-
Samuel Groß authored
TSAN may cause the sandbox to fail to obtain enough virtual address space during initialization, thereby causing it to fall back to a smaller backing reservation. This may then in turn cause future WebAssembly.Memory allocations to fail. Bug: v8:12980 Change-Id: I812ee02c5421153f1ea3b6bc371c72bc1da406a8 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3757897 Commit-Queue: Samuel Groß <saelo@chromium.org> Auto-Submit: Samuel Groß <saelo@chromium.org> Reviewed-by: Igor Sheludko <ishell@chromium.org> Commit-Queue: Igor Sheludko <ishell@chromium.org> Cr-Commit-Position: refs/heads/main@{#81686}
-
Clemens Backes authored
This is a reland of commit 1ed7d0b8. Fixes: - https://crrev.com/c/3745533 - https://crrev.com/c/3758064 - https://crrev.com/c/3757709 Original change's description: > [flags] Enable freezing of flags > > This enables the --freeze-flags-after-init flag globally. Note that > tests, fuzzers, Node and other still explicitly disable the flag. The > chrome renderer process and default d8 execution will have it enabled > though. > > R=cbruni@chromium.org > > Bug: v8:12887 > Change-Id: I9a15ef64227e5e6e04779d8d671a2c50d99c9097 > Cq-Include-Trybots: luci.v8.try:v8_linux_blink_rel > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3695264 > Reviewed-by: Camillo Bruni <cbruni@chromium.org> > Commit-Queue: Clemens Backes <clemensb@chromium.org> > Cr-Commit-Position: refs/heads/main@{#81214} Bug: v8:12887 Change-Id: Ibacb7b738a91f9a893a35a7b845ce4a6ff7bae3f Cq-Include-Trybots: luci.v8.try:v8_linux_blink_rel Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3758224 Commit-Queue: Clemens Backes <clemensb@chromium.org> Reviewed-by: Camillo Bruni <cbruni@chromium.org> Cr-Commit-Position: refs/heads/main@{#81685}
-
Leszek Swirski authored
Just the generic path for now, the most valuable optimisation here would be transitioning stores but we don't yet support these. Bug: v8:7700 Change-Id: I95e3a77cccf43bc33607a50bab1eb89fca32af06 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3758144 Auto-Submit: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Victor Gomes <victorgomes@chromium.org> Reviewed-by: Victor Gomes <victorgomes@chromium.org> Cr-Commit-Position: refs/heads/main@{#81684}
-
Leszek Swirski authored
Bug: v8:7700 Change-Id: Iacdb0ecd04d7b50d7dd623feb8646c89cc4016ff Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3757884Reviewed-by: Toon Verwaest <verwaest@chromium.org> Commit-Queue: Toon Verwaest <verwaest@chromium.org> Auto-Submit: Leszek Swirski <leszeks@chromium.org> Cr-Commit-Position: refs/heads/main@{#81683}
-
Victor Gomes authored
Bug: v8:7700 Change-Id: I49c13eb2f251b8d547826928da479fa1186a11fd Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3757894 Auto-Submit: Victor Gomes <victorgomes@chromium.org> Commit-Queue: Victor Gomes <victorgomes@chromium.org> Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Leszek Swirski <leszeks@chromium.org> Cr-Commit-Position: refs/heads/main@{#81682}
-
Leszek Swirski authored
We don't even need any new IR nodes for it. Bug: v8:7700 Change-Id: I8c2844f9bc6d21b09799395f817831685be21df7 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3757883Reviewed-by: Toon Verwaest <verwaest@chromium.org> Auto-Submit: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Toon Verwaest <verwaest@chromium.org> Cr-Commit-Position: refs/heads/main@{#81681}
-
Camillo authored
This is a reland of commit c4301c04: - Fix thin string in string-compare.js with low gc interval Original change: - Rename TryBuildCompareOperationBranch to TryBuildCompareOperation - Add CheckedInternalizedString conversion Node that checks for string inputs and extracts internalised Strings from ThinStrings - Add BranchIfReferenceCompare Node - Add runtime functions to create internalised and thin Strings - Add deopt check to test/mjsunit/maglev/int32-branch.js Bug: v8:7700 Change-Id: I9221253f6bbeef12297419495c6eaf5096e06278 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3755152Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Camillo Bruni <cbruni@chromium.org> Cr-Commit-Position: refs/heads/main@{#81680}
-
Marja Hölttä authored
In this part: join, toLocaleString Bug: v8:11111 Change-Id: I66ba85c33aae61a86e162352adb2d4bcf0dbac12 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3757333Reviewed-by: Shu-yu Guo <syg@chromium.org> Auto-Submit: Marja Hölttä <marja@chromium.org> Commit-Queue: Marja Hölttä <marja@chromium.org> Cr-Commit-Position: refs/heads/main@{#81679}
-
Marja Hölttä authored
In this part: Array.from Bug: v8:11111 Change-Id: I266126e5b6bf217b49bb87b3a744443f5a5c1b2f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3755137Reviewed-by: Shu-yu Guo <syg@chromium.org> Commit-Queue: Marja Hölttä <marja@chromium.org> Auto-Submit: Marja Hölttä <marja@chromium.org> Cr-Commit-Position: refs/heads/main@{#81678}
-
v8-ci-autoroll-builder authored
Rolling v8/build: https://chromium.googlesource.com/chromium/src/build/+log/ad70f68..78234e5 R=v8-waterfall-sheriff@grotations.appspotmail.com,mtv-sf-v8-sheriff@grotations.appspotmail.com Change-Id: Ib3a6f9fcaa6cd837c18356186bad1d8ea5e9da43 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3758705 Bot-Commit: v8-ci-autoroll-builder <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com> Commit-Queue: v8-ci-autoroll-builder <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#81677}
-
v8-ci-autoroll-builder authored
Rolling v8/third_party/catapult: https://chromium.googlesource.com/catapult/+log/1dee059..8e95834 Rolling v8/third_party/fuchsia-sdk/sdk: version:8.20220711.1.1..version:8.20220712.1.1 R=v8-waterfall-sheriff@grotations.appspotmail.com,mtv-sf-v8-sheriff@grotations.appspotmail.com Change-Id: If36aaf2dbd8456a21ec40fe901deef46090e5c74 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3760003 Commit-Queue: v8-ci-autoroll-builder <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com> Bot-Commit: v8-ci-autoroll-builder <v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#81676}
-
- 12 Jul, 2022 3 commits
-
-
Shu-yu Guo authored
Bug: v8:13066, v8:11111 Cq-Include-Trybots: luci.v8.try:v8_win_rel_ng,v8_win_dbg_ng Change-Id: I8066e04d713ba357e816ebaef04ef45518723d35 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3759235 Commit-Queue: Shu-yu Guo <syg@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/main@{#81675}
-
Adam Klein authored
Bug: v8:13066 Change-Id: I01fe9b665a47a8780c820c32c74513b2361ece34 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3759229 Auto-Submit: Adam Klein <adamk@chromium.org> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#81674}
-
Jose Dapena Paz authored
If a tracing session starts after a script load has happened, then it is not emitted, so the source information is not visible in ETW. This is because we keep track of the loads already emitted, and we try to launch traces even when recording is not happening. To prevent this problem, this CS keeps track of when recording is happening. So, when it starts, it will emit all the already generated code immediately. This will add some overhead on tracing session start if system instrumentation is enabled, but this is better than not having instrumentation for previous symbols. There is still one problem: for each active isolate, it calls for replaying the event recording in an asynchronous task. So, for any JS task that is already running when tracing start, symbols will not be available. This makes this change less useful as, for a batch task or any long JS code that is already running when tracing start, we will not get symbols yet. Only after the foreground task runner runs the task to emit the ETW events we will get the symbols resolved in the trace. An specific approach was required for d8 interactive shell. As, when showing prompt, it is not processing the task runner queue, and it is only processed when the next script is launched, it first checks if it needs to generate ETW symbols information before running the script. Bug: v8:12932 Change-Id: I8b056c69cee0350f921a01c87beb9f2d51e10583 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3705541Reviewed-by: Camillo Bruni <cbruni@chromium.org> Reviewed-by: Toon Verwaest <verwaest@chromium.org> Commit-Queue: José Dapena Paz <jdapena@igalia.com> Cr-Commit-Position: refs/heads/main@{#81673}
-