Re: [v8-dev] Distcc

2024-09-24 Thread Erik Corry
compile times from 1-2 hours to 10-15 minutes > from clean. > > Let me know if you need some help with this. > > Kind regards, > > Graeme > > On 19 Sep 2024, at 18:02, Erik Corry wrote: > > Hi > > The compile times are killing me. > > Does anyone have g

[v8-dev] Distcc

2024-09-19 Thread Erik Corry
edit a .h file. -- Erik Corry -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it,

[v8-dev] Workflow for working on a gerrit cl from more than one machine

2024-08-20 Thread Erik Corry
Hi Do people work on the same gerrit cl from multiple machines? I tried git cl checkout but it doesn't work. eg. for https://chromium-review.googlesource.com/c/v8/v8/+/5797602 $ cat ../.gclient solutions = [ { "name": "v8", "url": "https://chromium.googlesource.com/v8/v8.git";, "d

Re: [v8-dev] Re: An update on bit_cast

2015-12-09 Thread 'Erik Corry' via v8-dev
Yes. We plan to put in asserts to prevent it being used for pointer types. On 4 December 2015 at 15:30, Jochen Eisinger wrote: > thanks for the heads-up. > > Did you keep the bit_casts in fletch for non-pointer types? > > On Thu, Dec 3, 2015 at 2:34 PM 'Erik Corry&#x

[v8-dev] Re: An update on bit_cast

2015-12-03 Thread 'Erik Corry' via v8-dev
Slava points out that I am writing about use of bit_cast for pointer types (eg casting an Object** to a Class**), but ignoring the other use of bit_cast (eg casting a float to a uint32_t). It's only the pointer types that are problematic, I think. On 3 December 2015 at 13:37, Erik Corry

[v8-dev] An update on bit_cast

2015-12-03 Thread 'Erik Corry' via v8-dev
e regression on Linux, but not on Mac and Windows where I think it already is the default. -- Erik Corry Google Denmark ApS Frederiksborggade 20B, 1 sal 1360 København K Denmark CVR nr. 28 86 69 84 -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You

[v8-dev] MIPS regexp code

2015-06-10 Thread 'Erik Corry' via v8-dev
ts is LoadCurrentCharacterUnchecked, which generates: addiu t7, t2, cp_offset addut5, t6, t7 lbu t3, 0(t5) This should just be addu t5, t6, t2 lbu t3, cp_offset(t5) Probably fixing this won't be enough to let MIPS pass the test though. There's other stuff going on there that I haven't

[v8-dev] Reland II of 'Optimize trivial regexp disjunctions' CL 1176453002 (issue 1180433003 by erikco...@chromium.org)

2015-06-10 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: Yang, Description: Reland II of 'Optimize trivial regexp disjunctions' CL 1176453002 R=yang...@chromium.org BUG= Please review this at https://codereview.chromium.org/1180433003/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+251, -8 lines): M src/a

[v8-dev] Reland of 'Optimize trivial regexp disjunctions' CL 1176453002 (issue 1174713002 by erikco...@chromium.org)

2015-06-09 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: Yang, Description: Reland of 'Optimize trivial regexp disjunctions' CL 1176453002 Original code review: https://codereview.chromium.org/1176453002/ TBR=yang...@chromium.org BUG=chromium:482998 LOG=n Please review this at https://codereview.chromium.org/1174713002/ Base URL: https:/

[v8-dev] Optimize trivial regexp disjunctions (issue 1176453002 by erikco...@chromium.org)

2015-06-09 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: Yang, Description: Optimize trivial regexp disjunctions R=yang...@chromium.org BUG=chromium:482998 LOG=n Please review this at https://codereview.chromium.org/1176453002/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+235, -4 lines): M src/ast.h M

[v8-dev] Re: MIPS64: Improve long branches utilizing code range. (issue 1147503002 by dusan.milosavlje...@imgtec.com)

2015-06-05 Thread erik . corry
LGTM https://codereview.chromium.org/1147503002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from i

[v8-dev] Re: MIPS64: Improve long branches utilizing code range. (issue 1147503002 by dusan.milosavlje...@imgtec.com)

2015-06-04 Thread erik . corry
https://codereview.chromium.org/1147503002/diff/11/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/1147503002/diff/11/src/heap/spaces.cc#newcode659 src/heap/spaces.cc:659: commit_size > CodePageAreaSize()) { The commit_size includes the CodePageGuardSt

[v8-dev] Re: Cosmetic changes to tests to make it easier to concatenate them. (issue 1163803002 by erikco...@chromium.org)

2015-06-01 Thread erik . corry
On 2015/06/01 15:52:40, ulan wrote: wow, lgtm. After you removed the wrapping of tests and undefs, does this CL still help with concatenation? For now I will just not concatenate the affected files. It's quite hard to automate namespace stuff. One unexpected thing I found was that this

