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

Issue 107173003: Add vmservice_dartium.dart script (Closed)

Created:
7 years ago by Cutch
Modified:
7 years ago
Reviewers:
Jacob, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add vmservice_dartium.dart script BUG= R=jacobr@google.com Committed: https://code.google.com/p/dart/source/detail?r=30922

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -0 lines) Patch
M runtime/bin/resources.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
A runtime/bin/vmservice/vmservice_dartium.dart View 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Cutch
7 years ago (2013-12-05 22:09:18 UTC) #1
Jacob
https://codereview.chromium.org/107173003/diff/1/runtime/bin/resources.h File runtime/bin/resources.h (right): https://codereview.chromium.org/107173003/diff/1/runtime/bin/resources.h#newcode11 runtime/bin/resources.h:11: // Map from Dartium to Dart VM. Dartium --> ...
7 years ago (2013-12-05 23:05:54 UTC) #2
Cutch
https://codereview.chromium.org/107173003/diff/1/runtime/bin/resources.h File runtime/bin/resources.h (right): https://codereview.chromium.org/107173003/diff/1/runtime/bin/resources.h#newcode11 runtime/bin/resources.h:11: // Map from Dartium to Dart VM. On 2013/12/05 ...
7 years ago (2013-12-05 23:08:49 UTC) #3
Jacob
On 2013/12/05 23:08:49, Cutch wrote: > https://codereview.chromium.org/107173003/diff/1/runtime/bin/resources.h > File runtime/bin/resources.h (right): > > https://codereview.chromium.org/107173003/diff/1/runtime/bin/resources.h#newcode11 > ...
7 years ago (2013-12-05 23:09:52 UTC) #4
Cutch
Committed patchset #2 manually as r30922 (presubmit successful).
7 years ago (2013-12-05 23:30:48 UTC) #5
siva
https://codereview.chromium.org/107173003/diff/1/runtime/bin/resources.h File runtime/bin/resources.h (right): https://codereview.chromium.org/107173003/diff/1/runtime/bin/resources.h#newcode15 runtime/bin/resources.h:15: Not sure I understand this. Is "bin/resources.h" now included ...
7 years ago (2013-12-06 00:04:17 UTC) #6
Cutch
7 years ago (2013-12-06 01:36:08 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/107173003/diff/1/runtime/bin/resources.h
File runtime/bin/resources.h (right):

https://codereview.chromium.org/107173003/diff/1/runtime/bin/resources.h#newc...
runtime/bin/resources.h:15: 
On 2013/12/06 00:04:18, siva wrote:
> Not sure I understand this. Is "bin/resources.h" now included in dartium?

We are using the generate_resources.py script to bake the vmservice dart files
into dartium. We can move the script and the header into the VM at some point.

https://codereview.chromium.org/107173003/diff/1/runtime/bin/vmservice/vmserv...
File runtime/bin/vmservice/vmservice_dartium.dart (right):

https://codereview.chromium.org/107173003/diff/1/runtime/bin/vmservice/vmserv...
runtime/bin/vmservice/vmservice_dartium.dart:16: void postResponse(String
response, int cookie) native "PostResponse";
On 2013/12/06 00:04:18, siva wrote:
> Can the name PostResponse be qualified as
> "vmservice_PostResponse" or something like that, that would be in line with
> native methods in other files:
> 
> e.g:
>   Node get firstChild native "Node_firstChild_Getter";
> in class Node {
>    ....
> }

Agreed. I'm doing this in a cleanup CL that I will CC you on.

https://codereview.chromium.org/107173003/diff/1/runtime/bin/vmservice/vmserv...
runtime/bin/vmservice/vmservice_dartium.dart:29: }).catchError((e) { });
On 2013/12/06 00:04:18, siva wrote:
> should the catchError case also post an error response?

The only way for catchError to trigger would be if the call to the native method
resulted in an error. At that point we can't send an error response.

https://codereview.chromium.org/107173003/diff/1/runtime/bin/vmservice/vmserv...
runtime/bin/vmservice/vmservice_dartium.dart:56: }
On 2013/12/06 00:04:18, siva wrote:
> In the above code we seem to ignore invalid messages but in handleRequest we
> post an Error response when we get an invalid request, why this divergence?

This code is verifying that the data from the embedder is valid. We error check
on the embedder side as well. We could probably get rid of these checks.

Powered by Google App Engine
This is Rietveld 408576698