[v8-dev] Re: Using "defined" in macro causes undefined behavior. (issue 1212163003 by bmeu...@chromium.org)

2015-06-29 Thread svenpanne
On 2015/06/29 11:15:32, Sven Panne wrote: lgtm Just a side note: The example in https://chromiumcodereview.appspot.com/10414072/ looks like a bug in MSVC, not like undefined behavior. If you simply do #define FOO FOO is of course defined, but its expansion is empty. That's fundamentally di

[v8-dev] Re: Using "defined" in macro causes undefined behavior. (issue 1212163003 by bmeu...@chromium.org)

2015-06-29 Thread svenpanne
lgtm https://codereview.chromium.org/1212163003/ -- -- 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: Assertion failure when using --log-regexp (issue 1207433002 by djordje.pe...@imgtec.com)

2015-06-29 Thread svenpanne
DBC https://codereview.chromium.org/1207433002/ -- -- 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] Re: Assertion failure when using --log-regexp (issue 1207433002 by djordje.pe...@imgtec.com)

2015-06-29 Thread svenpanne
On 2015/06/24 13:40:01, Jakob wrote: The style guide forbids non-const references. Either use a const reference, or use a pointer, which would have the additional benefit that you can forward-declare Log::MessageBuilder (and drop the log-utils.h include). Just a quick note: There seems to be

[v8-dev] Re: Meaningful name for builtins in JitCodeEvent API. (issue 1216833002 by b...@strongloop.com)

2015-06-28 Thread svenpanne
lgtm https://codereview.chromium.org/1216833002/ -- -- 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: [turbofan] Also update the BranchHint when merging a BooleanNot. (issue 1218443002 by bmeu...@chromium.org)

2015-06-26 Thread svenpanne
LGTM with a nit. https://codereview.chromium.org/1218443002/diff/1/src/compiler/common-operator-reducer.cc File src/compiler/common-operator-reducer.cc (right): https://codereview.chromium.org/1218443002/diff/1/src/compiler/common-operator-reducer.cc#newcode102 src/compiler/common-operator-redu

[v8-dev] Re: [turbofan] Optimize BooleanNot conditions to Branch nodes. (issue 1205353002 by bmeu...@chromium.org)

2015-06-25 Thread svenpanne
lgtm https://codereview.chromium.org/1205353002/ -- -- 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: [turbofan] Optimize BooleanNot conditions to Branch nodes. (issue 1205353002 by bmeu...@chromium.org)

2015-06-25 Thread svenpanne
https://codereview.chromium.org/1205353002/diff/1/src/macros.py File src/macros.py (right): https://codereview.chromium.org/1205353002/diff/1/src/macros.py#newcode194 src/macros.py:194: macro CHECK_DATE(arg) = if (!%_IsDate(arg)) %_ThrowNotDateError(); Hopefully not followed by an "else"... :-]

[v8-dev] Re: [turbofan] Properly type %_IsDate intrinsic. (issue 1208003002 by bmeu...@chromium.org)

2015-06-25 Thread svenpanne
lgtm https://codereview.chromium.org/1208003002/ -- -- 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: [turbofan] Add support for calling to (a subset of) C functions. (issue 1205023002 by bmeu...@chromium.org)

2015-06-25 Thread svenpanne
https://codereview.chromium.org/1205023002/diff/80001/test/cctest/compiler/test-run-machops.cc File test/cctest/compiler/test-run-machops.cc (right): https://codereview.chromium.org/1205023002/diff/80001/test/cctest/compiler/test-run-machops.cc#newcode5160 test/cctest/compiler/test-run-machops.c

[v8-dev] Re: [turbofan] Add support for calling to (a subset of) C functions. (issue 1205023002 by bmeu...@chromium.org)

2015-06-25 Thread svenpanne
LGTM with nits + more test coverage https://codereview.chromium.org/1205023002/diff/40001/src/compiler/arm/instruction-codes-arm.h File src/compiler/arm/instruction-codes-arm.h (right): https://codereview.chromium.org/1205023002/diff/40001/src/compiler/arm/instruction-codes-arm.h#newcode96 src/

[v8-dev] Re: [turbofan] Make TyperCache global and thread safe. (issue 1209513002 by bmeu...@chromium.org)

2015-06-24 Thread svenpanne
lgtm https://codereview.chromium.org/1209513002/ -- -- 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 numeric literals to be checked for a decimal point. (issue 1201783003 by bradnel...@google.com)