[v8-dev] Re: Cosmetic changes to tests to make it easier to concatenate them. (issue 1163803002 by erikco...@chromium.org)

2015-06-01 Thread erik . corry
https://codereview.chromium.org/1163803002/diff/1/src/background-parsing-task.cc File src/background-parsing-task.cc (right): https://codereview.chromium.org/1163803002/diff/1/src/background-parsing-task.cc#newcode75 src/background-parsing-task.cc:75: } // namespace v8 On 2015/06/01 13:08:24, u

[v8-dev] Tiny fix to grokdump heap stats printer (issue 1164693002 by erikco...@chromium.org)

2015-06-01 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: Hannes Payer, Description: Tiny fix to grokdump heap stats printer R=hpa...@chromium.org BUG= Please review this at https://codereview.chromium.org/1164693002/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+1, -1 lines): M tools/grokdump.py Index:

[v8-dev] Re: MIPS64: Improve long branches utilizing code range. (issue 1147503002 by dusan.milosavlje...@imgtec.com)

2015-06-01 Thread erik . corry
One solution would be to get large objects from the reserved code area, but continue to get normal code pages from unreserved memory. Then you are not imposing a 256Mbyte code limit on the platform, but only a 256Mbyte limit on large code objects (> 1Mbyte). https://codereview.chromium.org/11475

[v8-dev] Cosmetic changes to tests to make it easier to concatenate them. (issue 1163803002 by erikco...@chromium.org)

2015-06-01 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: ulan, Description: Cosmetic changes to tests to make it easier to concatenate them. When compiling on a laptop I like to concatenate the small test files. This makes a big difference to compile times. These changes make that easier. R=u...@chromium.org BUG= Please review this at htt

[v8-dev] Remove spurious prints from GC logging (issue 1149413003 by erikco...@chromium.org)

2015-05-30 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: Hannes Payer, szager1, Description: Remove spurious prints from GC logging R=hpa...@chromium.org, sza...@chromium.org BUG= Please review this at https://codereview.chromium.org/1149413003/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+1, -1 lines):

[v8-dev] Re: MIPS64: Improve long branches utilizing code range. (issue 1147503002 by dusan.milosavlje...@imgtec.com)

2015-05-29 Thread erik . corry
Only large objects can span a 256Mbyte boundary, so an alternative implementation would fix large-object allocation to reject allocations that span such a boundary. In this scenario you would not need to reserve code space up front and there would be n 256Mbyte limit on code size? https://co

[v8-dev] Even without --trace-gc dump the last few GC messages on OOM (issue 1159513003 by erikco...@chromium.org)

2015-05-29 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: Hannes Payer, Description: Even without --trace-gc dump the last few GC messages on OOM If we crash V8 due to out-of-memory then we print the last 3 GCs on stdout as we crash. Also records the last 3 GCs on the stack so that it will be part of the minidump. R=hpa...@chromium.org BUG=

[v8-dev] grokdump.py - some support for on-stack HeapStats (issue 1142343009 by erikco...@chromium.org)

2015-05-28 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: ulan, Description: grokdump.py - some support for on-stack HeapStats R=u...@chromium.org BUG= Please review this at https://codereview.chromium.org/1142343009/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+22, -4 lines): M tools/grokdump.py Index

[v8-dev] Re: Version 4.3.61.27 (cherry-pick) (issue 1163563002 by erikco...@chromium.org)

2015-05-28 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Committed patchset #1 (id:1) manually as 85e92361bb42b9076ebdcb1c005fce9242bc5fe6. https://codereview.chromium.org/1163563002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v

[v8-dev] Version 4.3.61.27 (cherry-pick) (issue 1163563002 by erikco...@chromium.org)

2015-05-28 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: Hannes Payer, Description: Version 4.3.61.27 (cherry-pick) Merged 49fdc5323 Be sure to abort incremental GC when trying to reserve space R=hpa...@chromium.org BUG= Please review this at https://codereview.chromium.org/1163563002/ Base URL: https://chromium.googlesource.com/v8/v8.g

[v8-dev] Re: Version 4.3.61.26 (cherry-pick) (issue 1157393002 by erikco...@chromium.org)

2015-05-28 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Committed patchset #1 (id:1) manually as 17db4ce193547f334c6cc63e27e1f9a0b434fcb7. https://codereview.chromium.org/1157393002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v

[v8-dev] Version 4.3.61.26 (cherry-pick) (issue 1157393002 by erikco...@chromium.org)

2015-05-28 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: Yang, Description: Version 4.3.61.26 (cherry-pick) Merged 5a93a3304 Reland: Fix JSON parser Handle leak (previous CL 1041483004) BUG=472504,v8:3976 LOG=N R=yang...@chromium.org Please review this at https://codereview.chromium.org/1157393002/ Base URL: https://chromium.googlesourc

