[v8-dev] Postpone interrupts while dipatching debugger events to listeners (issue 1321263002 by yu...@chromium.org)

2015-08-31 Thread yurys
Reviewers: kozyatinskiy, Yang, Description: Postpone interrupts while dipatching debugger events to listeners The interrupts are already postponed in message handlers [1]. This CL aligns debug event listener (the mechanism that is actually used in Chrome DevTools) implementation with that.

[v8-dev] Re: Postpone interrupts while dipatching debugger events to listeners (issue 1321263002 by yu...@chromium.org)

2015-08-31 Thread yurys
Yang, please take a look. In next CL I'm going to extract common code from OnBeforeCompile/OnAfrerCompile/OnCompileError. There is too much duplication at the moment. https://codereview.chromium.org/1321263002/ -- -- v8-dev mailing list v8-dev@googlegroups.com

[v8-dev] Extract common debugger code for processing compile events (issue 1316213005 by yu...@chromium.org)

2015-08-31 Thread yurys
Reviewers: , https://codereview.chromium.org/1316213005/diff/1/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/1316213005/diff/1/src/debug/debug.cc#newcode1978 src/debug/debug.cc:1978: if (in_nested_debug_scope) { It is unfortunate that we cannot simply call

[v8-dev] Re: Extract common debugger code for processing compile events (issue 1316213005 by yu...@chromium.org)

2015-08-31 Thread yurys
https://codereview.chromium.org/1316213005/diff/1/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/1316213005/diff/1/src/debug/debug.cc#newcode1978 src/debug/debug.cc:1978: if (in_nested_debug_scope) { It is unfortunate that we cannot simply call

[v8-dev] Re: Fix CPU profiler deadlock on Windows + AMD CPU. (issue 1304873011 by a...@chromium.org)

2015-08-31 Thread yurys
lgtm https://codereview.chromium.org/1304873011/ -- -- 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: [V8] Report JSON parser script to DevTools (issue 1308123006 by kozyatins...@chromium.org)

2015-08-27 Thread yurys
lgtm https://codereview.chromium.org/1308123006/ -- -- 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: [V8] Report JSON parser script to DevTools (issue 1308123006 by kozyatins...@chromium.org)

2015-08-26 Thread yurys
https://codereview.chromium.org/1308123006/diff/1/src/json-parser.h File src/json-parser.h (right): https://codereview.chromium.org/1308123006/diff/1/src/json-parser.h#newcode249 src/json-parser.h:249: isolate()-debug()-OnAfterCompile(script); Can you add a test for this please?

[v8-dev] Remove RestartFrame from live edit API (issue 1247363002 by yu...@chromium.org)

2015-07-22 Thread yurys
Reviewers: dgozman, Yang, Description: Remove RestartFrame from live edit API There is already non-throwing version FrameMirror.restart and RestartFrame in the livedit-debugger.js just adds a throwing wrapper around it. Chromium side was fixed in https://codereview.chromium.org/1249013002/

[v8-dev] Add convenience method for converting v8::PersistentBase to v8::Local (issue 1237603003 by yu...@chromium.org)

2015-07-13 Thread yurys
Reviewers: jochen, Description: Add convenience method for converting v8::PersistentBase to v8::Local The CL addes convenienve method that allows to write code like the following v8::Localv8::Object local = v8::Localv8::Object::New(global, isolate); in a more concise way: v8::Localv8::Object

[v8-dev] Re: Implement tracing interface for v8 (issue 988893003 by fmea...@chromium.org)

2015-07-06 Thread yurys
+caseq https://codereview.chromium.org/988893003/ -- -- 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: Prepare profiler test for try-catch being optimizable. (issue 1213113007 by mstarzin...@chromium.org)

2015-07-02 Thread yurys
LGTM. Thanks for keeping us posted and good to hear that try-catch are going to be optimizable. https://codereview.chromium.org/1213113007/ -- -- 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

[v8-dev] Re: [V8] Fixed infinite loop in Debug::PrepareStep (issue 1182703003 by kozyatins...@chromium.org)

2015-06-16 Thread yurys
lgtm https://codereview.chromium.org/1182703003/diff/1/test/cctest/test-debug.cc File test/cctest/test-debug.cc (right): https://codereview.chromium.org/1182703003/diff/1/test/cctest/test-debug.cc#newcode3839 test/cctest/test-debug.cc:3839: Function.call.apply(bar); Can you add one more

[v8-dev] Re: Remove obsolete TakeHeapSnapshot method from API (issue 997583004 by yu...@chromium.org)

