Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Issue 17246: Add V8 bindings for Worker (Part I). (Closed)

Created:
11 years, 11 months ago by jianli
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add V8 bindings for Worker. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=8414

Patch Set 1 #

Total comments: 33

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 20

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1

Patch Set 6 : '' #

Total comments: 8

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+726 lines, -7 lines) Patch
M base/scoped_handle_win.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M base/thread.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M webkit/build/JavaScriptCore/SConscript View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M webkit/build/JavaScriptCore/WTF.vcproj View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M webkit/build/V8Bindings/SConscript View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M webkit/build/V8Bindings/V8Bindings.vcproj View 1 2 3 4 5 6 7 3 chunks +32 lines, -0 lines 0 comments Download
M webkit/build/WebCore/SConscript View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/build/WebCore/WebCore.vcproj View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download
M webkit/port/DerivedSources.make View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/port/bindings/scripts/CodeGeneratorV8.pm View 1 2 3 4 5 6 7 5 chunks +17 lines, -0 lines 0 comments Download
A webkit/port/bindings/v8/Threading.cpp View 1 chunk +95 lines, -0 lines 0 comments Download
A webkit/port/bindings/v8/V8WorkerCustom.cpp View 1 2 3 4 1 chunk +276 lines, -0 lines 0 comments Download
A webkit/port/bindings/v8/WorkerScriptController.h View 1 2 3 4 5 6 1 chunk +64 lines, -0 lines 0 comments Download
A webkit/port/bindings/v8/WorkerScriptController.cpp View 1 2 3 4 5 6 1 chunk +123 lines, -0 lines 0 comments Download
M webkit/port/bindings/v8/v8_custom.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download
M webkit/port/bindings/v8/v8_index.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -2 lines 0 comments Download
M webkit/port/bindings/v8/v8_index.cpp View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/port/bindings/v8/v8_proxy.cpp View 1 2 3 4 5 6 7 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jianli
11 years, 11 months ago (2009-01-07 22:35:07 UTC) #1
dglazkov
I think I understand the general approach. My feeling is that we need a ScriptThreading ...
11 years, 11 months ago (2009-01-07 23:01:39 UTC) #2
Mike Belshe
Wow - lots of work in here! Sorry for all the comments, I hope they ...
11 years, 11 months ago (2009-01-08 18:44:30 UTC) #3
Feng Qian
How big is the change in third_party/WebKit/JavaScriptCore /wtf/ThreadingWin.cpp? If it is relatively small, can we ...
11 years, 11 months ago (2009-01-08 19:45:20 UTC) #4
jianli
On 2009/01/08 19:45:20, Feng Qian wrote: > How big is the change in third_party/WebKit/JavaScriptCore > ...
11 years, 11 months ago (2009-01-08 21:38:25 UTC) #5
jianli
http://codereview.chromium.org/17246/diff/1/18 File base/scoped_handle_win.h (right): http://codereview.chromium.org/17246/diff/1/18#newcode133 Line 133: #ifdef NOGDI On 2009/01/08 18:44:31, Mike Belshe wrote: ...
11 years, 11 months ago (2009-01-08 22:54:16 UTC) #6
jianli
As to the threading issue, I've found out a much simpler fix to make WebKit ...
11 years, 11 months ago (2009-01-09 06:15:03 UTC) #7
Feng Qian
My biggest concern is that the WorkerScriptController uses V8Proxy::Evaluate, if the worker does not have ...
11 years, 11 months ago (2009-01-14 17:52:55 UTC) #8
jianli
I've also fixed the handling of the first argument in WorkerConstructor of V8WorkerCustom.cpp. This fix ...
11 years, 11 months ago (2009-01-14 18:52:30 UTC) #9
Feng Qian
http://codereview.chromium.org/17246/diff/426/71 File webkit/port/bindings/v8/WorkerScriptController.cpp (right): http://codereview.chromium.org/17246/diff/426/71#newcode65 Line 65: ScriptValue WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode) The logic is similar ...
11 years, 11 months ago (2009-01-14 19:44:41 UTC) #10
Feng Qian
It looks much better, with some small issues. http://codereview.chromium.org/17246/diff/435/91 File webkit/port/bindings/v8/WorkerScriptController.cpp (right): http://codereview.chromium.org/17246/diff/435/91#newcode37 Line 37: ...
11 years, 11 months ago (2009-01-15 04:43:13 UTC) #11
jianli
All fixed. Thanks. http://codereview.chromium.org/17246/diff/435/91 File webkit/port/bindings/v8/WorkerScriptController.cpp (right): http://codereview.chromium.org/17246/diff/435/91#newcode37 Line 37: #include "Settings.h" On 2009/01/15 04:43:13, ...
11 years, 11 months ago (2009-01-15 05:03:10 UTC) #12
Feng Qian
11 years, 11 months ago (2009-01-15 17:26:59 UTC) #13
lgtm

Sorry for the delay.

On 2009/01/15 05:03:10, jianli wrote:
> All fixed. Thanks.
> 
> http://codereview.chromium.org/17246/diff/435/91
> File webkit/port/bindings/v8/WorkerScriptController.cpp (right):
> 
> http://codereview.chromium.org/17246/diff/435/91#newcode37
> Line 37: #include "Settings.h"
> On 2009/01/15 04:43:13, Feng Qian wrote:
> > Settings.h seems not needed anymore.
> 
> Done.
> 
> http://codereview.chromium.org/17246/diff/435/91#newcode51
> Line 51: WorkerScriptController::~WorkerScriptController()
> On 2009/01/15 04:43:13, Feng Qian wrote:
> > If the caller does not call forbidExecution, whole context will leak. It is
> > safer to call Dispose here too. Or assert that m_context.IsEmpty().
> 
> Done.
> 
> http://codereview.chromium.org/17246/diff/435/91#newcode86
> Line 86: if (m_context.IsEmpty()) {
> On 2009/01/15 04:43:13, Feng Qian wrote:
> > How about rename InitContext to InitContextIfNeeded and move this logic into
> > InitContextIfNeeded?
> 
> Done.
> 
> http://codereview.chromium.org/17246/diff/435/91#newcode88
> Line 88: m_context = v8::Context::New(NULL, global_template, m_global);
> On 2009/01/15 04:43:13, Feng Qian wrote:
> > m_global is not needed since no need to preserve object identity, V8 will
> create
> > a new global object.
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698