2015-06-22 Thread svenpanne
On 2015/06/22 07:59:35, titzer wrote: That sounds like a refactoring that would make sense in a different CL, separate from the functionality introduced here. Yep, see http://martinfowler.com/articles/workflowsOfRefactoring/#2hats :-) Alas, we normally don't follow that general advice... ht

[v8-dev] Re: Allow numeric literals to be checked for a decimal point. (issue 1201783003 by bradnel...@google.com)

2015-06-22 Thread svenpanne
DBC https://codereview.chromium.org/1201783003/diff/1/src/scanner.cc File src/scanner.cc (right): https://codereview.chromium.org/1201783003/diff/1/src/scanner.cc#newcode1436 src/scanner.cc:1436: bool Scanner::ContainsDot() { Instead of using caveman-style loops, the right way to implement this

[v8-dev] Re: [ubsan] Fix HeapObjectMatcher to avoid invalid casts. (issue 1196623002 by bmeu...@chromium.org)

2015-06-19 Thread svenpanne
lgtm https://codereview.chromium.org/1196623002/ -- -- 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: Disable cfi-unrelated-cast sanitizer in OpParameter function. (issue 1196483003 by p...@chromium.org)

2015-06-19 Thread svenpanne
Hmmm, I'm not sure if this is the right way to proceed: With this CL, we effectively just shut up the compiler without fixing the underlying adventurous/creative use of C++'s dark corners. IIRC, OpParameter and/or the related classes should change or vanish, but I can't remember the details. If

[v8-dev] Replace OFFSET_OF with offsetof as far as possible. (issue 1173343006 by svenpa...@chromium.org)

2015-06-17 Thread svenpanne
Reviewers: Benedikt Meurer, Description: Replace OFFSET_OF with offsetof as far as possible. The remaining uses need some non-mechanical work: * non-standard-layout type, probably due to mixed access control * extended field designators Please review this at https://codereview.chromium.or

[v8-dev] Re: Extract common macros and start a base library (issue 249183003)

2015-06-17 Thread svenpanne
https://codereview.chromium.org/249183003/diff/1/src/base/macros.h File src/base/macros.h (right): https://codereview.chromium.org/249183003/diff/1/src/base/macros.h#newcode39 src/base/macros.h:39: // Here we simply use the non-zero value 4, which seems to work. On 2015/06/16 21:02:46, Nico wrot

[v8-dev] Re: [mjsunit] Remove unsupported flag --turbo-deoptimization from tests. (issue 1183123002 by bmeu...@chromium.org)

2015-06-15 Thread svenpanne
lgtm https://codereview.chromium.org/1183123002/ -- -- 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: [mjsunit] Remove obsolete nosse2 tests. (issue 1186713003 by bmeu...@chromium.org)

2015-06-15 Thread svenpanne
lgtm https://codereview.chromium.org/1186713003/ -- -- 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: [turbofan] Mark MachineType as uint16_t. (issue 1182303003 by bmeu...@chromium.org)

2015-06-14 Thread svenpanne
lgtm https://codereview.chromium.org/1182303003/ -- -- 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: [turbofan] Use appropriate type for NodeId. (issue 1178403004 by bmeu...@chromium.org)

2015-06-12 Thread svenpanne
LGTM if my nit is addressed, BTW :-) https://codereview.chromium.org/1178403004/ -- -- 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

[v8-dev] Re: [turbofan] Use appropriate type for NodeId. (issue 1178403004 by bmeu...@chromium.org)

2015-06-12 Thread svenpanne
https://codereview.chromium.org/1178403004/diff/20001/src/compiler/simplified-lowering.cc File src/compiler/simplified-lowering.cc (right): https://codereview.chromium.org/1178403004/diff/20001/src/compiler/simplified-lowering.cc#newcode75 src/compiler/simplified-lowering.cc:75: info_(zone->NewA

[v8-dev] Re: Greedy allocator: perf work (issue 1157663007 by mtro...@chromium.org)

2015-06-12 Thread svenpanne
Quick DBC... https://codereview.chromium.org/1157663007/diff/160001/src/compiler/register-allocator.h File src/compiler/register-allocator.h (right): https://codereview.chromium.org/1157663007/diff/160001/src/compiler/register-allocator.h#newcode969 src/compiler/register-allocator.h:969: if (a_

[v8-dev] Re: MIPS64: Enable shorten-64-to-32 warning. (issue 1133163005 by balazs.kilv...@imgtec.com)

