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

Issue 10818037: Refactor callback emission. (Closed)

Created:
8 years, 5 months ago by Anton Muhin
Modified:
8 years, 4 months ago
Reviewers:
podivilov, podivilov1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Refactor callback emission. Move most of the logic into common part. Committed: https://code.google.com/p/dart/source/detail?r=9882

Patch Set 1 #

Patch Set 2 : Some cosmetic changes #

Patch Set 3 : Rebase #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -171 lines) Patch
M lib/dom/scripts/systemnative.py View 1 12 chunks +152 lines, -171 lines 8 comments Download

Messages

Total messages: 3 (0 generated)
Anton Muhin
Pavel, tbring, but I would really appreciate your feedback.
8 years, 5 months ago (2012-07-25 12:43:01 UTC) #1
podivilov1
https://chromiumcodereview.appspot.com/10818037/diff/3001/lib/dom/scripts/systemnative.py File lib/dom/scripts/systemnative.py (right): https://chromiumcodereview.appspot.com/10818037/diff/3001/lib/dom/scripts/systemnative.py#newcode670 lib/dom/scripts/systemnative.py:670: requires_stack_info = False There is too many flags coming ...
8 years, 4 months ago (2012-08-21 10:28:53 UTC) #2
Anton Muhin
8 years, 4 months ago (2012-08-21 12:09:49 UTC) #3
https://chromiumcodereview.appspot.com/10818037/diff/3001/lib/dom/scripts/sys...
File lib/dom/scripts/systemnative.py (right):

https://chromiumcodereview.appspot.com/10818037/diff/3001/lib/dom/scripts/sys...
lib/dom/scripts/systemnative.py:670: requires_stack_info = False
Agree.  BTW, please, have a look at the latest version, it looks readable enough
for me, but YMMV.

On 2012/08/21 10:28:53, podivilov1 wrote:
> There is too many flags coming from different places. Would be nice to cleanup
> this list, e.g. separate flags that affect c++ parameter list from flags
> affecting native callback code structure.

https://chromiumcodereview.appspot.com/10818037/diff/3001/lib/dom/scripts/sys...
lib/dom/scripts/systemnative.py:730:
cpp_arguments.append('DartUtilities::processingUserGesture');
Oops.

On 2012/08/21 10:28:53, podivilov1 wrote:
> semicolon :)

https://chromiumcodereview.appspot.com/10818037/diff/3001/lib/dom/scripts/sys...
lib/dom/scripts/systemnative.py:785: '        Document* document =
domWindow->document();\n')
I overall agree, but there were some unpleasant changes which make it somewhat
hard to place document/scriptExecution context into the correct place, hence the
split logic.

On 2012/08/21 10:28:53, podivilov1 wrote:
> Personally, I don't like splitting c++ parameter definitions generation from
> parameter list building. Maybe introduce a builder class as discussed
> previously?

https://chromiumcodereview.appspot.com/10818037/diff/3001/lib/dom/scripts/sys...
lib/dom/scripts/systemnative.py:843: if argument_name == 'default':
I don't think it's a big problem to be different from v8 here, anything I am
missing?

On 2012/08/21 10:28:53, podivilov1 wrote:
> This is fragile because it differs from what v8 generator does. Setter
argument
> name should always be 'value'.

Powered by Google App Engine
This is Rietveld 408576698