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

Issue 23464022: Add a ResourceConstraint for the embedder to specify that V8 is running on a memory constrained dev… (Closed)

Created:
7 years, 3 months ago by rmcilroy
Modified:
7 years, 3 months ago
Reviewers:
Sven Panne
CC:
v8-dev, tfarina, Michael Starzinger
Visibility:
Public.

Description

Add a ResourceConstraint for the embedder to specify that V8 is running on a memory constrained device. This enables us to specialize certain operations such that we limit memory usage on low-memory devices, without reducing performance on devices which are not memory constrained. BUG=chromium:280984 R=svenpanne@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=16608

Patch Set 1 #

Total comments: 5

Patch Set 2 : rename isMemoryConstrained -> is_memory_constrained #

Patch Set 3 : Make set_memory_constraints keep it's current value if it is not set for a ResourceConstraints. #

Patch Set 4 : Use Maybe template #

Total comments: 1

Patch Set 5 : Make is_memory_constraint const #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
M include/v8.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M src/isolate.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
rmcilroy
Hi Sven, could you please review this change. An example of how this flag will ...
7 years, 3 months ago (2013-09-03 16:03:15 UTC) #1
tfarina
https://codereview.chromium.org/23464022/diff/1/src/isolate.h File src/isolate.h (right): https://codereview.chromium.org/23464022/diff/1/src/isolate.h#newcode1141 src/isolate.h:1141: bool isMemoryConstrained() { I believe this should be is_memory_constrained() ...
7 years, 3 months ago (2013-09-03 19:39:17 UTC) #2
Sven Panne
Adding Michael, we talked about this yesterday. In general this looks OK, but it is ...
7 years, 3 months ago (2013-09-04 07:25:45 UTC) #3
rmcilroy
Thanks Sven and tfarina. Sure thing, as I mentioned in the initial message, https://codereview.chromium.org/23480031/ shows ...
7 years, 3 months ago (2013-09-04 10:22:06 UTC) #4
rmcilroy
7 years, 3 months ago (2013-09-04 15:08:58 UTC) #5
Sven Panne
LGTM if there is no veto from Michael. I think the right way to proceed ...
7 years, 3 months ago (2013-09-05 08:49:45 UTC) #6
rmcilroy
On 2013/09/05 08:49:45, Sven Panne wrote: > LGTM if there is no veto from Michael. ...
7 years, 3 months ago (2013-09-05 15:36:39 UTC) #7
Sven Panne
On 2013/09/05 15:36:39, rmcilroy wrote: > Thanks Sven. I've had to slightly change the API ...
7 years, 3 months ago (2013-09-05 17:28:37 UTC) #8
rmcilroy
On 2013/09/05 17:28:37, Sven Panne wrote: > On 2013/09/05 15:36:39, rmcilroy wrote: > > Thanks ...
7 years, 3 months ago (2013-09-05 18:29:59 UTC) #9
Sven Panne
On 2013/09/05 18:29:59, rmcilroy wrote: > Sorry, I think we are misunderstanding. There is still ...
7 years, 3 months ago (2013-09-06 07:38:00 UTC) #10
rmcilroy_google
On 2013/09/06 07:38:00, Sven Panne wrote: > On 2013/09/05 18:29:59, rmcilroy wrote: > > Sorry, ...
7 years, 3 months ago (2013-09-06 09:18:55 UTC) #11
Sven Panne
My gut feeling is that one should thread the isLowEndDevice info through Blink, so that ...
7 years, 3 months ago (2013-09-06 09:35:56 UTC) #12
dcarney
On 2013/09/06 09:35:56, Sven Panne wrote: > My gut feeling is that one should thread ...
7 years, 3 months ago (2013-09-06 11:17:37 UTC) #13
rmcilroy
Updated to use the Maybe template. PTAL.
7 years, 3 months ago (2013-09-09 17:28:21 UTC) #14
Sven Panne
LGTM with a nit. https://codereview.chromium.org/23464022/diff/21001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/23464022/diff/21001/include/v8.h#newcode3816 include/v8.h:3816: Maybe<bool> is_memory_constrained() { return is_memory_constrained_; ...
7 years, 3 months ago (2013-09-10 06:09:56 UTC) #15
rmcilroy
On 2013/09/10 06:09:56, Sven Panne wrote: > LGTM with a nit. > > https://codereview.chromium.org/23464022/diff/21001/include/v8.h > ...
7 years, 3 months ago (2013-09-10 10:28:52 UTC) #16
Sven Panne
7 years, 3 months ago (2013-09-10 10:57:11 UTC) #17
Message was sent while issue was closed.
Committed patchset #6 manually as r16608 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698