2015-06-12 Thread svenpanne
LGTM with a nit (didn't really look at the platform-dependent parts) https://codereview.chromium.org/1133163005/diff/220001/src/base/platform/time.cc File src/base/platform/time.cc (right): https://codereview.chromium.org/1133163005/diff/220001/src/base/platform/time.cc#newcode114 src/base/plat

[v8-dev] Re: PPC: Adjust simulator stack safety margin. (issue 1174693002 by mbra...@us.ibm.com)

2015-06-10 Thread svenpanne
lgtm https://codereview.chromium.org/1174693002/ -- -- 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: Only mark checksummed memory as initialized for MSAN. (issue 1170723003 by yang...@chromium.org)

2015-06-09 Thread svenpanne
lgtm https://codereview.chromium.org/1170723003/ -- -- 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: Fix compile warning [-Wtype-limits] (issue 1155043005 by seju...@gmail.com)

2015-06-08 Thread svenpanne
https://codereview.chromium.org/1155043005/diff/20001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1155043005/diff/20001/src/api.cc#newcode7256 src/api.cc:7256: COMPILE_ASSERT(i::FIRST_SPACE == 0, first_space_assumed_to_be_zero); Sorry for chiming in so late, but IMHO this

[v8-dev] Re: Fix another -Wsign-compare issue for GCC 4.9.2 (issue 1151523014 by paul.l...@imgtec.com)

2015-06-08 Thread svenpanne
lgtm https://codereview.chromium.org/1151523014/ -- -- 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: Check for null and undefined when getting type name for stack trace. (issue 1164933005 by yang...@chromium.org)

2015-06-08 Thread svenpanne
lgtm https://codereview.chromium.org/1164933005/ -- -- 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: Fix uninitialized variable compiler errors [GCC 4.8.4] (issue 1163143005 by mbra...@us.ibm.com)

2015-06-08 Thread svenpanne
lgtm https://codereview.chromium.org/1163143005/ -- -- 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: AIX: fix another may be uninitialized failure (issue 1157053007 by michael_daw...@ca.ibm.com)

2015-06-02 Thread svenpanne
lgtm https://codereview.chromium.org/1157053007/ -- -- 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: Fix compile failure for AIX (issue 1153233004 by michael_daw...@ca.ibm.com)

2015-05-31 Thread svenpanne
lgtm https://codereview.chromium.org/1153233004/ -- -- 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: Fix compile failure for AIX (issue 1153413002 by mhdawson...@gmail.com)

2015-05-29 Thread svenpanne
You need to use your <*@*.ibm.com> email address, otherwise the CL will complain... https://codereview.chromium.org/1153413002/ -- -- 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] Re: Fix compile failure for AIX (issue 1153413002 by mhdawson...@gmail.com)

2015-05-29 Thread svenpanne
lgtm https://codereview.chromium.org/1153413002/ -- -- 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: Added constructor call on object in InstantiateObject method (issue 1137693003 by dtal...@gmail.com)

2015-05-28 Thread svenpanne
Hmmm, this really looks like an omission on the C++ side, but I'm not 100% sure. @Toon: Could you have a look, please? Another thing is the ".Check()" part: I don't think that crashing is an option here, returning e.g. MaybeHandle() is probably better. Regarding the failure on the v8_linux_

[v8-dev] Re: [test] Mark slow tests on msan. (issue 1159743002 by machenb...@chromium.org)

2015-05-26 Thread svenpanne
lgtm https://codereview.chromium.org/1159743002/ -- -- 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] JavaScript stubs have access to their calling convention and minor key now. (issue 1150263002 by svenpa...@chromium.org)

2015-05-22 Thread svenpanne
Reviewers: mvstanton, Description: JavaScript stubs have access to their calling convention and minor key now. First steps only, the TurboFan compilation is still triggered from C++ land. Includes some simplifications/cleanups, too. Please review this at https://codereview.chromium.org/1150263

[v8-dev] Unbreak %DebugPrint output. (issue 1155773003 by svenpa...@chromium.org)

2015-05-22 Thread svenpanne
Reviewers: Benedikt Meurer, Description: Unbreak %DebugPrint output. Please review this at https://codereview.chromium.org/1155773003/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+3, -2 lines): M src/runtime/runtime-test.cc Index: src/runtime/runtime-test.c

[v8-dev] Add a TurboFan skeleton for StringAddStub. (issue 1150673002 by svenpa...@chromium.org)

2015-05-20 Thread svenpanne
Reviewers: mvstanton, Description: Add a TurboFan skeleton for StringAddStub. Currently the stub simply calls out to the runtime, this will be improved in a later CLs. The current state at least avoids bit-rot and later merging horror. Contains quite a few tiny cleanups in stub-land, too. Plea

[v8-dev] Re: Add %GetCallerJSFunction intrinsic (issue 1146963002 by da...@chromium.org)

2015-05-20 Thread svenpanne
DBC... https://codereview.chromium.org/1146963002/diff/20001/test/mjsunit/get-caller-js-function.js File test/mjsunit/get-caller-js-function.js (right): https://codereview.chromium.org/1146963002/diff/20001/test/mjsunit/get-caller-js-function.js#newcode8 test/mjsunit/get-caller-js-function.js:8

[v8-dev] Re: Fix another -Wsign-compare bug with GCC 4.9.2. (issue 1147923002 by paul.l...@imgtec.com)

2015-05-19 Thread svenpanne
lgtm https://codereview.chromium.org/1147923002/ -- -- 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: Remove 64-bit unclean line from heap size estimation (issue 1133243006 by erikco...@chromium.org)

2015-05-19 Thread svenpanne
https://codereview.chromium.org/1133243006/diff/20001/src/heap/heap.h File src/heap/heap.h (right): https://codereview.chromium.org/1133243006/diff/20001/src/heap/heap.h#newcode1084 src/heap/heap.h:1084: if (sizeof(int) < sizeof(int64_t) && total > kMaxInt) { On 2015/05/19 14:23:25, Jakob wrote:

[v8-dev] Re: Fix has_pending_exception logic in API's Array::CloneElementAt (issue 1138723003 by jkumme...@chromium.org)

2015-05-19 Thread svenpanne
LGTM. IMHO a regression test is not really necessary, it was just a dumb typo and there are probably 1 similar things in api.cc which would need such a test. But if you're bored, feel free... :-D https://codereview.chromium.org/1138723003/ -- -- v8-dev mailing list v8-dev@googlegroups.co

[v8-dev] Fixed various simulator-related space leaks. (issue 1132943007 by svenpa...@chromium.org)

2015-05-19 Thread svenpanne
Reviewers: Hannes Payer, Message: This should fix the problems encountered while trying to debug chromium:489006... Description: Fixed various simulator-related space leaks. Alas, this involved quite a bit of copy-n-paste between the architectures, but this is caused by the very convoluted rela

[v8-dev] Re: Use USE_SIMULATOR when appropriate. (issue 1142043003 by svenpa...@chromium.org)

2015-05-18 Thread svenpanne
Reviewers: Hannes Payer, Description: Use USE_SIMULATOR when appropriate. Please review this at https://codereview.chromium.org/1142043003/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+4, -27 lines): M src/isolate.h Index: src/isolate.h diff --git a/src/iso

[v8-dev] Re: Precise bitwise-xor derived result type for all int32 input types. (issue 1112123002 by dtc...@scieneer.com)

2015-05-18 Thread svenpanne
https://codereview.chromium.org/1112123002/diff/40001/test/unittests/compiler/typer-unittest.cc File test/unittests/compiler/typer-unittest.cc (right): https://codereview.chromium.org/1112123002/diff/40001/test/unittests/compiler/typer-unittest.cc#newcode307 test/unittests/compiler/typer-unittes

[v8-dev] Re: Precise shift right result type derivation for all int32 input ranges. (issue 1121573004 by dtc...@scieneer.com)

2015-05-18 Thread svenpanne
On 2015/05/13 07:43:03, dougc wrote: [...] Yes this sounds good and improved testing performance. Note the test is still slow - more testing has been added. The test takes around 5 seconds here. If you can give me a realistic time then testing can be scaled to fit? [...] 5 seconds are rou

[v8-dev] Re: Fix more -Werror=sign-compare bugs with GCC 4.9.2 (issue 1128043002 by wi...@igalia.com)

2015-05-18 Thread svenpanne
On 2015/05/11 07:56:18, wingo wrote: What do you want to do with these, Sven? I can always build locally with -Werror off, we can change the DCHECK_EQ somehow, or I can continue to submit these. As you like, let me know. [ Better late than never... ;-) ] The underlying problem here is the

