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

Issue 23895004: Keep a persistent handle for the bindings classes to avoid repeated lookups that involve performing… (Closed)

Created:
7 years, 3 months ago by rmacnak
Modified:
7 years, 3 months ago
Reviewers:
siva
CC:
reviews+dom_dartlang.org
Visibility:
Public.

Description

Keep a persistent handle for the bindings classes to avoid repeated lookups that involve performing more API calls and allocating Dart strings. R=asiva@google.com Committed: https://src.chromium.org/viewvc/multivm?view=rev&revision=1376

Patch Set 1 #

Patch Set 2 : preassign #

Total comments: 10

Patch Set 3 : also use cached handles when instaniating wrappers #

Patch Set 4 : . #

Patch Set 5 : update to blink style #

Patch Set 6 : get custom ids from generated table, allocate table ahead of time #

Total comments: 3

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -39 lines) Patch
M Source/bindings/dart/DartDOMData.h View 1 2 3 4 5 6 4 chunks +4 lines, -0 lines 0 comments Download
M Source/bindings/dart/DartDOMData.cpp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/dart/DartDOMWrapper.h View 1 2 3 4 5 5 chunks +27 lines, -9 lines 0 comments Download
M Source/bindings/dart/DartDOMWrapper.cpp View 1 2 3 4 5 6 1 chunk +18 lines, -26 lines 0 comments Download
M Source/bindings/dart/DartNativeUtilities.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/dart/DartUtilities.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/dart/custom/DartDOMStringMap.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/dart/custom/DartDOMStringMapCustom.cpp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/dart/custom/DartWindowCustom.cpp View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
rmacnak
7 years, 3 months ago (2013-09-06 23:41:21 UTC) #1
rmacnak
Statically assign indices for the binding classes.
7 years, 3 months ago (2013-09-09 21:57:01 UTC) #2
siva
https://chromiumcodereview.appspot.com/23895004/diff/4001/Source/bindings/dart/DartDOMWrapper.cpp File Source/bindings/dart/DartDOMWrapper.cpp (right): https://chromiumcodereview.appspot.com/23895004/diff/4001/Source/bindings/dart/DartDOMWrapper.cpp#newcode68 Source/bindings/dart/DartDOMWrapper.cpp:68: map->append(reinterpret_cast<Dart_PersistentHandle>(0)); Might be more efficient to do: if (map->size() ...
7 years, 3 months ago (2013-09-10 00:18:50 UTC) #3
rmacnak
Now using the cache when instantiating wrappers. Assigned class ids for the 3/4 classes explicitly ...
7 years, 3 months ago (2013-09-10 20:09:50 UTC) #4
siva
lgtm https://chromiumcodereview.appspot.com/23895004/diff/22001/Source/bindings/dart/DartDOMData.h File Source/bindings/dart/DartDOMData.h (right): https://chromiumcodereview.appspot.com/23895004/diff/22001/Source/bindings/dart/DartDOMData.h#newcode68 Source/bindings/dart/DartDOMData.h:68: typedef Dart_PersistentHandle ClassTable[NumClassIds]; kNumWebkitClassIds https://chromiumcodereview.appspot.com/23895004/diff/22001/Source/bindings/dart/DartDOMWrapper.cpp File Source/bindings/dart/DartDOMWrapper.cpp (right): ...
7 years, 3 months ago (2013-09-12 18:33:33 UTC) #5
rmacnak
On 2013/09/12 18:33:33, siva wrote: > lgtm > > https://chromiumcodereview.appspot.com/23895004/diff/22001/Source/bindings/dart/DartDOMData.h > File Source/bindings/dart/DartDOMData.h (right): > ...
7 years, 3 months ago (2013-09-12 22:02:04 UTC) #6
rmacnak
7 years, 3 months ago (2013-09-12 22:02:42 UTC) #7
Message was sent while issue was closed.
Committed patchset #7 manually as r1376 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698