[v8-dev] ic: perform interceptor query in LookupForWrite (issue 24272005)

2013-09-19 Thread fedor . indutny
Reviewers: Sven Panne, Description: ic: perform interceptor query in LookupForWrite Right now, v8 in a strict mode will give up setting a property on global object if it has setter interceptor. Correct behaviour would be calling query interceptor or getter, if present, to figure out if the pro

[v8-dev] Re: ic: perform interceptor query in LookupForWrite (issue 24272005)

2013-09-23 Thread fedor . indutny
On 2013/09/23 13:09:59, Toon Verwaest wrote: It's not entirely clear to me what problem you are fixing. Can we have a test-case for this? Previously if there was an interceptor setter, we'd always initialize the IC because lookup->CanHoldValue(value) would always return true (given that repr

[v8-dev] Re: ic: perform interceptor query in LookupForWrite (issue 24272005)

2013-09-23 Thread fedor . indutny
On 2013/09/23 13:20:13, Toon Verwaest wrote: Done 14 minutes ago ;) https://codereview.chromium.org/23480102/ Great! :) Seems to be working for me in node.js, thank you for letting me know and looking at this CL. https://codereview.chromium.org/24272005/ -- -- v8-dev mailing list v8-dev@g

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-10-24 Thread fedor . indutny
Base URL is incorrect, please update it if it's possible: https://github.com/indutny/v8/tree/feature-switch-string-literal-opt http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] [hydrogen] optimize switch with string clauses (issue 8373029)