2015-06-15 Thread yurys
On 2015/06/15 11:44:15, ulan wrote: On 2015/03/16 09:49:35, commit-bot: I haz the power wrote: Patchset 1 (id:??) landed as https://crrev.com/f92c8a36709efb1514846b3bb672c40e4fb4c672 Cr-Commit-Position: refs/heads/master@{#27208} When removing deprecated functions in future, please add in

[v8-dev] Re: Do not clear stepping after DebugEvaluate. (issue 1129363003 by yang...@chromium.org)

2015-05-18 Thread yurys
lgtm https://codereview.chromium.org/1129363003/ -- -- 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: Debugger: preserve stepping state after evaluating breakpoint condition. (issue 1132643004 by yang...@chromium.org)

2015-05-15 Thread yurys
https://codereview.chromium.org/1132643004/diff/1/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/1132643004/diff/1/src/debug.cc#newcode903 src/debug.cc:903: PreserveDebugState state(this); I wonder how evaluating breakpoint condition can change the stepping state. The

[v8-dev] Re: Debugger: preserve stepping state after evaluating breakpoint condition. (issue 1132643004 by yang...@chromium.org)

2015-05-15 Thread yurys
Well, I think if there is e.g. debugger; statement in the condition expression we will stop above on the stack and may well adjust debugger state. Restoring it completely may be confusing. https://codereview.chromium.org/1132643004/ -- -- v8-dev mailing list v8-dev@googlegroups.com

[v8-dev] Re: Debugger: preserve stepping state after evaluating breakpoint condition. (issue 1132643004 by yang...@chromium.org)

2015-05-15 Thread yurys
On 2015/05/15 22:06:18, Yang wrote: On 2015/05/15 22:04:42, yurys_slow wrote: https://codereview.chromium.org/1132643004/diff/1/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/1132643004/diff/1/src/debug.cc#newcode903 src/debug.cc:903: PreserveDebugState

[v8-dev] Re: Provide accessor for object internal properties that doesn't require debugger to be active (issue 1126103006 by yu...@chromium.org)

2015-05-12 Thread yurys
@yangguo, friendly ping? https://codereview.chromium.org/1126103006/ -- -- 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: Don't create debug context if debug listener is not set (issue 1136733002 by yu...@chromium.org)

2015-05-12 Thread yurys
Reviewers: haraken, Yang, kozyatinskiy, https://codereview.chromium.org/1136733002/diff/1/test/mjsunit/regress/regress-3960.js File test/mjsunit/regress/regress-3960.js (right): https://codereview.chromium.org/1136733002/diff/1/test/mjsunit/regress/regress-3960.js#newcode5

[v8-dev] Re: Provide accessor for object internal properties that doesn't require debugger to be active (issue 1126103006 by yu...@chromium.org)

2015-05-12 Thread yurys
Blink-side change if you're curious. https://codereview.chromium.org/1126103006/ -- -- 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: Provide accessor for object internal properties that doesn't require debugger to be active (issue 1126103006 by yu...@chromium.org)

2015-05-12 Thread yurys
Blink-side change if you're curious: https://codereview.chromium.org/1141553003/ https://codereview.chromium.org/1126103006/ -- -- 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: Provide accessor for object internal properties that doesn't require debugger to be active (issue 1126103006 by yu...@chromium.org)

2015-05-12 Thread yurys
https://codereview.chromium.org/1126103006/diff/20001/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): https://codereview.chromium.org/1126103006/diff/20001/src/runtime/runtime-debug.cc#newcode248 src/runtime/runtime-debug.cc:248: if

[v8-dev] Re: Provide accessor for object internal properties that doesn't require debugger to be active (issue 1126103006 by yu...@chromium.org)

2015-05-12 Thread yurys
https://codereview.chromium.org/1126103006/diff/1/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): https://codereview.chromium.org/1126103006/diff/1/src/runtime/runtime-debug.cc#newcode223 src/runtime/runtime-debug.cc:223: result-set(0,

[v8-dev] Provide accessor for object internal properties that doesn't require debugger to be active (issue 1134193002 by yu...@chromium.org)

2015-05-12 Thread yurys
Reviewers: Yang, Message: This is exact copy of https://crrev.com/bdeb0de88c8cf5f2c78f261b45314138f525110d with fix for gcmole applied in PS#2 Description: Provide accessor for object internal properties that doesn't require debugger to be active Some of the DevTools' clients need to

[v8-dev] Provide accessor for object internal properties that doesn't require debugger to be active (issue 1126103006 by yu...@chromium.org)

2015-05-08 Thread yurys
Reviewers: Yang, pfeldman_ooo_may11, kozyatinskiy, Description: Provide accessor for object internal properties that doesn't require debugger to be active Some of the DevTools' clients need to inspect JS objects without enabling debugger. This CL allows to inspect object's internal

