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

Issue 242074: Fix the stack limits setting API so it is usable. (Closed)

Created:
11 years, 2 months ago by Erik Corry
Modified:
9 years, 7 months ago
Reviewers:
Christian Plesner Hansen, dominic.cooney
CC:
v8-dev
Visibility:
Public.

Description

Fix the stack limits setting API so it is usable.

Patch Set 1 #

Total comments: 3

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -137 lines) Patch
M include/v8.h View 1 5 chunks +14 lines, -7 lines 0 comments Download
M src/api.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M src/arm/simulator-arm.h View 1 3 chunks +25 lines, -12 lines 0 comments Download
M src/compiler.cc View 2 chunks +0 lines, -4 lines 0 comments Download
M src/execution.h View 1 6 chunks +29 lines, -34 lines 0 comments Download
M src/execution.cc View 1 4 chunks +55 lines, -55 lines 0 comments Download
M src/ia32/simulator-ia32.h View 1 1 chunk +10 lines, -9 lines 0 comments Download
M src/parser.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M src/v8.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M src/v8threads.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M src/x64/simulator-x64.h View 1 2 chunks +10 lines, -9 lines 0 comments Download
M test/cctest/test-api.cc View 1 3 chunks +76 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Erik Corry
11 years, 2 months ago (2009-09-30 09:39:58 UTC) #1
Christian Plesner Hansen
http://codereview.chromium.org/242074/diff/1/10 File src/arm/simulator-arm.h (right): http://codereview.chromium.org/242074/diff/1/10#newcode48 Line 48: #define GENERATED_CODE_STACK_LIMIT(c_limit) \ Can't we get rid of ...
11 years, 2 months ago (2009-09-30 10:56:34 UTC) #2
Christian Plesner Hansen
Whoops, forgot to say: lgtm.
11 years, 2 months ago (2009-09-30 10:56:52 UTC) #3
Erik Corry
11 years, 2 months ago (2009-09-30 14:16:12 UTC) #4
On ARM there was an issue that we couldn't set the stack guard before the
simulator was intialized.  So I fixed it to not set the stack limits in the
static constructor, but to wait for the VM to be initialized.  This also means
you can set the stack guard before initializing the VM if you are not using
lockers, which is a nicer API.  New version uploaded.

http://codereview.chromium.org/242074/diff/1/10
File src/arm/simulator-arm.h (right):

http://codereview.chromium.org/242074/diff/1/10#newcode48
Line 48: #define GENERATED_CODE_STACK_LIMIT(c_limit) \
On 2009/09/30 10:56:34, Christian Plesner Hansen wrote:
> Can't we get rid of this altogether?

Unfortunately, due to the dual stack setup of the ARM simulator we can't get rid
of this.  However we can make it a real function instead of a macro.

Powered by Google App Engine
This is Rietveld 408576698