[v8-dev] [test] make instruction sequence test emit cfgs more like the scheduler (issue 1116923002 by dcar...@chromium.org)

2015-04-30 Thread svenpanne
lgtm https://codereview.chromium.org/1116923002/ -- -- 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: [turbofan] Don't spread global flag checks all over the compiler code. (issue 1105363003 by bmeu...@chromium.org)

2015-04-30 Thread svenpanne
lgtm https://codereview.chromium.org/1105363003/ -- -- 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: [base] Drop obsolete Thread::YieldCPU. (issue 1116853002 by bmeu...@chromium.org)

2015-04-30 Thread svenpanne
lgtm https://codereview.chromium.org/1116853002/ -- -- 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: Switch to larger TOC on AIX for unitttests (issue 1115763003 by michael_daw...@ca.ibm.com)

2015-04-30 Thread svenpanne
lgtm https://codereview.chromium.org/1115763003/ -- -- 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: Fix AIX compiler warning (issue 1112883002 by michael_daw...@ca.ibm.com)

2015-04-30 Thread svenpanne
lgtm LGTM, but in future CLs please use "nullptr" instead of "NULL", the later is so... old-skool! ;-) https://codereview.chromium.org/1112883002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to

[v8-dev] Re: Detect simple tail calls (issue 1108563002 by svenpa...@chromium.org)