[v8-dev] Re: Provide accessor for object internal properties that doesn't require debugger to be active (issue 1126103006 by yu...@chromium.org)

2015-05-08 Thread yurys
Yang, please take a look https://codereview.chromium.org/1126103006/ -- -- 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: Use CLOCK_REALTIME_COARSE when available. (issue 1125003002 by b...@strongloop.com)

2015-05-07 Thread yurys
Yeah, this code doesn't work well with chrome sandbox. I see the following errors in the console and the renderer crashes on start. ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0229

[v8-dev] Re: Use CLOCK_REALTIME_COARSE when available. (issue 1125003002 by b...@strongloop.com)

2015-05-07 Thread yurys
On 2015/05/07 12:54:34, noordhuis wrote: On 2015/05/07 10:17:20, yurys wrote: Yeah, this code doesn't work well with chrome sandbox. I see the following errors in the console and the renderer crashes on start. ../../sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING

[v8-dev] Re: Make CPU profiler do not hog 100% of CPU. (issue 1118533003 by a...@chromium.org)

2015-04-30 Thread yurys
https://codereview.chromium.org/1118533003/diff/20001/src/cpu-profiler.cc File src/cpu-profiler.cc (right): https://codereview.chromium.org/1118533003/diff/20001/src/cpu-profiler.cc#newcode140 src/cpu-profiler.cc:140: #if V8_OS_WIN On 2015/04/30 05:06:01, Benedikt Meurer wrote: I don't really

[v8-dev] Re: Make CPU profiler do not hog 100% of CPU. (issue 1118533003 by a...@chromium.org)

2015-04-30 Thread yurys
: #if V8_OS_WIN On 2015/04/30 08:10:02, yurys wrote: On 2015/04/30 05:06:01, Benedikt Meurer wrote: I don't really like this special casing for Windows here. Is there no alternative to Sleep on Windows which would work for our purpose? Would Multimedia Timers work here? They have 1ms resolution at best

[v8-dev] Re: [V8] Fix line number for eos error (issue 1100993003 by kozyatins...@chromium.org)

2015-04-29 Thread yurys
lgtm, looks like this is the simplest way to get a meaningful location location for the errors occurred at EOS. https://codereview.chromium.org/1100993003/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are

[v8-dev] Re: [V8] Fix line number for eos error (issue 1100993003 by kozyatins...@chromium.org)

2015-04-27 Thread yurys
https://codereview.chromium.org/1100993003/diff/1/src/messages.js File src/messages.js (right): https://codereview.chromium.org/1100993003/diff/1/src/messages.js#newcode404 src/messages.js:404: if (position - 1 line_ends[upper]) { I'd rather v8 highlighted position of the last token before EOS

[v8-dev] Re: Preprocess structured stack trace on GC to get rid of code reference. (issue 1103843002 by yang...@chromium.org)

2015-04-27 Thread yurys
Looks like heap profiler needs update to treat references from weak_stack_trace_list (or probabli WeakFixedArray in general) as weak. https://codereview.chromium.org/1103843002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this

[v8-dev] Re: CpuProfiler: public API for deopt info in cpu profiler. (issue 1045753002 by loi...@chromium.org)

2015-03-31 Thread yurys
: On 2015/03/30 20:33:15, yurys wrote: unsigned int - unsigned I think that size_t is the right type here, isn't it? It might be the case that we have wrong types internally, but at least we should get things right on the external API. Agree, size_t would be even better. https

[v8-dev] Re: CpuProfiler: public API for deopt info in cpu profiler. (issue 1045753002 by loi...@chromium.org)

2015-03-30 Thread yurys
https://codereview.chromium.org/1045753002/diff/70001/include/v8-profiler.h File include/v8-profiler.h (right): https://codereview.chromium.org/1045753002/diff/70001/include/v8-profiler.h#newcode25 include/v8-profiler.h:25: unsigned int position; unsigned

[v8-dev] Re: CpuProfiler: public API for deopt info in cpu profiler. (issue 1045753002 by loi...@chromium.org)

2015-03-30 Thread yurys
https://codereview.chromium.org/1045753002/diff/90001/include/v8-profiler.h File include/v8-profiler.h (right): https://codereview.chromium.org/1045753002/diff/90001/include/v8-profiler.h#newcode25 include/v8-profiler.h:25: unsigned int position; unsigned int - unsigned

[v8-dev] Re: Make sure debugger is ready for breakpoins when we process 'debugger' statement. (issue 1032353002 by dslo...@chromium.org)

2015-03-27 Thread yurys
: !isolate-stack_guard()-CheckDebugBreak(); On 2015/03/26 19:44:48, yurys wrote: RequestDebugBreak can be called on another thread. It means that in the beginning of this method CheckDebugBreak could be false while here it is already true and is_debugger_statement will be false even though this method

