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

Issue 24989007: Model each Dart library as its own ScriptState when devtools are enabled. (Closed)

Created:
7 years, 2 months ago by Jacob
Modified:
7 years, 2 months ago
Reviewers:
vsm, jacob314
CC:
reviews+dom_dartlang.org
Visibility:
Public.

Description

Model each Dart library as its own ScriptState when devtools are enabled. BUG= R=vsm@google.com Committed: https://src.chromium.org/viewvc/multivm?view=rev&revision=1406

Patch Set 1 : Ready for review #

Total comments: 10

Patch Set 2 : PTAL #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -137 lines) Patch
M LayoutTests/dart/inspector/evaluate-in-console.html View 1 chunk +5 lines, -5 lines 0 comments Download
M LayoutTests/dart/inspector/evaluate-in-console-expected.txt View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/bindings/dart/DartController.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M Source/bindings/dart/DartController.cpp View 5 chunks +56 lines, -1 line 0 comments Download
M Source/bindings/dart/DartDebugHooks.js View 1 chunk +0 lines, -13 lines 0 comments Download
M Source/bindings/dart/DartDebugServer.cpp View 3 chunks +12 lines, -36 lines 0 comments Download
M Source/bindings/dart/DartHandleProxy.h View 2 chunks +3 lines, -1 line 0 comments Download
M Source/bindings/dart/DartHandleProxy.cpp View 2 chunks +58 lines, -8 lines 0 comments Download
A + Source/bindings/dart/DartInjectedScriptHost.h View 1 1 chunk +9 lines, -10 lines 0 comments Download
A + Source/bindings/dart/DartInjectedScriptHost.cpp View 1 2 chunks +29 lines, -24 lines 0 comments Download
A + Source/bindings/dart/DartScriptState.h View 2 chunks +17 lines, -11 lines 0 comments Download
A + Source/bindings/dart/DartScriptState.cpp View 1 chunk +10 lines, -18 lines 0 comments Download
M Source/bindings/dart/gyp/overrides.gypi View 1 2 chunks +4 lines, -0 lines 0 comments Download
M Source/bindings/v8/ScriptState.h View 1 3 chunks +8 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8InjectedScriptManager.cpp View 3 chunks +9 lines, -0 lines 0 comments Download
M Source/core/inspector/InjectedScriptSource.js View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/inspector/PageRuntimeAgent.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/PageRuntimeAgent.cpp View 1 2 3 chunks +21 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jacob
This CL unfortunately hits a number of files outside the Dart directory but it has ...
7 years, 2 months ago (2013-09-28 01:48:10 UTC) #1
vsm
First set of comments. https://chromiumcodereview.appspot.com/24989007/diff/5001/Source/bindings/dart/DartController.cpp File Source/bindings/dart/DartController.cpp (right): https://chromiumcodereview.appspot.com/24989007/diff/5001/Source/bindings/dart/DartController.cpp#newcode895 Source/bindings/dart/DartController.cpp:895: for (Vector<Dart_Isolate>::iterator it = m_isolates.begin(); ...
7 years, 2 months ago (2013-09-30 22:08:02 UTC) #2
Jacob
https://codereview.chromium.org/24989007/diff/5001/Source/bindings/dart/DartController.cpp File Source/bindings/dart/DartController.cpp (right): https://codereview.chromium.org/24989007/diff/5001/Source/bindings/dart/DartController.cpp#newcode895 Source/bindings/dart/DartController.cpp:895: for (Vector<Dart_Isolate>::iterator it = m_isolates.begin(); it != m_isolates.end(); ++it) ...
7 years, 2 months ago (2013-10-01 00:07:05 UTC) #3
vsm
lgtm https://chromiumcodereview.appspot.com/24989007/diff/14001/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp File Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp (right): https://chromiumcodereview.appspot.com/24989007/diff/14001/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp#newcode358 Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp:358: v8::Handle<v8::Value> dartResult = DartInjectedScriptHost::evaluateIfDartContext(args.Holder(), expression); It'd be nice ...
7 years, 2 months ago (2013-10-03 17:59:30 UTC) #4
Jacob
7 years, 2 months ago (2013-10-03 20:40:06 UTC) #5
Jacob
Committed patchset #3 manually as r1406 (presubmit successful).
7 years, 2 months ago (2013-10-03 20:42:06 UTC) #6
jacob314
7 years, 2 months ago (2013-10-03 20:43:14 UTC) #7
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/24989007/diff/14001/Source/bindings/v8...
File Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp (right):

https://chromiumcodereview.appspot.com/24989007/diff/14001/Source/bindings/v8...
Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp:358:
v8::Handle<v8::Value> dartResult =
DartInjectedScriptHost::evaluateIfDartContext(args.Holder(), expression);
On 2013/10/03 17:59:31, vsm wrote:
> It'd be nice to make this a virtual method on something, somehow.

I agree this is the right long term solution.  Added a comment and filed a bug
dartbug.com/13804

https://chromiumcodereview.appspot.com/24989007/diff/14001/Source/core/inspec...
File Source/core/inspector/PageRuntimeAgent.cpp (right):

https://chromiumcodereview.appspot.com/24989007/diff/14001/Source/core/inspec...
Source/core/inspector/PageRuntimeAgent.cpp:184: {
On 2013/10/03 17:59:31, vsm wrote:
> Is the runtime type of v8ScriptState a ScriptState or a DartScriptState?  If
the
> latter, can we move code over there?

Unfortunately the runtime type of v8ScriptState is ScriptState.

https://chromiumcodereview.appspot.com/24989007/diff/14001/Source/core/inspec...
Source/core/inspector/PageRuntimeAgent.cpp:197: // FIXME: should Dart scripts
have a security origin?
On 2013/10/03 17:59:31, vsm wrote:
> I think so.  Can you file a bug on this?

updated comment and filed a bug.
dartbug.com/13801

Powered by Google App Engine
This is Rietveld 408576698