2015-04-29 Thread svenpanne
Test added, PTAL... https://codereview.chromium.org/1108563002/ -- -- 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 receivin

[v8-dev] Re: Detect simple tail calls (issue 1108563002 by svenpa...@chromium.org)

2015-04-29 Thread svenpanne
Feedback addressed, platform ports added, PTAL... https://codereview.chromium.org/1108563002/diff/60001/src/compiler/instruction-selector.cc File src/compiler/instruction-selector.cc (right): https://codereview.chromium.org/1108563002/diff/60001/src/compiler/instruction-selector.cc#newcode1046

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

2015-04-29 Thread svenpanne
On 2015/04/29 09:29:36, Erik Corry wrote: If you cast the pointer to unintptr_t then the subsequent downcast to unsigned (not int) will be well defined, not implementation defined. It won't, in practice, make any difference to anything, because none of the compilers we care about define thi

[v8-dev] Re: Calculate blocks needing a frame and frame (de)construction sites. (issue 1053123006 by svenpa...@chromium.org)

2015-04-28 Thread svenpanne
PTAL, as discussed offline: Let's land this first and add the spill marking phase in the register allocator separately. https://codereview.chromium.org/1053123006/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you a

[v8-dev] Re: Add HArrayBufferNotNeutered instruction (issue 1108313003 by joc...@chromium.org)

2015-04-28 Thread svenpanne
Late DBC... https://codereview.chromium.org/1108313003/diff/60001/src/x64/lithium-codegen-x64.cc File src/x64/lithium-codegen-x64.cc (right): https://codereview.chromium.org/1108313003/diff/60001/src/x64/lithium-codegen-x64.cc#newcode5174 src/x64/lithium-codegen-x64.cc:5174: DeoptimizeIf(not_ze

[v8-dev] Detect simple tail calls (issue 1108563002 by svenpa...@chromium.org)

2015-04-28 Thread svenpanne
Reviewers: Benedikt Meurer, Message: Currently x64 port only and no test, just to get an initial round of review comments. Description: Detect simple tail calls This CL contains the first steps towards tail call optimization: * Structurally detect tail calls during instruction selection,

[v8-dev] Re: [turbofan] Reduce duplicated code in PipelineData. (issue 1103193002 by tit...@chromium.org)

2015-04-28 Thread svenpanne
On 2015/04/28 07:28:15, titzer wrote: On 2015/04/28 06:00:13, Sven Panne wrote: > NOT LGTM. Funny multi-stage initialization of objects is an anti-pattern, the > right way to do handle the case at hand would be C++11's brace-or-equal > initializers (see https://codereview.chromium.org/9139930

[v8-dev] Re: [clang] Use -Wshorten-64-to-32 to enable warnings about 64bit to 32bit truncations. (issue 1111733002 by bmeu...@chromium.org)

2015-04-27 Thread svenpanne
lgtm https://codereview.chromium.org/733002/ -- -- 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: [turbofan] Reduce duplicated code in PipelineData. (issue 1103193002 by tit...@chromium.org)

2015-04-27 Thread svenpanne
NOT LGTM. Funny multi-stage initialization of objects is an anti-pattern, the right way to do handle the case at hand would be C++11's brace-or-equal initializers (see https://codereview.chromium.org/913993004/#ps20001). Alas, the ARM toolchain has some bugs, at least the last time I tried, so

[v8-dev] [turbofan] remove hint aliasing (issue 1103533002 by dcar...@chromium.org)

2015-04-27 Thread svenpanne
LGTM (rubber-stamped :-} ) https://codereview.chromium.org/1103533002/ -- -- 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 r

