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

Issue 74533003: Add Perl IDL support for method parameter type sequence<Dictionary> (Closed)

Created:
7 years, 1 month ago by alancutter (OOO until 2018)
Modified:
7 years, 1 month ago
CC:
blink-reviews, kojih, arv+blink, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, watchdog-blink-watchlist_google.com, Inactive, shans, rjwright, kouhei (in TOK)
Visibility:
Public.

Description

Add Perl IDL support for method parameter type sequence<Dictionary> This patch adds support to the Perl IDL generator for sequence<Dictionary> parameters on IDL methods. This introduces a DictionarySequence class to wrap the JS array-like object instead of using a Vector<Dictionary> because Dictionaries cannot be heap allocated. BUG=257235 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162335

Patch Set 1 #

Total comments: 4

Patch Set 2 : Alternate approach using Vector<Dictionary> #

Total comments: 6

Patch Set 3 : Rebased #

Patch Set 4 : Review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -19 lines) Patch
M Source/bindings/scripts/code_generator_v8.pm View 1 2 5 chunks +13 lines, -3 lines 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 chunks +19 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObjectPython.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/v8/Dictionary.h View 1 2 3 2 chunks +8 lines, -7 lines 0 comments Download
M Source/bindings/v8/Dictionary.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 2 3 8 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
alancutter (OOO until 2018)
7 years, 1 month ago (2013-11-19 06:18:29 UTC) #1
haraken
> This introduces a DictionarySequence class to wrap the JS array-like > object instead of ...
7 years, 1 month ago (2013-11-19 06:22:24 UTC) #2
Nils Barth (inactive)
2 notes on Perl code; I'll defer to haraken re: overall approach. https://codereview.chromium.org/74533003/diff/1/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm ...
7 years, 1 month ago (2013-11-19 06:45:42 UTC) #3
alancutter (OOO until 2018)
On 2013/11/19 06:22:24, haraken wrote: > > This introduces a DictionarySequence class to wrap the ...
7 years, 1 month ago (2013-11-19 11:00:43 UTC) #4
haraken
> I'm not confident about putting V8 handles in a WTF Vector. > I'm afraid ...
7 years, 1 month ago (2013-11-19 11:12:04 UTC) #5
alancutter (OOO until 2018)
On 2013/11/19 11:12:04, haraken wrote: > I don't see problems in putting V8 handles in ...
7 years, 1 month ago (2013-11-19 23:43:47 UTC) #6
alancutter (OOO until 2018)
https://codereview.chromium.org/74533003/diff/70001/Source/bindings/v8/Dictionary.h File Source/bindings/v8/Dictionary.h (left): https://codereview.chromium.org/74533003/diff/70001/Source/bindings/v8/Dictionary.h#oldcode109 Source/bindings/v8/Dictionary.h:109: static void operator delete(void *); On 2013/11/19 11:12:05, haraken ...
7 years, 1 month ago (2013-11-20 00:40:14 UTC) #7
Nils Barth (inactive)
Thanks for Perl changes; the Perl CG changes look fine!
7 years, 1 month ago (2013-11-20 00:45:56 UTC) #8
haraken
LGTM > Mostly just a general unease about mixing memory management systems together, > especially ...
7 years, 1 month ago (2013-11-20 04:29:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/74533003/150001
7 years, 1 month ago (2013-11-20 04:53:16 UTC) #10
commit-bot: I haz the power
7 years, 1 month ago (2013-11-20 06:03:47 UTC) #11
Message was sent while issue was closed.
Change committed as 162335

Powered by Google App Engine
This is Rietveld 408576698