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

Issue 23681014: - Modify toDart to first do a simple lookup in the appropriate table before going down the templati… (Closed)

Created:
7 years, 3 months ago by siva
Modified:
7 years, 3 months ago
Reviewers:
vsm, rmacnak
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Modify toDart to first do a simple lookup in the appropriate table before going down the templatized morass of switch statements - Add a returnToDart function so that the WeakPersistent Handle returned from a lookup/create of the wrapper could be returned as is without the need to call Dart_handleFromWeakPersistentHandle - Use Dart_SetDoubleReturnValue for doubles some DromaeoDartium numbers before this change: CONSOLE MESSAGE: RESULT: Dromaeo-drt dartium-dart dom-query getElementsByTagName(div) runs-per-second 84240.6 CONSOLE MESSAGE: RESULT: Dromaeo-drt dartium-dart dom-traverse nextSibling runs-per-second 207.91683326669332 CONSOLE MESSAGE: RESULT: Dromaeo-drt dartium-dart dom-query getElementsByTagName(*) runs-per-second 69599.2 some DromaeoDartium numbers after this change: CONSOLE MESSAGE: RESULT: Dromaeo-drt dartium-dart dom-query getElementsByTagName(div) runs-per-second 104252.4 CONSOLE MESSAGE: RESULT: Dromaeo-drt dartium-dart dom-traverse nextSibling runs-per-second 366.8 CONSOLE MESSAGE: RESULT: Dromaeo-drt dartium-dart dom-query getElementsByTagName(*) runs-per-second 94922.6 R=rmacnak@google.com, vsm@google.com Committed: https://code.google.com/p/dart/source/detail?r=27710

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -8 lines) Patch
M runtime/vm/dart_api_impl.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M tools/dom/scripts/generator.py View 1 2 3 7 chunks +42 lines, -2 lines 0 comments Download
M tools/dom/scripts/systemnative.py View 1 2 3 2 chunks +35 lines, -5 lines 0 comments Download
M tools/dom/templates/html/dartium/cpp_header.template View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
siva
7 years, 3 months ago (2013-09-19 17:42:38 UTC) #1
vsm
lgtm! I know the code is inconsistent about it, but I think we should follow ...
7 years, 3 months ago (2013-09-19 21:05:57 UTC) #2
rmacnak
LGTM
7 years, 3 months ago (2013-09-19 23:14:32 UTC) #3
siva
https://chromiumcodereview.appspot.com/23681014/diff/7001/tools/dom/scripts/generator.py File tools/dom/scripts/generator.py (right): https://chromiumcodereview.appspot.com/23681014/diff/7001/tools/dom/scripts/generator.py#newcode712 tools/dom/scripts/generator.py:712: def return_to_dart_conversion(self, value, interface_name=None, attributes=None): On 2013/09/19 21:05:57, vsm ...
7 years, 3 months ago (2013-09-19 23:50:34 UTC) #4
siva
7 years, 3 months ago (2013-09-19 23:59:02 UTC) #5
siva
7 years, 3 months ago (2013-09-20 16:25:17 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r27710 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698