[v8-dev] Re: Make sure debugger is ready for breakpoins when we process 'debugger' statement. (issue 1032353002 by dslo...@chromium.org)

2015-03-27 Thread yurys
On 2015/03/27 08:50:33, Dmitry Lomov (chromium) wrote: On 2015/03/26 19:44:49, yurys wrote: https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): https://codereview.chromium.org/1032353002/diff/20001/src/runtime

[v8-dev] Re: Make sure debugger is ready for breakpoins when we process 'debugger' statement. (issue 1032353002 by dslo...@chromium.org)

2015-03-27 Thread yurys
LGTM. Thanks for explaining this, Dmitry! https://codereview.chromium.org/1032353002/ -- -- 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

[v8-dev] Re: Make sure debugger is ready for breakpoins when we process 'debugger' statement. (issue 1032353002 by dslo...@chromium.org)

2015-03-26 Thread yurys
https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc#newcode24 src/runtime/runtime-debug.cc:24: !isolate-stack_guard()-CheckDebugBreak();

[v8-dev] Re: Debugger: remove debug command API. (issue 1036863002 by yang...@chromium.org)

2015-03-25 Thread yurys
lgtm https://codereview.chromium.org/1036863002/ -- -- 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] Remove v8::Isolate::ClearInterrupt (issue 1032623007 by yu...@chromium.org)

2015-03-25 Thread yurys
Reviewers: alph, jochen, Description: Remove v8::Isolate::ClearInterrupt The method was deprecated a while ago: https://crrev.com/87e4bba31eabfd3b12e42b5886dc9da08d2daf13 LOG=Y BUG=None Please review this at https://codereview.chromium.org/1032623007/ Base URL:

[v8-dev] Re: Remove v8::Isolate::ClearInterrupt (issue 1032623007 by yu...@chromium.org)

2015-03-25 Thread yurys
@jochen: please do OWNERS review https://codereview.chromium.org/1032623007/ -- -- 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

[v8-dev] Re: Remove v8::Isolate::ClearInterrupt (issue 1032623007 by yu...@chromium.org)

2015-03-25 Thread yurys
On 2015/03/25 14:27:01, Yang wrote: On 2015/03/25 14:24:20, yurys wrote: @jochen: please do OWNERS review drive-by lgtm. thanks! https://codereview.chromium.org/1032623007/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received

[v8-dev] Re: Return timestamp of the last recorded interval to the caller of HeapProfiler::GetHeapStats (issue 1037803002 by yu...@chromium.org)

2015-03-25 Thread yurys
I'm going to wait with landing Blink code that uses the new API until Chrome is branched to avoid possible problems with reverting bad V8 rolls. https://codereview.chromium.org/1037803002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You

[v8-dev] Return timestamp of the last recorded interval to the caller of HeapProfiler::GetHeapStats (issue 1037803002 by yu...@chromium.org)

2015-03-25 Thread yurys
Reviewers: alph, loislo, Yang, Description: Return timestamp of the last recorded interval to the caller of HeapProfiler::GetHeapStats Before this patch the embedder could assign timestamp to the last interval after calling GetHeapStats. This would be slightly different from the timstamps

[v8-dev] Re: Save heap object tracking data in heap snapshot (issue 1019813004 by yu...@chromium.org)

2015-03-20 Thread yurys
https://codereview.chromium.org/1019813004/diff/20001/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/1019813004/diff/20001/src/heap-snapshot-generator.cc#newcode2949 src/heap-snapshot-generator.cc:2949: JSON_S(timstamp_ms) , On

[v8-dev] Re: Save heap object tracking data in heap snapshot (issue 1019813004 by yu...@chromium.org)

2015-03-20 Thread yurys
On 2015/03/20 10:24:59, Yang wrote: On 2015/03/20 08:30:41, yurys wrote: https://codereview.chromium.org/1019813004/diff/20001/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/1019813004/diff/20001/src/heap-snapshot-generator.cc

[v8-dev] Re: Save heap object tracking data in heap snapshot (issue 1019813004 by yu...@chromium.org)

2015-03-19 Thread yurys
Yang: please do OWNERS review. https://codereview.chromium.org/1019813004/ -- -- 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

[v8-dev] Save heap object tracking data in heap snapshot (issue 1019813004 by yu...@chromium.org)

2015-03-19 Thread yurys
Reviewers: alph, loislo, Description: Save heap object tracking data in heap snapshot Every time embedder calls v8::HeapProfiler::GetHeapStats we store next unuassigned heap object id and timestamp of the request. This patch serializes all that data into heap snapshot so that embedder can