2011-10-24 Thread fedor . indutny
Reviewers: Vyacheslav Egorov, Description: [hydrogen] optimize switch with string clauses Hydrogen should optimize not only SMI clauses, but clauses with string literals too. R=vego...@chromium.org BUG= TEST= Please review this at http://codereview.chromium.org/8373029/ SVN Base: gh:v8/v8

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-10-24 Thread fedor . indutny
Updated. http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-10-24 Thread fedor . indutny
Updated http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-10-24 Thread fedor . indutny
Updated http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-10-26 Thread fedor . indutny
Can you please benchmark this branch. It's faster on jslint for me. http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-10-28 Thread fedor . indutny
Finally, this thing works w/o segfaults and assertions. On my machine jslint is about 5% faster on patched d8 than on bleeding_edge. Added x64 instruction, but can't test it (only have 32bit mbpro right now). http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-01 Thread fedor . indutny
http://codereview.chromium.org/8373029/diff/32026/src/ast.h File src/ast.h (right): http://codereview.chromium.org/8373029/diff/32026/src/ast.h#newcode713 src/ast.h:713: bool IsSymbolCompare() { return compare_type_ == SYMBOL_ONLY; } On 2011/11/01 09:26:19, fschneider wrote: You introduce IsSym

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-01 Thread fedor . indutny
btw, it fails sometimes when trying to apply uglifyjs on itself, and I don't understand why (as it works in everything from jslint to my own custom apps) http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-02 Thread fedor . indutny
Any news? http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-02 Thread fedor . indutny
As I can see, problem comes from different place. `advance` was bailout'ed because of switch clause type restrictions, my patch is removing those restrictions and it's starting deoptimization on some smi checks (as I can see) that wasn't introduced by my patch. Even more, on previous revisions

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-02 Thread fedor . indutny
So I guess that performance regression was caused by some v8 team's commits and we should consider fixing that or at least reverting regression commit. http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-02 Thread fedor . indutny
Renamed oddball_check. Added type feedback check for bailouting switches that are taking non-symbol strings as input. http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-06 Thread fedor . indutny
Any updates? http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-07 Thread fedor . indutny
http://codereview.chromium.org/8373029/diff/43002/src/hydrogen.cc File src/hydrogen.cc (right): http://codereview.chromium.org/8373029/diff/43002/src/hydrogen.cc#newcode2762 src/hydrogen.cc:2762: iterations = iterations * 2; It yields a big improvement, as we usually don't know any type feedback

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-07 Thread fedor . indutny
http://codereview.chromium.org/8373029/diff/43002/src/ia32/lithium-codegen-ia32.cc File src/ia32/lithium-codegen-ia32.cc (right): http://codereview.chromium.org/8373029/diff/43002/src/ia32/lithium-codegen-ia32.cc#newcode1798 src/ia32/lithium-codegen-ia32.cc:1798: Handle ic = CompareIC::GetUninit

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-07 Thread fedor . indutny
http://codereview.chromium.org/8373029/diff/43002/src/ia32/lithium-ia32.cc File src/ia32/lithium-ia32.cc (right): http://codereview.chromium.org/8373029/diff/43002/src/ia32/lithium-ia32.cc#newcode1548 src/ia32/lithium-ia32.cc:1548: return AssignEnvironment(MarkAsCall(result, instr)); You're righ

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-07 Thread fedor . indutny
Fixed all things you commented. ;) http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-07 Thread fedor . indutny
http://codereview.chromium.org/8373029/diff/43002/src/hydrogen.cc File src/hydrogen.cc (right): http://codereview.chromium.org/8373029/diff/43002/src/hydrogen.cc#newcode2762 src/hydrogen.cc:2762: iterations = iterations * 2; I tried implementing graph structure like that: | /\ /

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-08 Thread fedor . indutny
Thanks for reviewing it! Should I open a new request with rest of the features after you land it? http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-08 Thread Fedor Indutny
Of course, running tests! Cheers, Fedor. On Tue, Nov 8, 2011 at 3:31 PM, Florian Schneider wrote: > Unfortunately x64 shows a test failure in the mozilla test suite: > > > http://build.chromium.org/p/client.v8/builders/V8%20Linux64/builds/2863/steps/Mozilla/logs/stdio > >

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-08 Thread fedor . indutny
Fixed, thanks http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-08 Thread fedor . indutny
fixed, thanks http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-08 Thread Fedor Indutny
Agreed. Is it blocking landing of current version of patch? Cheers, Fedor. On Tue, Nov 8, 2011 at 6:07 PM, Vyacheslav Egorov wrote: > We need to increase the coverage of the switch test for different > switch use cases (string, smi, mixed), different inputs (symbol > strings, n

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-08 Thread fedor . indutny
(empty message, just to remind you about this issue) http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-16 Thread fedor . indutny
Added comprehensive test for different type of clauses, tags, feedback and optimizations. http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-17 Thread fedor . indutny
Thanks, fixed http://codereview.chromium.org/8373029/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-18 Thread Fedor Indutny
Thank you for merging this! I opened new code review request to add second-pass of `fast` symbol comparisons and some type feedback to this switch optimization: http://codereview.chromium.org/8499010 Cheers, Fedor. On Wed, Nov 9, 2011 at 12:41 PM, wrote: > (empty message, just to rem

[v8-dev] Re: [hydrogen] optimize switch with string clauses (issue 8373029)

2011-11-23 Thread Fedor Indutny
Any status updates on http://codereview.chromium.org/8499010/ ? Cheers, Fedor. On Fri, Nov 18, 2011 at 12:07 PM, Fedor Indutny wrote: > Thank you for merging this! > > I opened new code review request to add second-pass of `fast` symbol > comparisons and some type feedback to

[v8-dev] Re: [hydrogen] don't bailout assignments to consts (issue 8857001)

2011-12-08 Thread fedor . indutny
Reviewers: Vyacheslav Egorov, fschneider, Message: Everything fixed, and I noticed that it was anyway bailouting on self-referencing named function, because of VisitVariableProxy for CONST variable in CONTEXT. Do we need this bailout anymore? And looks like my test is failing on new test: "illeg

[v8-dev] [debugger] noRefs option for fixing blowing array refs (issue 8873053)

2011-12-09 Thread fedor . indutny
Reviewers: Vyacheslav Egorov, Description: [debugger] noRefs option for fixing blowing array refs see https://gist.github.com/1230388 for example. When requesting bactrace - node.js SlowBuffer appears as an argument and it's every index is being put to the 'ref' property. In this patch I int

[v8-dev] Re: [hydrogen] don't bailout assignments to consts (issue 8857001)

2011-12-09 Thread fedor . indutny
Sorry, bad grammar, never write replies too late :) hope everything is clear from my message anyway. http://codereview.chromium.org/8857001/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] don't bailout assignments to consts (issue 8857001)