[v8-dev] Version 4.3.61.26 (cherry-pick) (issue 1159063003 by erikco...@chromium.org)

2015-05-28 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: Yang, Description: Version 4.3.61.26 (cherry-pick) Merged 5a93a3304 Reland: Fix JSON parser Handle leak (previous CL 1041483004) BUG=472504,v8:3976 LOG=N R=yang...@chromium.org Please review this at https://codereview.chromium.org/1159063003/ Base URL: https://chromium.googlesourc

[v8-dev] grokdump.py: work around int size limits on xrange (issue 1158933007 by erikco...@chromium.org)

2015-05-28 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: Hannes Payer, Description: grokdump.py: work around int size limits on xrange R=hpa...@chromium.org BUG= Please review this at https://codereview.chromium.org/1158933007/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+23, -15 lines): M tools/grokdum

[v8-dev] Random hashes with a more cache-friendly distribution (issue 1158083002 by erikco...@chromium.org)

2015-05-26 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: adamk, Toon Verwaest, Description: Random hashes with a more cache-friendly distribution R=ad...@chromium.org, verwa...@chromium.org BUG= Please review this at https://codereview.chromium.org/1158083002/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+

[v8-dev] Speed up object-keyed Map and Set by giving out sequential hash codes (issue 1157073002 by erikco...@chromium.org)

2015-05-26 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: adamk, Toon Verwaest, Description: Speed up object-keyed Map and Set by giving out sequential hash codes R=ad...@chromium.org, verwa...@chromium.org BUG= Please review this at https://codereview.chromium.org/1157073002/ Base URL: https://chromium.googlesource.com/v8/v8.git@master A

[v8-dev] Re: Move hash code from hidden string to a private symbol (issue 1149863005 by erikco...@chromium.org)

2015-05-26 Thread erik . corry
https://codereview.chromium.org/1149863005/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, sen

[v8-dev] Re: Hook up more import/exports in natives. (issue 1154483002 by yang...@chromium.org)

2015-05-22 Thread erik . corry
This changes global variables into variables in functions. I know we have some optimization for functions in globals that don't change. Do we lose some optimizations by making them into outer-scope variables? https://codereview.chromium.org/1154483002/ -- -- v8-dev mailing list v8-dev@google

[v8-dev] Re: Move hash code from hidden string to a private symbol (issue 1149863005 by erikco...@chromium.org)

2015-05-21 Thread erik . corry
object-observe.js (right): https://codereview.chromium.org/1149863005/diff/40001/src/object-observe.js#newcode210 src/object-observe.js:210: return %WeakCollectionGet(GetObservationStateJS().objectInfoMap, object, $gethash(object)); On 2015/05/21 20:19:02, Erik Corry wrote: On 2015/05/21 19:11:32, adamk wrote: >

[v8-dev] Re: Move hash code from hidden string to a private symbol (issue 1149863005 by erikco...@chromium.org)

2015-05-21 Thread erik . corry
https://codereview.chromium.org/1149863005/diff/40001/src/collection.js File src/collection.js (left): https://codereview.chromium.org/1149863005/diff/40001/src/collection.js#oldcode26 src/collection.js:26: for (var entry = HashToEntry(table, hash, numBuckets); On 2015/05/21 19:11:32, adamk wrot

[v8-dev] Move hash code from hidden string to a private symbol (issue 1149863005 by erikco...@chromium.org)

2015-05-21 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: adamk, toon_chromium.org, Description: Move hash code from hidden string to a private symbol R=ad...@chromium.org, t...@chromium.org BUG= Please review this at https://codereview.chromium.org/1149863005/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+

[v8-dev] Regularize namespace closing curlies (issue 1143133002 by erikco...@chromium.org)

2015-05-20 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: Toon Verwaest, Description: Regularize namespace closing curlies R=verwa...@chromium.org BUG= Please review this at https://codereview.chromium.org/1143133002/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+67, -67 lines): M src/compiler/ast-loop-as

[v8-dev] Re: Remove 64-bit unclean line from heap size estimation (issue 1133243006 by erikco...@chromium.org)

2015-05-19 Thread erik . corry
On 2015/05/15 16:13:34, Jakob wrote: I don't remember the specifics; this is the CL that introduced that line: https://codereview.chromium.org/70233010 This just happens to be the boundary between intptr_t and int64_t worlds. On 32-bit platforms, we need to guard against overflow there. Why d

[v8-dev] Adjust benchmark framework to avoid spending 50% of time on 'new Date' (issue 1133843007 by erikco...@chromium.org)