[v8-dev] Re: Save heap object tracking data in heap snapshot (issue 1019813004 by yu...@chromium.org)

2015-03-19 Thread yurys
https://codereview.chromium.org/1019813004/diff/1/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/1019813004/diff/1/src/heap-snapshot-generator.cc#newcode3080 src/heap-snapshot-generator.cc:3080:

[v8-dev] Re: Save heap object tracking data in heap snapshot (issue 1019813004 by yu...@chromium.org)

2015-03-19 Thread yurys
Yang: please do OWNERS review. https://codereview.chromium.org/1019813004/ -- -- 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

[v8-dev] Introduce explicit constant for per Context debug data set by embedder (issue 1020453002 by yu...@chromium.org)

2015-03-18 Thread yurys
Reviewers: jochen (slow), Yang, Description: Introduce explicit constant for per Context debug data set by embedder It's value is hardwired in gin[1] and is referenced in Blink[2]. Since it is treated specially by v8 debugger it should be defined in v8 API and referenced in gin and blink..

[v8-dev] Re: Implement tracing interface for v8 (issue 988893003 by fmea...@chromium.org)

2015-03-18 Thread yurys
On 2015/03/17 11:07:00, nduca wrote: Hmm! I think this is actually an interesting use case to get right, if possible... I'm open to storing an isolate id or world id on every trace event that comes in from v8 or blink. For instance, we could add to base/debug/trace_event* a iid field on

[v8-dev] Provide method for getting Isolate by v8::Message (issue 1015643002 by yu...@chromium.org)

2015-03-17 Thread yurys
Reviewers: aandrey, dcarney, Yang, Description: Provide method for getting Isolate by v8::Message v8::Message::GetIsolate will allow to avoid v8::Isolate::GetCurrent calls in Blink message listeners. BUG=None LOG=Y Please review this at https://codereview.chromium.org/1015643002/ Base URL:

[v8-dev] Re: Provide method for getting Isolate by v8::Message (issue 1015643002 by yu...@chromium.org)

2015-03-17 Thread yurys
On 2015/03/17 09:16:02, dcarney wrote: On 2015/03/17 09:14:05, dcarney wrote: lgtm it would be preferred to pass the isolate in the messagecallback, would that be okay? if so, i'll prepare a cl to change the callback instead It would work either way, I don't have strong opinion on

[v8-dev] Re: Provide method for getting Isolate by v8::Message (issue 1015643002 by yu...@chromium.org)

2015-03-17 Thread yurys
On 2015/03/17 10:25:25, dcarney wrote: It would work either way, I don't have strong opinion on that. I'd rather incorporate error object passed as a separate parameter to MessageCallback into Message object and have MessageCallback accept single parameter. What's the advantage of

[v8-dev] Re: CpuProfiler: collect deopt pc offset for further usage in the inlined functions stack resolver. (issue 1013753007 by loi...@chromium.org)

2015-03-17 Thread yurys
lgtm https://codereview.chromium.org/1013753007/ -- -- 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: Provide method for getting Isolate by v8::Message (issue 1015643002 by yu...@chromium.org)

2015-03-17 Thread yurys
On 2015/03/17 10:31:01, dcarney wrote: On 2015/03/17 10:30:12, yurys wrote: On 2015/03/17 10:25:25, dcarney wrote: It would work either way, I don't have strong opinion on that. I'd rather incorporate error object passed as a separate parameter to MessageCallback into Message

[v8-dev] Re: CpuProfiler: replace FLAG_hydrogen_track_positions with is_tracking_positions method on Compilation… (issue 995183005 by loi...@chromium.org)

2015-03-16 Thread yurys
https://codereview.chromium.org/995183005/diff/1/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/995183005/diff/1/src/compiler.cc#newcode291 src/compiler.cc:291: if (FLAG_hydrogen_track_positions) { !script-source()-IsUndefined()

[v8-dev] Re: CpuProfiler: replace FLAG_hydrogen_track_positions with is_tracking_positions method on Compilation… (issue 995183005 by loi...@chromium.org)

2015-03-16 Thread yurys
lgtm https://codereview.chromium.org/995183005/ -- -- 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: CpuProfiler: Push inlining data forward to cpu profiler. (issue 1012633002 by loi...@chromium.org)

2015-03-16 Thread yurys
This patch seems to be doing too many things at once. Can you split it? https://codereview.chromium.org/1012633002/ -- -- 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

[v8-dev] Re: CpuProfiler: convert ListInlinedFunctionInfo into std::vectorInlinedFunctionInfo (issue 1011733002 by loi...@chromium.org)

