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

Issue 8277020: Stop copying extension bindings scripts. (Closed)

Created:
9 years, 2 months ago by miket_OOO
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Erik does not do reviews, darin-cc_chromium.org, mihaip+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Stop copying extension bindings scripts. After improving v8 API to allow us to pass in an extension source string length field, use that to refer directly to the in-image source rather than copying it and holding it in memory, thus saving memory. It bums me out that I have to call GetRawDataResource() twice, but I don't s a way around that without abandoning inheritance from v8::Extension and switching to composition/delegation. Moved DEPS for v8 to r9534, the newest to include r9365. I don't know whethe this matches our convention; perhaps we always move DEPS to the latest. BUG=95147 TEST=relying on existing extensions unit tests, which all still pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110197

Patch Set 1 #

Total comments: 2

Patch Set 2 : aa's comments; simplify. #

Patch Set 3 : Removed orphaned variable. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -19 lines) Patch
M chrome/renderer/extensions/chrome_v8_extension.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/chrome_v8_extension.cc View 1 2 4 chunks +9 lines, -18 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
miket_OOO
Please review. I remain ignorant about the rules about moving DEPS.
9 years, 2 months ago (2011-10-13 22:21:23 UTC) #1
mihaip_google.com
On Thu, Oct 13, 2011 at 3:21 PM, <miket@chromium.org> wrote: > Please review. I remain ...
9 years, 2 months ago (2011-10-13 22:28:16 UTC) #2
miket_OOO
> It probably makes sense to coordinate with danno@ or someone else on the v8 ...
9 years, 2 months ago (2011-10-13 23:17:31 UTC) #3
Aaron Boodman
lgtm - thanks for staying on top of this http://codereview.chromium.org/8277020/diff/1/chrome/renderer/extensions/chrome_v8_extension.h File chrome/renderer/extensions/chrome_v8_extension.h (right): http://codereview.chromium.org/8277020/diff/1/chrome/renderer/extensions/chrome_v8_extension.h#newcode96 chrome/renderer/extensions/chrome_v8_extension.h:96: ...
9 years, 2 months ago (2011-10-14 21:41:09 UTC) #4
Aaron Boodman
btw, it's no big deal to call GetRawDataResource twice. I think it is pretty cheap.
9 years, 2 months ago (2011-10-14 21:51:35 UTC) #5
miket_OOO
This CL is now quite small and to-the-point. I'll sit on it until DEPS moves, ...
9 years, 2 months ago (2011-10-14 22:16:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/8277020/6001
9 years, 2 months ago (2011-10-17 16:46:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/8277020/13001
9 years, 1 month ago (2011-11-15 21:32:58 UTC) #8
commit-bot: I haz the power
9 years, 1 month ago (2011-11-15 22:50:49 UTC) #9
Change committed as 110197

Powered by Google App Engine
This is Rietveld 408576698