2015-05-19 Thread 'Erik Corry Chromium.org' via codereview.chromium.org
Reviewers: Dmitry Lomov (chromium), Description: Adjust benchmark framework to avoid spending 50% of time on 'new Date' R=dslo...@chromium.org BUG= Please review this at https://codereview.chromium.org/1133843007/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+6

[v8-dev] Re: Shrink active semi-space and uncommit other semi-space only in idle memory mode. (issue 1140693003 by hpa...@chromium.org)

2015-05-15 Thread erik . corry
lgtm https://codereview.chromium.org/1140693003/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Make sure that idle scavenges are just performed when enough objects are allocated in new space. (issue 1138643003 by hpa...@chromium.org)

2015-05-15 Thread erik . corry
https://codereview.chromium.org/1138643003/diff/1/src/heap/gc-idle-time-handler.cc File src/heap/gc-idle-time-handler.cc (right): https://codereview.chromium.org/1138643003/diff/1/src/heap/gc-idle-time-handler.cc#newcode141 src/heap/gc-idle-time-handler.cc:141: // The allocated new space limit t

[v8-dev] Re: Make sure that idle scavenges are just performed when enough objects are allocated in new space. (issue 1138643003 by hpa...@chromium.org)

2015-05-15 Thread erik . corry
lgtm https://codereview.chromium.org/1138643003/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Use a private own symbol instead of a hidden property for hash codes (issue 1142493002 by erikco...@chromium.org)

2015-05-14 Thread erik . corry
https://codereview.chromium.org/1142493002/diff/1/src/collection.js File src/collection.js (right): https://codereview.chromium.org/1142493002/diff/1/src/collection.js#newcode85 src/collection.js:85: if (IS_SPEC_OBJECT(key)) { On 2015/05/14 15:01:27, adamk wrote: You might need a TODO here for

[v8-dev] Re: Use a private own symbol instead of a hidden property for hash codes (issue 1142493002 by erikco...@chromium.org)

2015-05-14 Thread erik . corry
Surely it always caused a map transition. How else can you add the hidden property? The change was to make an already existing test pass, but I can add another. https://codereview.chromium.org/1142493002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --

[v8-dev] Re: Use a private own symbol instead of a hidden property for hash codes (issue 1142493002 by erikco...@chromium.org)

2015-05-14 Thread erik . corry
On my microbenchmark this doubles the speed of common operations on ES6 Map. I think it's a simplification too. Before (times in ms): Read 514 Update 1083 Set/delete 2075 After: Read 231 Update 484 Set/delete 1619 The microbenchmark: function MyKey() { this.x = "foo"; } function setu

[v8-dev] Re: Never uncommit the whole marking deque in case we can't get it back (issue 1133153003 by erikco...@chromium.org)

2015-05-11 Thread erik . corry
Previous version at https://codereview.chromium.org/1134743002/ would: * Reserve and commit 256k at start. * Try to increase reservation and commit to up to 4MBytes when GCing. * Uncommit and unreserve everything after GC <-- this was dumb New tactic. * Reserve 4Mbytes from start and never chan

[v8-dev] Re: If marking deque allocation fails, try to make do with a smaller one (issue 1134743002 by erikco...@chromium.org)

2015-05-11 Thread erik . corry
New attempt at https://codereview.chromium.org/1133153003 https://codereview.chromium.org/1134743002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubsc

[v8-dev] Re: Only record one in n line endings to save space. (issue 1137683003 by erikco...@chromium.org)

2015-05-11 Thread erik . corry
Moving everything to C++ would be one option, but not something I am planning to work on. https://codereview.chromium.org/1137683003/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google

[v8-dev] Re: Postpone counters triggered during GC, and use a HandleScope when calling back. (issue 1125383007 by erikco...@chromium.org)

2015-05-11 Thread erik . corry
I promise that nothing in Blink will depend on the new value. V8 already has some values here (3, 4, 5 and 6) that Blink knows nothing about, and that works now. It used to be the case that Blink was anal about it, but not recently. https://codereview.chromium.org/1125383007/diff/1/src/hea

[v8-dev] Re: If marking deque allocation fails, try to make do with a smaller one (issue 1134743002 by erikco...@chromium.org)

2015-05-10 Thread erik . corry
Unfortunately the crashes are still there and I can see why. This patch does not go far enough. Although we reserve some space already at startup we unreserve it after each GC (in UncommitMarkingDeque) and then it can potentially fail at the next GC. https://codereview.chromium.org/1134743

[v8-dev] Re: Add mode to reduce memory usage in idle notification. (issue 1105293004 by u...@chromium.org)

2015-05-10 Thread erik . corry
This is in Canary 2396 It is referenced from https://code.google.com/p/chromium/issues/detail?id=486005 https://codereview.chromium.org/1105293004/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed

[v8-dev] Re: If marking deque allocation fails, try to make do with a smaller one (issue 1134743002 by erikco...@chromium.org)