2015-03-16 Thread yurys
lgtm https://codereview.chromium.org/1011733002/ -- -- 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: CpuProfiler: extract DeoptInfo fill in code into a static function. (issue 1011733005 by loi...@chromium.org)

2015-03-16 Thread yurys
lgtm https://codereview.chromium.org/1011733005/ -- -- 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: Beautify syntax error for unterminated argument list (issue 1002263004 by yu...@chromium.org)

2015-03-16 Thread yurys
https://codereview.chromium.org/1002263004/diff/20001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1002263004/diff/20001/src/preparser.h#newcode2320 src/preparser.h:2320: done = (peek() == Token::RPAREN); On 2015/03/16 07:24:33, Yang wrote: I think it's cleaner

[v8-dev] Beautify syntax error for unterminated argument list (issue 1002263004 by yu...@chromium.org)

2015-03-13 Thread yurys
Reviewers: Yang, jochen (slow), kozyatinskiy, Message: A couple of layout tests that currently expect Uncaught SyntaxError: Unexpected end of input output will likely need to be updated before landing this change. Description: Beautify syntax error for unterminated argument list

[v8-dev] Re: [V8] Use function.displayName in Error.stack (issue 919653002 by kozyatins...@chromium.org)

2015-03-13 Thread yurys
https://codereview.chromium.org/919653002/diff/160001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/919653002/diff/160001/src/objects.cc#newcode10334 src/objects.cc:10334: String* debug_name = NULL; You should avoid raw pointers in methods that may cause GC. In

[v8-dev] Re: Remove obsolete TakeHeapSnapshot method from API (issue 997583004 by yu...@chromium.org)

2015-03-13 Thread yurys
On 2015/03/13 13:45:29, yurys wrote: On 2015/03/13 11:41:37, Yang wrote: On 2015/03/13 11:35:29, I haz the power (commit-bot) wrote: Try jobs failed on following builders: v8_linux_chromium_gn_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders

[v8-dev] Re: Remove obsolete TakeHeapSnapshot method from API (issue 997583004 by yu...@chromium.org)

2015-03-13 Thread yurys
On 2015/03/13 11:41:37, Yang wrote: On 2015/03/13 11:35:29, I haz the power (commit-bot) wrote: Try jobs failed on following builders: v8_linux_chromium_gn_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_chromium_gn_rel/builds/2403) I think you

[v8-dev] Remove obsolete TakeHeapSnapshot method from API (issue 997583004 by yu...@chromium.org)

2015-03-12 Thread yurys
Reviewers: alph, loislo, Yang, Description: Remove obsolete TakeHeapSnapshot method from API BUG=chromium:465651 LOG=Y Please review this at https://codereview.chromium.org/997583004/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+1, -16 lines): M

[v8-dev] Remove uid and title from HeapSnapshot (issue 983833006 by yu...@chromium.org)

2015-03-10 Thread yurys
Reviewers: alph, dgozman, yangguo, Description: Remove uid and title from HeapSnapshot None of these fields is used in Blink. Embedder always can implement them using existing API. BUG=chromium:465651 Please review this at https://codereview.chromium.org/983833006/ Base URL:

[v8-dev] Re: Remove uid and title from HeapSnapshot (issue 983833006 by yu...@chromium.org)

2015-03-10 Thread yurys
wrote: On 2015/03/10 10:23:57, yurys wrote: On 2015/03/10 10:23:26, alph wrote: V8_DEPRECATED I will need to fix Blink side first. Please add a TODO. Done. https://codereview.chromium.org/983833006/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev

[v8-dev] Re: Remove deprecated CpuProfiler methods (issue 992193002 by yu...@chromium.org)

2015-03-10 Thread yurys
Yang or Sven, please take a look. https://codereview.chromium.org/992193002/ -- -- 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

[v8-dev] Re: Remove uid and title from HeapSnapshot (issue 983833006 by yu...@chromium.org)

2015-03-10 Thread yurys
Yang or Sven, please take a look. https://codereview.chromium.org/983833006/ -- -- 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

[v8-dev] Re: [V8] Use function.displayName in Error.stack (issue 919653002 by kozyatins...@chromium.org)

2015-03-10 Thread yurys
lgtm https://codereview.chromium.org/919653002/ -- -- 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] Remove deprecated CpuProfiler methods (issue 992193002 by yu...@chromium.org)

2015-03-10 Thread yurys
Reviewers: loislo, Yang, Description: Remove deprecated CpuProfiler methods BUG=None LOG=Y Please review this at https://codereview.chromium.org/992193002/ Base URL: https://chromium.googlesource.com/v8/v8.git@master Affected files (+0, -30 lines): M include/v8-profiler.h M src/api.cc

