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

Issue 7465066: Fix GC problem with ToBooleanStub (Closed)

Created:
9 years, 5 months ago by fschneider
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Use the generic version of the stub (without IC patching) to avoid triggering a GC when invoking the ToBooleanStub in optimized code.

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M src/code-stubs.h View 1 1 chunk +2 lines, -0 lines 5 comments Download
M src/ia32/code-stubs-ia32.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
fschneider
This is an attempt to fix the safepoint problem with the ToBoolean stub. It would ...
9 years, 5 months ago (2011-07-27 11:59:36 UTC) #1
Vitaly Repeshko
Almost looks good. Two questions. Don't we need CallRuntimeSaveDoubles in the stub itself? Is there ...
9 years, 5 months ago (2011-07-27 13:09:05 UTC) #2
fschneider
New approach. As discussed we just don't invoke a stub that does patching.
9 years, 4 months ago (2011-07-27 14:30:08 UTC) #3
Sven Panne
LGTM with a tiny stylistic change http://codereview.chromium.org/7465066/diff/5002/src/code-stubs.h File src/code-stubs.h (right): http://codereview.chromium.org/7465066/diff/5002/src/code-stubs.h#newcode938 src/code-stubs.h:938: static Types all_types() ...
9 years, 4 months ago (2011-07-27 14:46:33 UTC) #4
Vitaly Repeshko
LGTM http://codereview.chromium.org/7465066/diff/5002/src/code-stubs.h File src/code-stubs.h (right): http://codereview.chromium.org/7465066/diff/5002/src/code-stubs.h#newcode924 src/code-stubs.h:924: bool IsEmpty() const { return set_.IsEmpty(); } Maybe ...
9 years, 4 months ago (2011-07-27 14:49:37 UTC) #5
fschneider
9 years, 4 months ago (2011-07-27 14:56:19 UTC) #6
http://codereview.chromium.org/7465066/diff/5002/src/code-stubs.h
File src/code-stubs.h (right):

http://codereview.chromium.org/7465066/diff/5002/src/code-stubs.h#newcode924
src/code-stubs.h:924: bool IsEmpty() const { return set_.IsEmpty(); }
On 2011/07/27 14:49:38, Vitaly Repeshko wrote:
> Maybe add IsAll()?

Done.

http://codereview.chromium.org/7465066/diff/5002/src/code-stubs.h#newcode938
src/code-stubs.h:938: static Types all_types() { return Types(kAllTypes); }
On 2011/07/27 14:46:33, Sven wrote:
> Removing kAllTypes and directly using
> 
>  (1 << NUMBER_OF_TYPES) - 1
> 
> in all_types() looks a bit cleaner, I think.

Done.

Powered by Google App Engine
This is Rietveld 408576698