2015-05-10 Thread erik . corry
This is part of canary 2397 https://codereview.chromium.org/1134743002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop

[v8-dev] Re: Be sure to abort incremental GC when trying to reserve space (issue 1124553007 by erikco...@chromium.org)

2015-05-10 Thread erik . corry
This is part of canary 2395 https://codereview.chromium.org/1124553007/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop

[v8-dev] Re: If marking deque allocation fails, try to make do with a smaller one (issue 1131893002 by erik.co...@gmail.com)

2015-05-08 Thread erik . corry
Argh! Wrong user. Moved to https://codereview.chromium.org/1134743002 https://codereview.chromium.org/1131893002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" grou

[v8-dev] Re: Add mode to reduce memory usage in idle notification. (issue 1105293004 by u...@chromium.org)

2015-05-07 Thread erik . corry
lgtm https://codereview.chromium.org/1105293004/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Add another test for accessing IdentityMap with SMI keys when it is _not_ empty. (issue 1127113002 by tit...@chromium.org)

2015-05-07 Thread erik . corry
Shouldn't you also fix the assert so it is before checking for emptiness? https://codereview.chromium.org/1127113002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" gr

[v8-dev] Re: Add mode to reduce memory usage in idle notification. (issue 1105293004 by u...@chromium.org)

2015-05-06 Thread erik . corry
can_start_incremental_marking is false. On 2015/05/06 09:47:19, ulan wrote: On 2015/05/05 21:38:52, Erik Corry wrote: > This contradiction indicates to me that can_start_incremental_marking is > misnamed. Is should_start_incremental_marking better? I can rename it in a separate CL. Yes, we can do i

[v8-dev] Re: Implement IdentityMap, a robust, GC-safe object-identity HashMap. (issue 1105693002 by tit...@chromium.org)

2015-05-06 Thread erik . corry
LGTM, if you have considered the things in comment 25 and a few missed comments futher up. https://codereview.chromium.org/1105693002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google

[v8-dev] Re: Add mode to reduce memory usage in idle notification. (issue 1105293004 by u...@chromium.org)

2015-05-05 Thread erik . corry
https://codereview.chromium.org/1105293004/diff/11/src/heap/gc-idle-time-handler.cc File src/heap/gc-idle-time-handler.cc (right): https://codereview.chromium.org/1105293004/diff/11/src/heap/gc-idle-time-handler.cc#newcode198 src/heap/gc-idle-time-handler.cc:198: // In kReduceLatency mod

Re: [v8-dev] Re: Issue 3880 in v8: Linking binaries takes ages

2015-04-29 Thread &#x27;Erik Corry' via v8-dev
dev@googlegroups.com > http://groups.google.com/group/v8-dev > ---You received this message because you are subscribed to the Google > Groups "v8-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to v8-dev+unsubscr...@googlegr

[v8-dev] Re: Implement IdentityMap, a robust, GC-safe object-identity HashMap. (issue 1105693002 by tit...@chromium.org)

2015-04-29 Thread erik . corry
On 2015/04/29 03:43:10, Benedikt Meurer wrote: On 2015/04/27 07:57:51, titzer wrote: > https://codereview.chromium.org/1105693002/diff/1/src/heap/identity-map.h > File src/heap/identity-map.h (right): > > https://codereview.chromium.org/1105693002/diff/1/src/heap/identity-map.h#newcode68 > s

[v8-dev] Re: Implement IdentityMap, a robust, GC-safe object-identity HashMap. (issue 1105693002 by tit...@chromium.org)

2015-04-28 Thread erik . corry
I'm warming to this change/coming to terms with its inevitability. Some non-blocking comments to consider. * Please reconsider the 4x growth factor. It's caused by the resizing heuristic which is an unusual feature. * Currently you can have a resize during a rehash. You should either be s

[v8-dev] Re: Implement IdentityMap, a robust, GC-safe object-identity HashMap. (issue 1105693002 by tit...@chromium.org)

2015-04-28 Thread erik . corry
My mistake. I had missed that the Rehash takes place on the compiler thread after a failed lookup. Tricky! https://codereview.chromium.org/1105693002/diff/60001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1105693002/diff/60001/src/heap/heap.cc#newcode5034 s

[v8-dev] Re: Print PID and isolate address in gc traces. (issue 1109133002 by hpa...@chromium.org)

2015-04-28 Thread erik . corry
lgtm https://codereview.chromium.org/1109133002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Implement IdentityMap, a robust, GC-safe object-identity HashMap. (issue 1105693002 by tit...@chromium.org)

2015-04-28 Thread erik . corry
https://codereview.chromium.org/1105693002/diff/60001/src/heap/identity-map.h File src/heap/identity-map.h (right): https://codereview.chromium.org/1105693002/diff/60001/src/heap/identity-map.h#newcode88 src/heap/identity-map.h:88: *(reinterpret_cast(GetEntry(key))) = value; This assignment take

