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

Issue 12716010: Added a version of the v8::HandleScope constructor with an Isolate and use that consistently. (Closed)

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

Description

Added a version of the v8::HandleScope constructor with an Isolate and use that consistently. I tried to limit the use of v8::Isolate::GetCurrent() and v8::internal::Isolate::Current() as much as possible, but sometimes this would have involved restructuring tests quite a bit, which is better left for a separate CL. BUG=v8:2487 Committed: http://code.google.com/p/v8/source/detail?r=13953

Patch Set 1 #

Patch Set 2 : Fixed rest #

Total comments: 8

Patch Set 3 : Feedback. Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1239 lines, -1179 lines) Patch
M include/v8.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M samples/lineprocessor.cc View 10 chunks +21 lines, -17 lines 0 comments Download
M samples/process.cc View 14 chunks +27 lines, -22 lines 0 comments Download
M samples/shell.cc View 1 2 12 chunks +31 lines, -20 lines 0 comments Download
M src/api.cc View 1 2 15 chunks +27 lines, -18 lines 0 comments Download
M src/d8.h View 2 chunks +5 lines, -3 lines 0 comments Download
M src/d8.cc View 1 2 21 chunks +35 lines, -28 lines 0 comments Download
M src/d8-debug.h View 3 chunks +5 lines, -3 lines 0 comments Download
M src/d8-debug.cc View 10 chunks +17 lines, -15 lines 0 comments Download
M src/d8-posix.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/d8-readline.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/debug.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/factory.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M src/mksnapshot.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M test/cctest/test-accessors.cc View 13 chunks +23 lines, -23 lines 0 comments Download
M test/cctest/test-alloc.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 467 chunks +488 lines, -492 lines 0 comments Download
M test/cctest/test-assembler-arm.cc View 1 21 chunks +29 lines, -28 lines 0 comments Download
M test/cctest/test-assembler-ia32.cc View 11 chunks +22 lines, -22 lines 0 comments Download
M test/cctest/test-assembler-mips.cc View 1 27 chunks +48 lines, -32 lines 0 comments Download
M test/cctest/test-assembler-x64.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M test/cctest/test-compiler.cc View 13 chunks +13 lines, -15 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-date.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-debug.cc View 110 chunks +116 lines, -114 lines 0 comments Download
M test/cctest/test-declarative-accessors.cc View 1 7 chunks +6 lines, -7 lines 0 comments Download
M test/cctest/test-decls.cc View 1 14 chunks +14 lines, -14 lines 0 comments Download
M test/cctest/test-deoptimization.cc View 1 16 chunks +16 lines, -16 lines 0 comments Download
M test/cctest/test-dictionary.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-disasm-arm.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M test/cctest/test-disasm-ia32.cc View 4 chunks +5 lines, -7 lines 0 comments Download
M test/cctest/test-disasm-mips.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M test/cctest/test-func-name-inference.cc View 1 22 chunks +21 lines, -23 lines 0 comments Download
M test/cctest/test-global-object.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-heap.cc View 1 2 68 chunks +86 lines, -84 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 2 42 chunks +43 lines, -43 lines 0 comments Download
M test/cctest/test-lockers.cc View 1 20 chunks +20 lines, -20 lines 0 comments Download
M test/cctest/test-log.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-log-stack-tracer.cc View 5 chunks +4 lines, -6 lines 0 comments Download
M test/cctest/test-mark-compact.cc View 1 6 chunks +5 lines, -6 lines 0 comments Download
M test/cctest/test-object-observe.cc View 11 chunks +12 lines, -10 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 6 chunks +6 lines, -6 lines 0 comments Download
M test/cctest/test-profile-generator.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/test-random.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-regexp.cc View 1 7 chunks +9 lines, -8 lines 0 comments Download
M test/cctest/test-serialize.cc View 1 8 chunks +8 lines, -8 lines 0 comments Download
M test/cctest/test-strings.cc View 1 2 14 chunks +13 lines, -14 lines 0 comments Download
M test/cctest/test-symbols.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M test/cctest/test-thread-termination.cc View 1 6 chunks +6 lines, -6 lines 0 comments Download
M test/cctest/test-threads.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-weakmaps.cc View 1 8 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Sven Panne
7 years, 9 months ago (2013-03-13 10:52:09 UTC) #1
Michael Starzinger
LGTM, only one real comment. https://codereview.chromium.org/12716010/diff/2001/samples/shell.cc File samples/shell.cc (right): https://codereview.chromium.org/12716010/diff/2001/samples/shell.cc#newcode75 samples/shell.cc:75: v8::HandleScope handle_scope(isolate); Why was ...
7 years, 9 months ago (2013-03-14 19:10:26 UTC) #2
Sven Panne
Feedback addressed, landing... https://codereview.chromium.org/12716010/diff/2001/samples/shell.cc File samples/shell.cc (right): https://codereview.chromium.org/12716010/diff/2001/samples/shell.cc#newcode75 samples/shell.cc:75: v8::HandleScope handle_scope(isolate); On 2013/03/14 19:10:26, Michael ...
7 years, 9 months ago (2013-03-15 07:59:09 UTC) #3
Sven Panne
7 years, 9 months ago (2013-03-15 12:07:19 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 manually as r13953 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698