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

Issue 56211: Remove ENTER_V8 from small API functions that do not need access to... (Closed)

Created:
11 years, 8 months ago by Kevin Millikin (Chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Remove ENTER_V8 from small API functions that do not need access to V8's heap or only need read access. This means that IsDeadCeck and EnsureInitialized could sometimes be called without having already entered the VM. To simplify things, this is made always the case. A couple of error callbacks do not need to leave V8 because they haven't entered. Consistently enter V8 after LOG_API (since LOG_API is sometimes before EnsureInitialized or IsDeadCheck). This all should have no effect unless V8 is built with ENABLE_HEAP_PROTECTION and run with --protect-heap. Committed: http://code.google.com/p/v8/source/detail?r=1672

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -230 lines) Patch
M src/api.cc View 164 chunks +162 lines, -230 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Kevin Millikin (Chromium)
I'm aware that this is a hard change to review. I'm trying to allow read ...
11 years, 8 months ago (2009-04-03 05:42:54 UTC) #1
Mads Ager (chromium)
11 years, 8 months ago (2009-04-03 06:03:51 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698