[v8-dev] Re: Shrink new space and uncommit from space in idle notification during long idle times. (issue 1108133003 by hpa...@chromium.org)

2015-04-28 Thread erik . corry
lgtm https://codereview.chromium.org/1108133003/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Implement IdentityMap, a robust, GC-safe object-identity HashMap. (issue 1105693002 by tit...@chromium.org)

2015-04-28 Thread erik . corry
right): https://codereview.chromium.org/1105693002/diff/20001/src/heap/identity-map.cc#newcode72 src/heap/identity-map.cc:72: Resize(); // Should only have to resize once, since we grow 4x. On 2015/04/27 16:32:50, titzer wrote: On 2015/04/27 15:39:13, Erik Corry wrote: > That's very agg

[v8-dev] Re: Implement IdentityMap, a robust, GC-safe object-identity HashMap. (issue 1105693002 by tit...@chromium.org)

2015-04-27 Thread erik . corry
I'm going to stop here and ask a more fundamental question: We already have HashTable from objects.h. Can't we add rehashing-on-GC to that instead of adding code to the code base? This implementation increases the number of roots, potentially quite a lot, thus making our atomic pauses at the s

[v8-dev] Re: Version 4.3.61.13 (cherry-pick) (issue 1107483003 by rmcil...@chromium.org)

2015-04-23 Thread erik . corry
lgtm https://codereview.chromium.org/1107483003/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Use smaller heap growing factor in idle notification to start incremental marking when there is idl... (issue 1090963002 by hpa...@chromium.org)

2015-04-16 Thread erik . corry
LGTM https://codereview.chromium.org/1090963002/diff/20001/src/heap/gc-idle-time-handler.h File src/heap/gc-idle-time-handler.h (right): https://codereview.chromium.org/1090963002/diff/20001/src/heap/gc-idle-time-handler.h#newcode126 src/heap/gc-idle-time-handler.h:126: static const size_t kMax

[v8-dev] Re: Mark faster. Preperation for new insertion barrier. (issue 1081253005 by hpa...@chromium.org)

2015-04-15 Thread erik . corry
https://codereview.chromium.org/1081253005/diff/1/src/heap/incremental-marking.h File src/heap/incremental-marking.h (right): https://codereview.chromium.org/1081253005/diff/1/src/heap/incremental-marking.h#newcode106 src/heap/incremental-marking.h:106: static const intptr_t kMarkingSpeedAccelle

[v8-dev] Mark objects black. (issue 996983003 by hpa...@chromium.org)

2015-04-14 Thread erik . corry
https://codereview.chromium.org/996983003/diff/120001/src/heap/incremental-marking.h File src/heap/incremental-marking.h (right): https://codereview.chromium.org/996983003/diff/120001/src/heap/incremental-marking.h#newcode98 src/heap/incremental-marking.h:98: static const intptr_t kAllocatedThre

[v8-dev] Re: v8:3539 - hold constructor feedback in weak cells (issue 1029093002 by mvstan...@chromium.org)

2015-04-02 Thread erik . corry
I'm a bit late here, but: https://codereview.chromium.org/1029093002/diff/140001/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (right): https://codereview.chromium.org/1029093002/diff/140001/src/arm/code-stubs-arm.cc#newcode2377 src/arm/code-stubs-arm.cc:2377: // Arguments register m

[v8-dev] Re: Fix external-snapshot startup when snapshot is missing, but natives source is available (issue 1049383004 by erikco...@chromium.org)

2015-04-01 Thread erik . corry
https://codereview.chromium.org/1049383004/diff/1/src/isolate.h File src/isolate.h (right): https://codereview.chromium.org/1049383004/diff/1/src/isolate.h#newcode990 src/isolate.h:990: return snapshot_blob_ != NULL && snapshot_blob_->raw_size != 0; On 2015/04/01 17:02:13, vogelheim wrote: When

Re: [v8-dev] Re: Ensure that GC idle notifications either make progress or stop requesting more GCs. (issue 1042483002 by rmcil...@chromium.org)

2015-03-30 Thread &#x27;Erik Corry' via v8-dev
chromium.org/1042483002/ > > -- > -- > v8-dev mailing list > v8-dev@googlegroups.com > http://groups.google.com/group/v8-dev > ---You received this message because you are subscribed to the Google Groups > "v8-dev" group. > To unsubscribe from this group and stop

[v8-dev] Re: Allow more scavenges in idle notification by increasing the new space limit distance. (issue 1034403002 by hpa...@chromium.org)