2011-12-09 Thread fedor . indutny
Updated with fixes http://codereview.chromium.org/8857001/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] don't bailout assignments to consts (issue 8857001)

2011-12-09 Thread fedor . indutny
Not right now, but going to investigate... http://codereview.chromium.org/8857001/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] don't bailout assignments to consts (issue 8857001)

2011-12-09 Thread fedor . indutny
Fixed, I was checking value, not target in StoreContextSlot. http://codereview.chromium.org/8857001/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [debugger] noRefs option for fixing blowing array refs (issue 8873053)

2011-12-12 Thread fedor . indutny
any status update? http://codereview.chromium.org/8873053/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] don't bailout assignments to consts (issue 8857001)

2011-12-12 Thread fedor . indutny
any status update? http://codereview.chromium.org/8857001/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] don't bailout assignments to consts (issue 8857001)

2011-12-12 Thread fedor . indutny
Done! http://codereview.chromium.org/8857001/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [hydrogen] don't bailout assignments to consts (issue 8857001)

2011-12-12 Thread fedor . indutny
Done. http://codereview.chromium.org/8857001/diff/17002/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): http://codereview.chromium.org/8857001/diff/17002/src/hydrogen-instructions.h#newcode3549 src/hydrogen-instructions.h:3549: return mode_ == kCheckIgnoreAssignment; oh, s

[v8-dev] Re: [hydrogen] don't bailout assignments to consts (issue 8857001)

2011-12-13 Thread fedor . indutny
Done http://codereview.chromium.org/8857001/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [debugger] noRefs option for fixing blowing array refs (issue 8873053)

2011-12-13 Thread fedor . indutny
No, it can't as you can see in gist that I attached to this patch, in backtrace request refs will mirror all arguments in all scopes, and that's ok in most cases. But when you passing TypedArrays or Buffers to callbacks, each their element will be mirrored and put into ref. But we don't need to

[v8-dev] Re: [debugger] noRefs option for fixing blowing array refs (issue 8873053)

2011-12-14 Thread fedor . indutny
http://codereview.chromium.org/8873053/diff/7002/src/debug-debugger.js File src/debug-debugger.js (right): http://codereview.chromium.org/8873053/diff/7002/src/debug-debugger.js#newcode1352 src/debug-debugger.js:1352: if (!this.options_ || !this.options_.noRefs) { You mean includeRefs: true, rig

[v8-dev] Re: [debugger] noRefs option for fixing blowing array refs (issue 8873053)

2011-12-14 Thread fedor . indutny
Oh, I made a typo : includeRefs => inlineRefs. And I've tried using it and it works http://codereview.chromium.org/8873053/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] [objects] seed NumberDictionary (only ia32) now (issue 9148006)

2012-01-09 Thread fedor . indutny
Reviewers: Erik Corry, Description: [objects] seed NumberDictionary (only ia32) now BUG= TEST= R=erik.co...@gmail.com Please review this at http://codereview.chromium.org/9148006/ SVN Base: gh:v8/v8@master Affected files: M src/ia32/macro-assembler-ia32.cc M src/objects-inl.h M src/ob

[v8-dev] Re: [objects] seed NumberDictionary (only ia32) now (issue 9148006)

2012-01-09 Thread fedor . indutny
sorry, patch is incomplete/incorrect now, fixing it right now http://codereview.chromium.org/9148006/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [objects] seed NumberDictionary (only ia32) now (issue 9148006)

2012-01-09 Thread fedor . indutny
I think it works now, can you please review? http://codereview.chromium.org/9148006/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [objects] seed NumberDictionary (only ia32) now (issue 9148006)

2012-01-09 Thread fedor . indutny
I can add const bool variable UsesSeed to all shapes. And check it before calling GetHeap()->StringHashSeed() , that'll definitely be optimized by most of C++ compilers (unused arguments are optimized only by g++, as bnoordhuis told me). What do you think? http://codereview.chromium.org/914

[v8-dev] Re: [objects] seed NumberDictionary (only ia32 now) (issue 9148006)

2012-01-09 Thread fedor . indutny
updated commit request. Removed all useless arguments, added const bool variable and SeededHash method to shape's base class (which was introduced here, btw) If design is ok, I can start porting it to other archs. http://codereview.chromium.org/9148006/diff/1011/src/utils.h File src/utils.h