[v8-dev] Re: [turbofan] Add language mode to JSCallFunction operator. (issue 1107883002 by bmeu...@chromium.org)

2015-04-27 Thread svenpanne
lgtm https://codereview.chromium.org/1107883002/ -- -- 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-26 Thread svenpanne
DBC 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 src/heap/identity-map.h:68: return static_cast((raw_address >> 11) ^ raw_address); On 2015/04/2

[v8-dev] Re: Fix -Wsign-compare bugs with GCC 4.9.2 (issue 1105653002 by wi...@igalia.com)

2015-04-23 Thread svenpanne
On 2015/04/23 14:11:52, wingo wrote: No idea why these checks are causing warnings and the above "if (value==0) {}" check isn't, but so it is. [...] The DCHECK_FOO macros are totally fragile because they highly depend on the complex interaction between integral promotion, candidate selection

[v8-dev] Re: Fix -Wsign-compare bugs with GCC 4.9.2 (issue 1105653002 by wi...@igalia.com)

2015-04-23 Thread svenpanne
lgtm https://codereview.chromium.org/1105653002/ -- -- 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] [turbofan] make LifetimePostion comparable (issue 1087133004 by dcar...@chromium.org)

2015-04-23 Thread svenpanne
lgtm https://codereview.chromium.org/1087133004/ -- -- 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: [turbofan] Introduce explicit JSCreateLiteral[Array|Object]. (issue 1104453006 by mstarzin...@chromium.org)

2015-04-23 Thread svenpanne
LGTM. Bonus points for trimming the #includes back. :-) https://codereview.chromium.org/1104453006/ -- -- 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 unsubscri

[v8-dev] Simplified 'return' handling in the instruction selector. (issue 1090393003 by svenpa...@chromium.org)

2015-04-23 Thread svenpanne
Reviewers: dcarney, Description: Simplified 'return' handling in the instruction selector. The RawMachineAssembler now behaves like the rest of TurboFan, removing the need for some special cases. Please review this at https://codereview.chromium.org/1090393003/ Base URL: https://chromium.googl

[v8-dev] [turbofan] make live ranges stateless (issue 1056063004 by dcar...@chromium.org)

2015-04-22 Thread svenpanne
lgtm https://codereview.chromium.org/1056063004/ -- -- 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] Add an --omit-quit flag to d8 for Emscripten's sake. (issue 1101683002 by svenpa...@chromium.org)

2015-04-22 Thread svenpanne
st/mjsunit/mjsunit.status diff --git a/test/mjsunit/mjsunit.status b/test/mjsunit/mjsunit.status index 997fdbaa486c3dac60e645071db4bb5ce80f7401..265e8dfb88470d9bd70a126374a8fbd212f51181 100644 --- a/test/mjsunit/mjsunit.status +++ b/test/mjsunit/mjsunit.status @@ -396,9 +396,6 @@ 'big-array-literal': [SKIP], 'big-o

[v8-dev] [turbofan] split all functions off of LinearScanAllocator which are unrelated to LinearScan (issue 1100713003 by dcar...@chromium.org)

2015-04-21 Thread svenpanne
lgtm https://codereview.chromium.org/1100713003/ -- -- 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] Removed src/{isolate,property-details,utils}-inl.h (issue 1051393003 by svenpa...@chromium.org)

2015-04-21 Thread svenpanne
Reviewers: dcarney, Description: Removed src/{isolate,property-details,utils}-inl.h Baby steps towards saner #includes... Please review this at https://codereview.chromium.org/1051393003/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+76, -151 lines): M BUILD.

[v8-dev] Re: Remove kind field from StackHandler. (issue 997213003 by mstarzin...@chromium.org)

2015-04-21 Thread svenpanne
On 2015/04/21 01:40:22, rmacnak wrote: On 2015/03/18 10:19:27, I haz the power (commit-bot) wrote: > Patchset 2 (id:??) landed as > https://crrev.com/15f8213809a57c2a163b500a732c9ffe5160a41a > Cr-Commit-Position: refs/heads/master@{#27263} This change is responsible for a 70% drop in the Parser

[v8-dev] Re: [strong] Disallow implicit casts in subtraction (issue 1092353002 by conr...@chromium.org)

2015-04-21 Thread svenpanne
Tiny DBC... https://codereview.chromium.org/1092353002/diff/40001/src/code-stubs.h File src/code-stubs.h (right): https://codereview.chromium.org/1092353002/diff/40001/src/code-stubs.h#newcode1251 src/code-stubs.h:1251: BinaryOpICStub(Isolate* isolate, Token::Value op, bool strong) Boolean para