2015-03-27 Thread erik . corry
lgtm https://codereview.chromium.org/1034403002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Allow more scavenges in idle notification by increasing the new space limit distance. (issue 1034403002 by hpa...@chromium.org)

2015-03-27 Thread erik . corry
https://codereview.chromium.org/1034403002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, sen

[v8-dev] Re: Use atomic operation to read the length of a fixed array. (issue 1034163002 by u...@chromium.org)

2015-03-26 Thread erik . corry
The description looks wrong. These are synchronized operations, not atomic ones. https://codereview.chromium.org/1034163002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v

[v8-dev] Re: two pass phantom collection (issue 998253006 by dcar...@chromium.org)

2015-03-26 Thread erik . corry
LGTM https://codereview.chromium.org/998253006/diff/11/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/998253006/diff/11/test/cctest/test-api.cc#newcode3200 test/cctest/test-api.cc:3200: CHECK_EQ(initial_handle_count, global_handles->global

[v8-dev] Re: Remove CanRetainOtherContext since embedded objects are now weak. (issue 1020803004 by verwa...@chromium.org)

2015-03-26 Thread erik . corry
lgtm https://codereview.chromium.org/1020803004/diff/60001/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/1020803004/diff/60001/src/hydrogen.cc#newcode8652 src/hydrogen.cc:8652: top_info()->closure()->context()->native_context()) { You have this several places.

[v8-dev] Re: Remove CanRetainOtherContext since embedded objects are now weak. (issue 1020803004 by verwa...@chromium.org)

2015-03-26 Thread erik . corry
https://codereview.chromium.org/1020803004/diff/20001/src/ic/stub-cache.cc File src/ic/stub-cache.cc (right): https://codereview.chromium.org/1020803004/diff/20001/src/ic/stub-cache.cc#newcode120 src/ic/stub-cache.cc:120: if (entry(primary_, offset) == &primary_[i]) { Apart from avoiding leaks t

[v8-dev] Re: two pass phantom collection (issue 998253006 by dcar...@chromium.org)

2015-03-26 Thread erik . corry
https://codereview.chromium.org/998253006/diff/60001/include/v8-util.h File include/v8-util.h (right): https://codereview.chromium.org/998253006/diff/60001/include/v8-util.h#newcode328 include/v8-util.h:328: p.Reset(); Why do we have to create a Global, then immediately reset it? https://codere

[v8-dev] Re: Reload length of retained_maps array after GC. (issue 1026113004 by u...@chromium.org)

2015-03-25 Thread erik . corry
https://codereview.chromium.org/1026113004/diff/60001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1026113004/diff/60001/src/objects.cc#newcode8299 src/objects.cc:8299: length = array->Length(); Missing DCHECK from the single-argument version. Did you try just doi

[v8-dev] Re: Filter invalid slots out from the SlotsBuffer after marking. (issue 1010363005 by ish...@chromium.org)

2015-03-24 Thread erik . corry
lgtm https://codereview.chromium.org/1010363005/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Filter invalid slots out from the SlotsBuffer after marking. (issue 1010363005 by ish...@chromium.org)

2015-03-24 Thread erik . corry
https://codereview.chromium.org/1010363005/diff/140001/src/heap/mark-compact.h File src/heap/mark-compact.h (right): https://codereview.chromium.org/1010363005/diff/140001/src/heap/mark-compact.h#newcode366 src/heap/mark-compact.h:366: static void RemoveInvalidSlots(Heap* heap, SlotsBuffer* buff

[v8-dev] Re: fix disposal of phantom handles in GlobalValueMap (issue 1026283004 by dcar...@chromium.org)

2015-03-24 Thread erik . corry
https://codereview.chromium.org/1026283004/diff/1/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/1026283004/diff/1/test/cctest/test-api.cc#newcode3244 test/cctest/test-api.cc:3244: CHECK_EQ(IntKeyToVoidPointer(key), info.GetInternalField1()); The te

[v8-dev] Re: Simplified garbage collection idle handler. (issue 1024043003 by hpa...@chromium.org)

2015-03-23 Thread erik . corry
It's a good simplification. We have 3 triggers for a GC when this lands: IncrementalMarking: kActivationThreshold: 8Mbytes promoted GCIdleTimeHandler: KIdleScavengeThreshold: 5 new-space GCs Heap::OldGenerationAllocationLimit: Growth of 1.1x to 4x depending on handles freed at last GC. LGTM

[v8-dev] Re: Limit rate of full garbage collections triggered by idle notification. (issue 1023153002 by hpa...@chromium.org)

2015-03-20 Thread erik . corry
I think we'll take another look at it Monday. One idea is to add up the unutilized idle times and use those to measure how much time has gone. That way any test that controls the idle notifications is still deterministic on varying devices and system loads. I'd like to get rid of the idea of