[v8-dev] Re: [objects] seed NumberDictionary (only ia32 now) (issue 9148006)

2012-01-10 Thread fedor . indutny
Should be fixed now. Tested in debug and release mode with snapshots and w/o. http://codereview.chromium.org/9148006/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [objects] seed NumberDictionary (only ia32 now) (issue 9148006)

2012-01-10 Thread fedor . indutny
Added test, fixed code, decoupled things :) http://codereview.chromium.org/9148006/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [objects] seed NumberDictionary (only ia32 now) (issue 9148006)

2012-01-10 Thread fedor . indutny
rebased http://codereview.chromium.org/9148006/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: [objects] seed NumberDictionary (only ia32 now) (issue 9148006)

2012-01-10 Thread fedor . indutny
Fixed issues, fixed rebase http://codereview.chromium.org/9148006/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Backport @10366 to 3.6 (issue 9190001)

2012-01-11 Thread fedor . indutny
Reviewers: Erik Corry, Description: Backport @10366 to 3.6 Add seed to hash of numeric keyed properties. R=erik.co...@gmail.com Please review this at http://codereview.chromium.org/9190001/ SVN Base: http://v8.googlecode.com/svn/branches/3.6/ Affected files: M src/arm/macro-assembler-a

[v8-dev] [objects] NotSeededNumberDictionary (issue 9212006)

2012-01-13 Thread fedor . indutny
Reviewers: Erik Corry, Message: It's causing segfaults currently, hope you can guide me or use parts of it code. Description: [objects] NotSeededNumberDictionary BUG= TEST= R=erik.co...@gmail.com Please review this at http://codereview.chromium.org/9212006/ SVN Base: gh:v8/v8@master Aff

[v8-dev] objects: fix linker problem (issue 9382033)

2012-02-11 Thread fedor . indutny
Reviewers: Erik Corry, Description: objects: fix linker problem R=erik.co...@gmail.com BUG=1936 TEST= Please review this at http://codereview.chromium.org/9382033/ SVN Base: gh:v8/v8@master Affected files: M src/objects.cc Index: src/objects.cc diff --git a/src/objects.cc b/src/objects.

[v8-dev] Re: objects: fix template-related linker error (issue 9382033)

2012-02-14 Thread fedor . indutny
On 2012/02/14 09:41:34, danno wrote: LGTM. Landing. Can we backport it to 3.6.x? https://chromiumcodereview.appspot.com/9382033/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: objects: fix template-related linker error (issue 9382033)

2012-02-14 Thread fedor . indutny
The error I reported in issue was noticed on node.js v0.6.x which uses 3.6. Sorry, but I can't tell you more about it. On 2012/02/14 12:06:15, danno wrote: Is this the only symbol that needs to be defined for the backport? Erik added about 20 new definitions for 3.8 for Seeded and Unseeded dict

[v8-dev] Re: objects: fix template-related linker error (issue 9382033)

2012-02-14 Thread fedor . indutny
Ok, Thank you anyway! https://chromiumcodereview.appspot.com/9382033/ -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] StackFrames how to?

