-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Conversation
@tjfontaine can someone label this as "in progress" and "v8"? |
@refack added |
Can anyone recommend best practice implementation TCP/HTTP server to replace the DebugAgent? @trevnorris ? @bnoordhuis ? |
We have a HTTP server in node, right? :) |
@refack You can find my work in progress here. Feel free to run with it, I don't have time to work on it right now. Apropos Fedor's comment, there are a number of issues to consider:
|
Oh, another thing: the future of V8's debugger protocol is somewhat uncertain. Chrome doesn't use it and neither does anything else besides node.js (that I know of) so it might get scrapped at some point. @bmeck possibly knows more about that. |
@bnoordhuis I figured as much about not being able to dogfood the node HTTP server from /lib. |
Why not, we should support multi-context thing, right? Why can't we just spawn another thread and |
Yeah, but multi-context is not the same thing as multi-thread. Are you confident that node.js is thread-safe enough to make that work? Because I'm not. |
I am currently in discussions about the future of the protocol. Chrome does not use the old debugger protocol but directly interfaces with debug-debugger.js . For now we can use SendCommand and SetMessageHandler in v8-debug.h , spinning up a new thread is ideal. I have toyed with what @indutny says and it works enough but these are close to hello world examples in complexity. I would not change/update the protocol until discussions with chrome and ff devtools people complete. There are a lot of discussions going on in emails around that debugger review, feel free to move this discussion there |
IT WORKS! |
Not sure if I would recommend upgrading to 3.29.x, that's the current development branch. Did you happen to run the benchmarks? I'm curious if TurboFan in its current state has a positive or negative effect. |
I see this whole PR as work for 0.13, so let's go crazy. |
@bnoordhuis isn't TF still in development and disabled by default? |
In development: yes. Disabled: no, except on win64. Which raises the question... @refack is that a 32 or 64 bits executable? |
Yea I just sew #if V8_TURBOFAN_BACKEND && !(V8_OS_WIN && V8_TARGET_ARCH_X64)
#define V8_TURBOFAN_TARGET 1
#else
#define V8_TURBOFAN_TARGET 0
#endif I compiled for win64. So we only got the backend. Doing it again for win32, and linux64 |
Don't go to too much trouble; it's not hugely important, I'm mostly just curious. |
just recompiling, I'm just as curious as you are. |
Wow, some of the numbers are pretty insane. Thanks for posting that. |
Keep in mind that it will probably not be by the time everything else is fixed up for 0.12 release. |
@refack just a heads up for you. I'm going to rewrite debugger agent in libuv+http-parser, should be quite easy to do. |
Go for it. the API is very simple |
Yes, this is what motivates me :) Sorry for redoing your work. |
fwiw i'd really like v8 v3.29.70+ to get into node v0.12 because generators are unflagged |
|
@indutny do you have energy to do your magic on this batch? |
Hopefully, yes. |
I meant you hawk-eye review ;) |
Looks like 3.30 is out: |
@YuriSolovyov ok, this means that we could probably try sticking to 3.29 then. Anyway, here is my progress on this so far: indutny/node@joyent:v0.12...feature/update-v8 |
Signed-off-by: Refael Ackermann <refack@gmail.com>
this is in order to give a better development experience in MSVS eventually should land in v8 trunk
- Getting it to compile and be sane - Removed references to v8::Debug*
- activated "treat warnings as errors"
- based on discarded v8 code
Closed in a favor of #8476 |
having hard time compiling this on OS X (clang-600.0.51). Get |
Why closed it it's targeted at master? |
@vkurchatkin you need to enable c++11 |
@refack there is no point in targeting master right now, we'll do a merge after releasing v0.12. @vkurchatkin are you using my branch? |
@vkurchatkin Yes. I covered it for linux and windows. On it. |
@vkurchatkin try my v8-next branch now - https://github.com/TheNodeILs/node/tree/v8-next |
As per Yang Guo @ May 13 v8 removed
DebbugerAgent
, and we need to evaluate the consequances (might need to reimplement in node-land).Also no one replied to said message with complaints, only ad-hoc on the review thread.
In return we get "fat-arrow"
=>
lambdas, andmodules