[v8-dev] Re: Limit rate of full garbage collections triggered by idle notification. (issue 1023153002 by hpa...@chromium.org)

2015-03-20 Thread erik . corry
In terms of testability it's not great to add more time-based decision making. It would be good to get to a place where the test harness could call the idle API and there was no other time based decision making. https://codereview.chromium.org/1023153002/diff/80001/src/heap/gc-idle-time-hand

[v8-dev] Re: Fix OOM bug 3976. (issue 1024823002 by erikco...@chromium.org)

2015-03-20 Thread erik . corry
https://codereview.chromium.org/1024823002/diff/20001/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/1024823002/diff/20001/src/heap/mark-compact.cc#newcode648 src/heap/mark-compact.cc:648: static const int kMaxMaxEvacuationCandidates = 1; On 2

Re: [v8-dev] Re: Remove PropertyCell space (issue 1016803002 by verwa...@chromium.org)

2015-03-19 Thread &#x27;Erik Corry' via v8-dev
res have been lost like tears in the rain. -- Erik Corry Google UK Limited Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ Registered in England Number: 3977902 -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You rec

[v8-dev] Re: Serializer: another small reorder of root objects. (issue 1023673003 by yang...@chromium.org)

2015-03-19 Thread erik . corry
lgtm https://codereview.chromium.org/1023673003/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Serializer: reorder root list items. (issue 1019243002 by yang...@chromium.org)

2015-03-19 Thread erik . corry
https://codereview.chromium.org/1019243002/diff/1/src/heap/heap.h File src/heap/heap.h (right): https://codereview.chromium.org/1019243002/diff/1/src/heap/heap.h#newcode57 src/heap/heap.h:57: V(Map, cons_one_byte_string_map, ConsOneByteStringMap) \ If these are frequent in

[v8-dev] Re: Reland "Fix memory leak caused by field type in descriptor array." (issue 1018283002 by u...@chromium.org)

2015-03-19 Thread erik . corry
lgtm https://codereview.chromium.org/1018283002/diff/20001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1018283002/diff/20001/src/objects.cc#newcode1703 src/objects.cc:1703: if (type->IsClass()) return Map::WeakCellForMap(type->AsClass()->Map()); You could asser

[v8-dev] Re: Serializer: serialize internal references via object visitor. (issue 1005183006 by yang...@chromium.org)

2015-03-18 Thread erik . corry
lgtm https://codereview.chromium.org/1005183006/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Serializer: serialize internal references via object visitor. (issue 1005183006 by yang...@chromium.org)

2015-03-17 Thread erik . corry
Looks basically sound https://codereview.chromium.org/1005183006/diff/1/src/serialize.cc File src/serialize.cc (right): https://codereview.chromium.org/1005183006/diff/1/src/serialize.cc#newcode1875 src/serialize.cc:1875: DCHECK(code_object_); I don't think you are allowed to use implicit bool

[v8-dev] Re: remove phantom naming from the api (issue 989153003 by dcar...@chromium.org)

2015-03-09 Thread erik . corry
lgtm https://codereview.chromium.org/989153003/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Eliminate invalid pointers in store buffer after marking. (issue 985453003 by hpa...@chromium.org)

2015-03-09 Thread erik . corry
LGTM! https://codereview.chromium.org/985453003/diff/150001/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/985453003/diff/150001/src/heap/mark-compact.cc#newcode3113 src/heap/mark-compact.cc:3113: // If the slot is within the first found object i

[v8-dev] Re: Eliminate invalid pointers in store buffer after marking. (issue 985453003 by hpa...@chromium.org)

2015-03-09 Thread erik . corry
https://codereview.chromium.org/985453003/diff/80001/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/985453003/diff/80001/src/heap/mark-compact.cc#newcode3095 src/heap/mark-compact.cc:3095: // Find the first live object in the cell. Shouldn't this

[v8-dev] Re: Eliminate invalid pointers in store buffer after marking. (issue 985453003 by hpa...@chromium.org)

2015-03-09 Thread erik . corry
https://codereview.chromium.org/985453003/diff/80001/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/985453003/diff/80001/src/heap/mark-compact.cc#newcode3076 src/heap/mark-compact.cc:3076: start_index--; If start_index was zero, it goes negative h

[v8-dev] Re: Use faster IsDecimalDigit in the json parser (issue 974353002 by verwa...@chromium.org)

2015-03-05 Thread erik . corry
lgtm https://codereview.chromium.org/974353002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Serializer: simplify external reference encoding. (issue 982773003 by yang...@chromium.org)

2015-03-05 Thread erik . corry
LGTM, but This is going to be very hard to debug if someone adds an external reference like the counter, which can be either present or absent depending on configuration. You fixed that one in the CL, but when new ones arise, it will silently wire up all the external references after the extra

  1   2   3   4   5   6   7   8   9   10   >