[v8-dev] Re: Remove uid and title from HeapSnapshot (issue 983833006 by yu...@chromium.org)

2015-03-10 Thread yurys
https://codereview.chromium.org/983833006/diff/20001/include/v8-profiler.h File include/v8-profiler.h (right): https://codereview.chromium.org/983833006/diff/20001/include/v8-profiler.h#newcode453 include/v8-profiler.h:453: const HeapSnapshot* TakeHeapSnapshot( On 2015/03/10 10:23:26, alph

[v8-dev] Re: Revert of CpuProfiler: enable tests except four failing tests. (issue 987553005 by loi...@chromium.org)

2015-03-06 Thread yurys
Can you provide more details on which tests are flaky for the purpose of documentation so that we don't need to search them next time? https://codereview.chromium.org/987553005/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this

[v8-dev] Re: [V8] Use function.displayName in Error.stack (issue 919653002 by kozyatins...@chromium.org)

2015-03-06 Thread yurys
https://codereview.chromium.org/919653002/diff/60001/src/messages.js File src/messages.js (right): https://codereview.chromium.org/919653002/diff/60001/src/messages.js#newcode837 src/messages.js:837: if (IS_STRING(name)) { Is it supposed to return in case of empty string?

[v8-dev] Re: [V8] Use Function.displayName for stack frames in v8::StackTrace (issue 917743002 by kozyatins...@chromium.org)

2015-03-05 Thread yurys
https://codereview.chromium.org/917743002/diff/20001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/917743002/diff/20001/src/isolate.cc#newcode557 src/isolate.cc:557: if (fun_name.is_null() || !fun_name-IsString()) Can it ever be null?

[v8-dev] Re: CpuProfiler: simplify test. (issue 978203002 by loi...@chromium.org)

2015-03-05 Thread yurys
lgtm, but would it be possible to first enable these tests? https://codereview.chromium.org/978203002/diff/1/test/cctest/test-cpu-profiler.cc File test/cctest/test-cpu-profiler.cc (right): https://codereview.chromium.org/978203002/diff/1/test/cctest/test-cpu-profiler.cc#newcode59

[v8-dev] Allow passing sourceMapUrl when compiling scripts (issue 983603003 by yu...@chromium.org)

2015-03-05 Thread yurys
Reviewers: kozyatinskiy, yangguo, pfeldman, Message: Yang, please take a look. Description: Allow passing sourceMapUrl when compiling scripts According to Source Map specification [1] source map url can be passed either as a magic comment at the end of script or as SourceMap http header. We

[v8-dev] Re: CpuProfiler: enable tests except four failing tests. (issue 976203003 by loi...@chromium.org)

2015-03-05 Thread yurys
lgtm provided the list of flaky tests is complete. https://codereview.chromium.org/976203003/diff/20001/test/cctest/test-cpu-profiler.cc File test/cctest/test-cpu-profiler.cc (right): https://codereview.chromium.org/976203003/diff/20001/test/cctest/test-cpu-profiler.cc#newcode1141

[v8-dev] Re: [V8] Use Function.displayName for stack frames in v8::StackTrace (issue 917743002 by kozyatins...@chromium.org)

2015-03-05 Thread yurys
lgtm https://codereview.chromium.org/917743002/ -- -- 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: CpuProfiler: replace raw position wit SourcePosition for DeoptReason (issue 959203002 by loi...@chromium.org)

2015-02-27 Thread yurys
lgtm https://codereview.chromium.org/959203002/ -- -- 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: CpuProfiler: do not calculate positions if it is not necessary (TryInline part). (issue 962593005 by loi...@chromium.org)

2015-02-27 Thread yurys
looks good, but someone more familiar with the code should review this. https://codereview.chromium.org/962593005/ -- -- 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.

[v8-dev] Re: CpuProfiler: replace raw position wit SourcePosition for DeoptReason (issue 959203002 by loi...@chromium.org)

2015-02-27 Thread yurys
https://codereview.chromium.org/959203002/diff/20001/src/assembler.cc File src/assembler.cc (right): https://codereview.chromium.org/959203002/diff/20001/src/assembler.cc#newcode1663 src/assembler.cc:1663: int raw_position = position.IsUnknown() ? 0 : position.raw(); Can we change

[v8-dev] Re: CpuProfiler: eliminate cpu-profiler dependency from heap-inl.h (issue 941973002 by loi...@chromium.org)

2015-02-20 Thread yurys
https://codereview.chromium.org/941973002/diff/20001/src/cpu-profiler.h File src/cpu-profiler.h (right): https://codereview.chromium.org/941973002/diff/20001/src/cpu-profiler.h#newcode243 src/cpu-profiler.h:243: virtual void SharedFunctionInfoMoveEvent(Address from, Address to) {} Can we remove