[v8-dev] Re: Import Reversed adapter from Chromium and use it in v8. (issue 1098863003 by svenpa...@chromium.org)

2015-04-20 Thread svenpanne
Feedback addressed, landing... https://codereview.chromium.org/1098863003/diff/1/src/compiler/arm/instruction-selector-arm.cc File src/compiler/arm/instruction-selector-arm.cc (right): https://codereview.chromium.org/1098863003/diff/1/src/compiler/arm/instruction-selector-arm.cc#newcode1103 src

[v8-dev] Import Reversed adapter from Chromium and use it in v8. (issue 1098863003 by svenpa...@chromium.org)

2015-04-20 Thread svenpanne
Reviewers: Michael Starzinger, Description: Import Reversed adapter from Chromium and use it in v8. Please review this at https://codereview.chromium.org/1098863003/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+88, -48 lines): M BUILD.gn A src/base/adapters

[v8-dev] Calculate blocks needing a frame and frame (de)construction sites. (issue 1053123006 by svenpa...@chromium.org)

2015-04-17 Thread svenpanne
Reviewers: dcarney, Message: Just as a basis for discussions/initial feedback about the approach. We need to move this around a bit (into the register allocator), as discussed. Probably split off the adapters.h addition into a separate CL. Description: Calculate blocks needing a frame and fra

[v8-dev] Re: Fix DCHECK with unsigned int in zone.cc. (issue 1051213005 by yang...@chromium.org)

2015-04-17 Thread svenpanne
lgtm https://codereview.chromium.org/1051213005/ -- -- 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: Fix signed/unsigned compare in messages.cc (issue 1089363002 by yang...@chromium.org)

2015-04-16 Thread svenpanne
DBN (drive-by nit ;-) https://codereview.chromium.org/1089363002/diff/1/src/messages.cc File src/messages.cc (right): https://codereview.chromium.org/1089363002/diff/1/src/messages.cc#newcode188 src/messages.cc:188: unsigned int i = 0; Actually, this should be size_t... https://codereview.chro

[v8-dev] Re: Fix a few potential integer negation overflows (issue 1058533007 by jkumme...@chromium.org)

2015-04-15 Thread svenpanne
lgtm https://codereview.chromium.org/1058533007/ -- -- 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: Fix a few potential integer negation overflows (issue 1058533007 by jkumme...@chromium.org)

2015-04-15 Thread svenpanne
https://codereview.chromium.org/1058533007/diff/1/src/arm64/lithium-codegen-arm64.cc File src/arm64/lithium-codegen-arm64.cc (right): https://codereview.chromium.org/1058533007/diff/1/src/arm64/lithium-codegen-arm64.cc#newcode4319 src/arm64/lithium-codegen-arm64.cc:4319: DCHECK((right > -kMaxInt

[v8-dev] Re: Fix a few potential integer negation overflows (issue 1058533007 by jkumme...@chromium.org)

2015-04-15 Thread svenpanne
https://codereview.chromium.org/1058533007/diff/1/src/arm64/lithium-codegen-arm64.cc File src/arm64/lithium-codegen-arm64.cc (right): https://codereview.chromium.org/1058533007/diff/1/src/arm64/lithium-codegen-arm64.cc#newcode4319 src/arm64/lithium-codegen-arm64.cc:4319: DCHECK((right > -kMaxInt

[v8-dev] Added Donald Stence to PPC owners. (issue 1065443004 by svenpa...@chromium.org)

2015-04-14 Thread svenpanne
Reviewers: Benedikt Meurer, Description: Added Donald Stence to PPC owners. Please review this at https://codereview.chromium.org/1065443004/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+4, -0 lines): M src/compiler/ppc/OWNERS M src/ic/ppc/OWNERS M src/pp

[v8-dev] Re: [perf] narrow improvements to ObjectToString (issue 1063703005 by caitpotte...@gmail.com)

2015-04-14 Thread svenpanne
DBC https://codereview.chromium.org/1063703005/diff/1/src/v8natives.js File src/v8natives.js (right): https://codereview.chromium.org/1063703005/diff/1/src/v8natives.js#newcode234 src/v8natives.js:234: if (%_Likely(harmony_tostring)) { Just a small warning about %_Likely/%_Unlikely support:

[v8-dev] Re: [turbofan] Clean up cached nodes in JSGraph. (issue 1080023002 by tit...@chromium.org)