2010-08-15 Thread Fedor Indutny
How to use StackFrames from TryCatch::StackTrace? Any help/hints will be usefull! Thank you! -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-02 Thread fedor . indutny
Reviewers: danno, Message: Probable improvements and things to done: * Improve resetting counters by dictionary of references to type feedback cells * Handle counter overflow (isn't actually needed if below will be done) * Remove counters from unoptimized code once function is marked as unopt

[v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-02 Thread fedor . indutny
On 2013/06/02 08:21:15, indutny wrote: Probable improvements and things to done: * Improve resetting counters by dictionary of references to type feedback cells * Handle counter overflow (isn't actually needed if below will be done) * Remove counters from unoptimized code once function is ma

[v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-02 Thread fedor . indutny
On 2013/06/02 09:12:48, indutny wrote: On 2013/06/02 08:21:15, indutny wrote: > Probable improvements and things to done: > > * Improve resetting counters by dictionary of references to type feedback cells > * Handle counter overflow (isn't actually needed if below will be done) > * Remove cou

[v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-02 Thread fedor . indutny
On 2013/06/02 09:21:37, indutny wrote: On 2013/06/02 09:12:48, indutny wrote: > On 2013/06/02 08:21:15, indutny wrote: > > Probable improvements and things to done: > > > > * Improve resetting counters by dictionary of references to type feedback > cells > > * Handle counter overflow (isn't ac

[v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-02 Thread fedor . indutny
On 2013/06/02 20:57:26, indutny wrote: On 2013/06/02 09:21:37, indutny wrote: > On 2013/06/02 09:12:48, indutny wrote: > > On 2013/06/02 08:21:15, indutny wrote: > > > Probable improvements and things to done: > > > > > > * Improve resetting counters by dictionary of references to type feedback

[v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-03 Thread fedor . indutny
Just FYI to consider, benchmarks seems to be running a little bit faster after applying this patch. Before: Richards: 15995 DeltaBlue: 17270 Crypto: 17093 RayTrace: 17763 EarleyBoyer: 20444 RegExp: 2822 Splay: 5866 NavierStokes: 20310 Score (version 7): 12448 After: Richards: 15992 Delt

[v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-03 Thread fedor . indutny
Thank you for reviewing, sad that it won't get in, but that's ok. I'll look into proposed optimization techniques and will share results with you (if I'll have any). https://codereview.chromium.org/16128004/diff/22001/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): htt

Re: [v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-03 Thread Fedor Indutny
execution - deoptimization will happen only after the counter value will be exhausted, which should take reasonable amount of time, considering rareness. Please let me know if you want me to port this code to use HLoad, HStore or anything else. Cheers, Fedor. On Mon, Jun 3, 2013 at 3:42 PM, Sven Pa

Re: [v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-03 Thread Fedor Indutny
Btw, why are we discussing it here and not on CL page? Cheers, Fedor. On Mon, Jun 3, 2013 at 3:46 PM, Fedor Indutny wrote: > Sven, > > I think my deoptimization technique could be greatly improved, but even > now it works perfectly for supplied test case as it recompiles

Re: [v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-03 Thread Fedor Indutny
Deoptimizing on unvisited cases will not improve anything, it'll just cause spontaneous deoptimizations. If you'll look at my CL history, I tried this solution in first place before going into counter cell wilderness. Cheers, Fedor. On Mon, Jun 3, 2013 at 6:25 PM, Florian Schne

[v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-03 Thread fedor . indutny
On 2013/06/03 10:56:11, indutny wrote: Thank you for reviewing, sad that it won't get in, but that's ok. I'll look into proposed optimization techniques and will share results with you (if I'll have any). https://codereview.chromium.org/16128004/diff/22001/src/hydrogen-instructions.h Fil

[v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-03 Thread fedor . indutny
On 2013/06/03 19:37:18, indutny wrote: On 2013/06/03 10:56:11, indutny wrote: > Thank you for reviewing, sad that it won't get in, but that's ok. I'll look into > proposed optimization techniques and will share results with you (if I'll have > any). > > https://codereview.chromium.org/16

[v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-03 Thread fedor . indutny
On 2013/06/03 20:04:04, indutny wrote: On 2013/06/03 19:37:18, indutny wrote: > On 2013/06/03 10:56:11, indutny wrote: > > Thank you for reviewing, sad that it won't get in, but that's ok. I'll look > into > > proposed optimization techniques and will share results with you (if I'll have > >

Re: [v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-03 Thread Fedor Indutny
nk that we should try accumulating hit stats for clauses. Cheers, Fedor. On Tue, Jun 4, 2013 at 10:48 AM, Sven Panne wrote: > On Mon, Jun 3, 2013 at 4:25 PM, Florian Schneider > wrote: > >> I'm not saying that other techniques are worse or better by any means. I >> t

Re: [v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-04 Thread Fedor Indutny
What about my patch for cell clearing code? Do you think its still worth applying, even without main CL? Cheers, Fedor. On Tue, Jun 4, 2013 at 11:13 AM, Sven Panne wrote: > On Tue, Jun 4, 2013 at 8:53 AM, Fedor Indutny wrote: > >> Sorry, I know that's the normal way of do

[v8-dev] hydrogen: split switch optimization code into multiple functions (issue 15993014)

2013-06-04 Thread fedor . indutny
Reviewers: Sven Panne, Description: hydrogen: split switch optimization code into multiple functions In preparions for future switch statement optimization improvements. R=svenpa...@chromium.org BUG= Please review this at https://codereview.chromium.org/15993014/ SVN Base: gh:v8/v8.git@maste

Re: [v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-04 Thread Fedor Indutny
ike a good idea to you? Cheers, Fedor. On Tue, Jun 4, 2013 at 1:21 PM, Fedor Indutny wrote: > What about my patch for cell clearing code? Do you think its still worth > applying, even without main CL? > > Cheers, > Fedor. > > > On Tue, Jun 4, 2013 at 11:13 AM, Sven Pan

Re: [v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-05 Thread Fedor Indutny
Ok, I'll wait for you guys to plan it. Cheers, Fedor. On Wed, Jun 5, 2013 at 11:35 AM, Sven Panne wrote: > On Wed, Jun 5, 2013 at 8:47 AM, Sven Panne wrote: > >> On Tue, Jun 4, 2013 at 6:02 PM, Fedor Indutny wrote: >> >>> As a start for all this stuff that

Re: [v8-dev] Re: Reorder switch clauses using newly-introduced execution counters in (issue 16128004)

2013-06-06 Thread Fedor Indutny
itive code, or at least I don't know any public example of their usage. Cheers, Fedor. On Wed, Jun 5, 2013 at 12:57 PM, Fedor Indutny wrote: > Ok, I'll wait for you guys to plan it. > > Cheers, > Fedor. > > > On Wed, Jun 5, 2013 at 11:35 AM, Sven Panne wrote:

[v8-dev] api: Object::CachedProperty (issue 14425011)

2013-04-28 Thread fedor . indutny
Reviewers: Erik Corry, Message: Note that it is a Work-In-Progress, and lacks implementation of `Has()` method so far. Description: api: Object::CachedProperty This is a work in progress, just want to share it with you guys to get some critics and comments about it! From my benchmarks prope

[v8-dev] Re: api: Object::CachedProperty (issue 14425011)

2013-04-28 Thread fedor . indutny
On 2013/04/28 21:08:28, indutny wrote: Note that it is a Work-In-Progress, and lacks implementation of `Has()` method so far. Ok, I decided to avoid implementing `Has()`. https://codereview.chromium.org/14425011/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/gro

[v8-dev] Re: api: Object::CachedProperty (issue 14425011)

2013-04-28 Thread fedor . indutny
On 2013/04/28 21:15:11, indutny wrote: On 2013/04/28 21:08:28, indutny wrote: > Note that it is a Work-In-Progress, and lacks implementation of `Has()` method > so far. Ok, I decided to avoid implementing `Has()`. It seems to be ready for review, I'll do benchmarks with node.js soon. http

[v8-dev] Re: api: Object::CachedProperty (issue 14425011)

2013-04-28 Thread fedor . indutny
On 2013/04/28 21:51:33, indutny wrote: On 2013/04/28 21:15:11, indutny wrote: > On 2013/04/28 21:08:28, indutny wrote: > > Note that it is a Work-In-Progress, and lacks implementation of `Has()` method > > so far. > > Ok, I decided to avoid implementing `Has()`. It seems to be ready for rev

[v8-dev] Re: api: Object::CachedProperty (issue 14425011)

2013-04-28 Thread fedor . indutny
On 2013/04/28 22:30:57, indutny wrote: On 2013/04/28 21:51:33, indutny wrote: > On 2013/04/28 21:15:11, indutny wrote: > > On 2013/04/28 21:08:28, indutny wrote: > > > Note that it is a Work-In-Progress, and lacks implementation of `Has()` > method > > > so far. > > > > Ok, I decided to avoid

[v8-dev] Re: api: Object::CachedProperty (issue 14425011)

2013-04-29 Thread fedor . indutny
On 2013/04/29 11:30:11, danno wrote: Fedor, I have some concerns about modifying the API like this (in addition to the fundamental implementation issue below). It pollutes the existing Get/Set APIs and adds a fair amount of duplication for an arguably non-core use case. If performance is