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

Issue 23890027: Add flags to force or prevent setting of isolate.is_memory_constrained. (Closed)

Created:
7 years, 3 months ago by rmcilroy
Modified:
7 years, 3 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add flags to force or prevent setting of isolate.is_memory_constrained. Also enable MAYBE_BOOL flags for when you want to only do something if the flag was explicitly set to true or false. BUG=None R=hpayer@chromium.org, svenpanne@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=16733

Patch Set 1 #

Patch Set 2 : Change to using Maybe<bool> flags. #

Total comments: 2

Patch Set 3 : remove stray PrintF #

Patch Set 4 : Fix dumb typo in ASSERT and add tests to test-flags.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -10 lines) Patch
M src/api.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/flag-definitions.h View 1 2 3 4 chunks +7 lines, -0 lines 0 comments Download
M src/flags.cc View 1 2 3 10 chunks +26 lines, -3 lines 0 comments Download
M src/isolate.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M test/cctest/test-flags.cc View 1 2 3 7 chunks +19 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
rmcilroy
As requested. This enables both forcing and preventing of the memory_constrained flag. PTAL.
7 years, 3 months ago (2013-09-13 11:47:12 UTC) #1
Hannes Payer (out of office)
LGTM
7 years, 3 months ago (2013-09-13 12:04:58 UTC) #2
Sven Panne
Three-valued logic via 2 boolean + exclusion of one of the 4 possible combined values ...
7 years, 3 months ago (2013-09-13 12:34:52 UTC) #3
rmcilroy
On 2013/09/13 12:34:52, Sven Panne wrote: > Three-valued logic via 2 boolean + exclusion of ...
7 years, 3 months ago (2013-09-13 15:50:30 UTC) #4
Sven Panne
LGTM. Our 2-step Isolate initialization + the code executed before main() is nice, isn't it? ...
7 years, 3 months ago (2013-09-16 07:50:44 UTC) #5
rmcilroy
Thanks. Could you land this for me please? https://codereview.chromium.org/23890027/diff/6001/src/flags.cc File src/flags.cc (right): https://codereview.chromium.org/23890027/diff/6001/src/flags.cc#newcode421 src/flags.cc:421: PrintF("Setting ...
7 years, 3 months ago (2013-09-16 08:19:49 UTC) #6
Sven Panne
Hmmm, we have test failures in cctest/test-flags, see e.g. make -j32 ia32.debug.check TESTJOBS="cctest/test-flags" So we ...
7 years, 3 months ago (2013-09-16 09:52:54 UTC) #7
rmcilroy
On 2013/09/16 09:52:54, Sven Panne wrote: > Hmmm, we have test failures in cctest/test-flags, see ...
7 years, 3 months ago (2013-09-16 12:17:34 UTC) #8
Sven Panne
7 years, 3 months ago (2013-09-16 13:03:04 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 manually as r16733 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698