2015-04-13 Thread svenpanne
DBC, couldn't resist. :-D https://codereview.chromium.org/1080023002/diff/20001/src/compiler/js-graph.h File src/compiler/js-graph.h (right): https://codereview.chromium.org/1080023002/diff/20001/src/compiler/js-graph.h#newcode34 src/compiler/js-graph.h:34: for (size_t i = 0; i < kNumCachedNode

[v8-dev] Re: Fix Math.log10 implementation for 1 - Number.EPSILON. (issue 1084853002 by yang...@chromium.org)

2015-04-13 Thread svenpanne
lgtm https://codereview.chromium.org/1084853002/ -- -- 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] fix variable shadowing (issue 1087533002 by dcar...@chromium.org)

2015-04-13 Thread svenpanne
lgtm https://codereview.chromium.org/1087533002/ -- -- 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] [turbofan] remove register operand cache (issue 1085623002 by dcar...@chromium.org)

2015-04-13 Thread svenpanne
lgtm https://codereview.chromium.org/1085623002/ -- -- 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: Don't #define snprintf in VS2015 - it's illegal and unneeded. (issue 1078453002 by brucedaw...@chromium.org)

2015-04-09 Thread svenpanne
lgtm https://codereview.chromium.org/1078453002/ -- -- 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: Guarantee that the return value of CompareICStub is a Smi (issue 1070723002 by svenpa...@chromium.org)

2015-04-09 Thread svenpanne
Reviewers: Benedikt Meurer, https://codereview.chromium.org/1070723002/diff/20001/src/x64/code-stubs-x64.cc File src/x64/code-stubs-x64.cc (right): https://codereview.chromium.org/1070723002/diff/20001/src/x64/code-stubs-x64.cc#newcode1543 src/x64/code-stubs-x64.cc:1543: __ sarp(rdx, Immediate(

[v8-dev] Re: Remove comparison operator and helper function from AstRawString interface (issue 1069423003 by ad...@chromium.org)

2015-04-09 Thread svenpanne
LGTM, too. IIRC, my change was only shifting around things a bit to get rid of the Isolate*. https://codereview.chromium.org/1069423003/ -- -- 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 Goog

[v8-dev] Re: [turbofan] Materialize JSFunction from frame if possible. (issue 1072743002 by bmeu...@chromium.org)

2015-04-09 Thread svenpanne
lgtm https://codereview.chromium.org/1072743002/ -- -- 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: [turbofan] Add new Float32Abs and Float64Abs operators. (issue 1066393002 by bmeu...@chromium.org)

2015-04-08 Thread svenpanne
LGTM with a nit https://codereview.chromium.org/1066393002/diff/60001/src/compiler/machine-operator.h File src/compiler/machine-operator.h (right): https://codereview.chromium.org/1066393002/diff/60001/src/compiler/machine-operator.h#newcode202 src/compiler/machine-operator.h:202: // Floating p

[v8-dev] [TurboFan] Fixed handling of CallIC return type. (issue 1067193004 by svenpa...@chromium.org)

2015-04-08 Thread svenpanne
Reviewers: Michael Starzinger, Description: [TurboFan] Fixed handling of CallIC return type. Although all this code might be moved around later, it's a good idea to unhackify it now. :-) Please review this at https://codereview.chromium.org/1067193004/ Base URL: https://chromium.googlesource.c

[v8-dev] Re: [arm] Use position independent table switches. (issue 1069633002 by bmeu...@chromium.org)

2015-04-07 Thread svenpanne
lgtm https://codereview.chromium.org/1069633002/ -- -- 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: [intrinsics] simplify and inline %_IsConstructor() (issue 1052743002 by caitpotte...@gmail.com)

2015-04-07 Thread svenpanne
On 2015/04/07 20:59:51, caitp wrote: On 2015/04/07 20:59:28, caitp wrote: > How about CallRuntime vs CallJSRuntime? (since I aded the EmitLoadJSRuntime and > EmitCallJSRuntime bits un full-codegen, the name seems to make sense) But, that's sort of out of scope for this CL I think =) Yep,

[v8-dev] Re: [intrinsics] simplify and inline %_IsConstructor() (issue 1052743002 by caitpotte...@gmail.com)

2015-04-07 Thread svenpanne
On 2015/04/07 13:15:03, caitp wrote: On 2015/04/07 13:14:21, caitp wrote: [...] > In ParseV8Intrinsics(), `Runtime::Function* function = > Runtime::FunctionForName(name->string());` will evaluate to nullptr. If the > identifier starts with an underscore, a "not_defined" error is reported. > Ot

  1   2   3   4   5   6   7   8   9   10   >