[v8-dev] Re: CpuProfiler: eliminate cpu-profiler dependency from heap-inl.h (issue 941973002 by loi...@chromium.org)

2015-02-20 Thread yurys
https://codereview.chromium.org/941973002/diff/11/src/profile-generator.cc File src/profile-generator.cc (right): https://codereview.chromium.org/941973002/diff/11/src/profile-generator.cc#newcode351 src/profile-generator.cc:351: function_ids_.Lookup(code_entry, code_entry-GetHash(),

[v8-dev] Re: CpuProfiler: eliminate cpu-profiler dependency from heap-inl.h (issue 941973002 by loi...@chromium.org)

2015-02-20 Thread yurys
Also please update issue's description as its main purpose is to make CallUid actually unique and eliminate SharedFunctionInfo motion events. https://codereview.chromium.org/941973002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received

[v8-dev] Re: CpuProfiler: move StringsStorage class to separate source and header files. (issue 945873002 by loi...@chromium.org)

2015-02-20 Thread yurys
lgtm, I believe we don't need StringStorage for CPU profiler and could eliminate its usages there. https://codereview.chromium.org/945873002/ -- -- 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: A few tests fails when I run them with --hydrogen-track-positions (issue 940593002 by loi...@chromium.org)

2015-02-19 Thread yurys
lgtm https://codereview.chromium.org/940593002/diff/1/test/cctest/test-cpu-profiler.cc File test/cctest/test-cpu-profiler.cc (right): https://codereview.chromium.org/940593002/diff/1/test/cctest/test-cpu-profiler.cc#newcode1789 test/cctest/test-cpu-profiler.cc:1789: v8::Localv8::Context env

[v8-dev] Replace custom implementation of ObjectProtoToString with call to builtin (issue 936033002 by yu...@chromium.org)

2015-02-18 Thread yurys
Reviewers: Dmitry Lomov (chromium), fqian, Message: @fqian: my understanding is that this change shouldn't regress Blink implementation of V8Window::toStringMethodCustom [1]. Please confirm that as you are the author of the FIXME comment for that code. [1]

[v8-dev] Re: Move identical code from platform specific assemblers to assembler.cc (issue 922153002 by loi...@chromium.org)

2015-02-12 Thread yurys
lgtm https://codereview.chromium.org/922153002/ -- -- 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: CPUProfiler: Push deopt reason further to ProfileNode. (issue 919953002 by loi...@chromium.org)

2015-02-12 Thread yurys
lgtm https://codereview.chromium.org/919953002/ -- -- 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: [V8] Use function.displayName in Error.stack (issue 919653002 by kozyatins...@chromium.org)

2015-02-12 Thread yurys
lgtm https://codereview.chromium.org/919653002/ -- -- 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: Propagate Deopt reason to cpu-profiler (issue 910773002 by loi...@chromium.org)

2015-02-10 Thread yurys
lgtm https://codereview.chromium.org/910773002/diff/120001/src/arm64/deoptimizer-arm64.cc File src/arm64/deoptimizer-arm64.cc (right): https://codereview.chromium.org/910773002/diff/120001/src/arm64/deoptimizer-arm64.cc#newcode135 src/arm64/deoptimizer-arm64.cc:135: __ Mov(x3,

[v8-dev] Re: Add WeakKeyMap to v8.h (issue 891473005 by yu...@chromium.org)

2015-02-05 Thread yurys
On 2015/02/04 19:15:42, dcarney wrote: On 2015/02/04 15:16:54, yurys wrote: The error looks weird to me. C4251 warning disabled in several build configurations [1], should we do the same for v8? Otherwise I would have to somehow instantiate v8::UniquePersistentv8::Object in v8.h and mark

[v8-dev] Add NativeWeakMap to v8.h (issue 900123003 by yu...@chromium.org)

2015-02-05 Thread yurys
Reviewers: jochen (slow), Michael Starzinger, rossberg, dcarney, Message: This patch is a reworked version of r26425. It was modified in accord with dcarney's comments. Instead of embedding UniquePersistent field NativeWeakMap has been turned into a heap object. This should vanish MSVS

[v8-dev] Add WeakKeyMap to v8.h (issue 891473005 by yu...@chromium.org)

2015-02-04 Thread yurys
Reviewers: jochen (slow), Michael Starzinger, rossberg, Message: This patch is slightly modified version of https://crrev.com/37d4c57630636f21e3add8d3d1c7c978ff5fc8e0 which was reverted due to component build failure. The differences are: 1) WeakMap has been renamed to WeakKeyMap to avoid

  1   2   3   4   5   6   7   8   9   10   >