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

Issue 9288026: Switch to using dartdomgenerator.py for Dart interface and implementation generation. (Closed)

Created:
8 years, 11 months ago by podivilov
Modified:
8 years, 10 months ago
Reviewers:
Anton Muhin, antonm
CC:
reviews+dom_dartlang.org
Visibility:
Public.

Description

Switch to using dartdomgenerator.py for Dart interface and implementation generation. R=antonm@google.com Committed: https://src.chromium.org/viewvc/multivm?view=rev&revision=136

Patch Set 1 #

Total comments: 23

Patch Set 2 : Address comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -307 lines) Patch
M LayoutTests/dart/dom/HTMLElementTest.dart View 2 chunks +3 lines, -0 lines 0 comments Download
M Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h View 1 2 chunks +6 lines, -3 lines 0 comments Download
M Source/WebCore/bindings/dart/custom/DartFileReaderCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/WebCore/bindings/dart/custom/DartFloat32ArrayCustom.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/WebCore/bindings/dart/custom/DartFloat64ArrayCustom.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/WebCore/bindings/dart/custom/DartInt16ArrayCustom.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/WebCore/bindings/dart/custom/DartInt32ArrayCustom.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/WebCore/bindings/dart/custom/DartInt8ArrayCustom.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/WebCore/bindings/dart/custom/DartUint16ArrayCustom.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/WebCore/bindings/dart/custom/DartUint32ArrayCustom.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/WebCore/bindings/dart/custom/DartUint8ArrayCustom.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/WebCore/bindings/dart/custom/DartWebKitCSSMatrixCustom.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/WebCore/bindings/dart/custom/DartWebKitPointCustom.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/WebCore/bindings/dart/custom/DartXMLHttpRequestCustom.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/WebCore/bindings/dart/gyp/dartium.gyp View 1 4 chunks +35 lines, -6 lines 1 comment Download
M Source/WebCore/bindings/dart/gyp/overrides.gypi View 1 2 chunks +3 lines, -2 lines 0 comments Download
M Source/WebCore/bindings/dart/gyp/scripts/CodeGeneratorDart.pm View 1 12 chunks +46 lines, -44 lines 0 comments Download
M Source/WebCore/bindings/dart/gyp/scripts/build_dart_snapshot.py View 1 4 chunks +12 lines, -46 lines 0 comments Download
D Source/WebCore/bindings/dart/resources/dom_implementation.dart View 1 chunk +0 lines, -76 lines 0 comments Download
D Source/WebCore/bindings/dart/resources/dom_public.dart View 1 chunk +0 lines, -115 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
podivilov
8 years, 11 months ago (2012-01-25 18:50:35 UTC) #1
antonm
https://chromiumcodereview.appspot.com/9288026/diff/1/Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h File Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h (right): https://chromiumcodereview.appspot.com/9288026/diff/1/Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h#newcode48 Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h:48: Dart_Handle arg1 = Dart_GetNativeArgument(args, 0); shouldn't you rename construct ...
8 years, 11 months ago (2012-01-25 18:56:39 UTC) #2
podivilov
http://codereview.chromium.org/9288026/diff/1/Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h File Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h (right): http://codereview.chromium.org/9288026/diff/1/Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h#newcode48 Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h:48: Dart_Handle arg1 = Dart_GetNativeArgument(args, 0); On 2012/01/25 18:56:40, antonm ...
8 years, 11 months ago (2012-01-25 19:04:05 UTC) #3
Anton Muhin
Getting close http://codereview.chromium.org/9288026/diff/1/Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h File Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h (right): http://codereview.chromium.org/9288026/diff/1/Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h#newcode48 Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h:48: Dart_Handle arg1 = Dart_GetNativeArgument(args, 0); On 2012/01/25 ...
8 years, 11 months ago (2012-01-26 12:13:35 UTC) #4
podivilov
http://codereview.chromium.org/9288026/diff/1/Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h File Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h (right): http://codereview.chromium.org/9288026/diff/1/Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h#newcode48 Source/WebCore/bindings/dart/custom/DartArrayBufferViewCustom.h:48: Dart_Handle arg1 = Dart_GetNativeArgument(args, 0); On 2012/01/26 12:13:35, antonmuhin ...
8 years, 10 months ago (2012-01-30 18:27:54 UTC) #5
antonm
8 years, 10 months ago (2012-01-31 10:48:02 UTC) #6
LGTM modulo comments

http://codereview.chromium.org/9288026/diff/1/Source/WebCore/bindings/dart/gy...
File Source/WebCore/bindings/dart/gyp/scripts/CodeGeneratorDart.pm (right):

http://codereview.chromium.org/9288026/diff/1/Source/WebCore/bindings/dart/gy...
Source/WebCore/bindings/dart/gyp/scripts/CodeGeneratorDart.pm:112:
"Float32Array" => 1,
Sorry, I wasn't clear enough.

I believe those exceptions (*Array family) had been added recently by Kolya. 
And native counterparts to those constructors are custom anyway.  So I wonder if
we need to keep this overrides for number of arguments in this perl script at
all.

On 2012/01/30 18:27:54, podivilov wrote:
> On 2012/01/26 12:13:35, antonmuhin wrote:
> > On 2012/01/25 19:04:05, podivilov wrote:
> > > On 2012/01/25 18:56:40, antonm wrote:
> > > > hmm?
> > > 
> > > See client/dom/src/_FactoryProviders.dart
> > 
> > Sorry, may you elaborate?  If this knowledge is hidden in other place, do we
> > need this map at all?
> 
> TypedArray constructors are declared with a single argument in
> _FactoryProviders.dart. But i don't see how can we use that knowledge here.

http://codereview.chromium.org/9288026/diff/1/Source/WebCore/bindings/dart/gy...
File Source/WebCore/bindings/dart/gyp/scripts/build_dart_snapshot.py (right):

http://codereview.chromium.org/9288026/diff/1/Source/WebCore/bindings/dart/gy...
Source/WebCore/bindings/dart/gyp/scripts/build_dart_snapshot.py:86: import
dartdomgenerator
On 2012/01/30 18:27:54, podivilov wrote:
> On 2012/01/26 12:13:35, antonmuhin wrote:
> > nit: may we move import into standard place?
> 
> Please note sys.path.insert above.

I see.  May you group sys.path manipulations and import statements into a single
block to make it more obvious for future readers?

http://codereview.chromium.org/9288026/diff/7001/Source/WebCore/bindings/dart...
File Source/WebCore/bindings/dart/gyp/dartium.gyp (right):

http://codereview.chromium.org/9288026/diff/7001/Source/WebCore/bindings/dart...
Source/WebCore/bindings/dart/gyp/dartium.gyp:331: 'dart_auxiliary_dir':
'<(dart_dir)/client/dom/src',
nit: we technically have dart_client_dir var above it might be a good idea to
introduce dart_client_dom dir, up to you.

Powered by Google App Engine
This is Rietveld 408576698