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

Issue 2242193002: [Interpreter] Avoid accessing Isolate from during bytecode generation. (Closed)

Created:
4 years, 4 months ago by rmcilroy
Modified:
4 years, 4 months ago
CC:
v8-reviews_googlegroups.com, oth, rmcilroy
Base URL:
https://chromium.googlesource.com/v8/v8.git@offheap_sourceposition
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Avoid accessing Isolate from during bytecode generation. Removes all accesses to the Isolate during bytecode generation and the bytecode pipeline. Adds an DisallowIsolateAccessScope which is used to enforce this invariant within the BytecodeGenerator. BUG=v8:5203 Committed: https://crrev.com/1c2c2f43cd61f143558b9b507b78d2b4aba497a7 Cr-Commit-Position: refs/heads/master@{#38716}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Total comments: 4

Patch Set 3 : Remove unused field. #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+580 lines, -584 lines) Patch
M src/ast/scopes.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 3 chunks +1 line, -3 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 3 2 chunks +9 lines, -9 lines 0 comments Download
M src/interpreter/bytecode-array-writer.h View 4 chunks +2 lines, -5 lines 0 comments Download
M src/interpreter/bytecode-array-writer.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M src/interpreter/bytecode-dead-code-optimizer.h View 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecode-dead-code-optimizer.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-generator.h View 1 2 4 chunks +11 lines, -4 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 11 chunks +22 lines, -26 lines 0 comments Download
M src/interpreter/bytecode-peephole-optimizer.h View 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecode-peephole-optimizer.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-pipeline.h View 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecode-register-optimizer.h View 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecode-register-optimizer.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M src/interpreter/constant-array-builder.h View 2 chunks +5 lines, -3 lines 0 comments Download
M src/interpreter/constant-array-builder.cc View 4 chunks +12 lines, -11 lines 0 comments Download
M src/interpreter/handler-table-builder.h View 2 chunks +2 lines, -3 lines 0 comments Download
M src/interpreter/handler-table-builder.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 2 3 207 chunks +444 lines, -457 lines 0 comments Download
M test/cctest/interpreter/test-interpreter-intrinsics.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 3 7 chunks +7 lines, -7 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-iterator-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/interpreter/bytecode-array-writer-unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M test/unittests/interpreter/bytecode-dead-code-optimizer-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/interpreter/bytecode-peephole-optimizer-unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M test/unittests/interpreter/bytecode-register-optimizer-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/interpreter/constant-array-builder-unittest.cc View 16 chunks +21 lines, -19 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
rmcilroy
Klaas / Michi, PTAL, thanks.
4 years, 4 months ago (2016-08-15 16:38:48 UTC) #4
Michael Starzinger
Looking good, just one question. https://codereview.chromium.org/2242193002/diff/1/src/ast/scopes.h File src/ast/scopes.h (right): https://codereview.chromium.org/2242193002/diff/1/src/ast/scopes.h#newcode431 src/ast/scopes.h:431: Handle<ScopeInfo> scope_info() { nit: ...
4 years, 4 months ago (2016-08-16 09:10:22 UTC) #7
klaasb
lgtm
4 years, 4 months ago (2016-08-16 10:55:00 UTC) #8
rmcilroy
https://codereview.chromium.org/2242193002/diff/1/src/ast/scopes.h File src/ast/scopes.h (right): https://codereview.chromium.org/2242193002/diff/1/src/ast/scopes.h#newcode431 src/ast/scopes.h:431: Handle<ScopeInfo> scope_info() { On 2016/08/16 09:10:21, Michael Starzinger wrote: ...
4 years, 4 months ago (2016-08-16 11:24:55 UTC) #9
Michael Starzinger
LGTM. Thanks! Just nits. https://codereview.chromium.org/2242193002/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2242193002/diff/20001/src/interpreter/bytecode-generator.cc#newcode673 src/interpreter/bytecode-generator.cc:673: isolate_access_allowed_(true), nit: Field should no ...
4 years, 4 months ago (2016-08-16 12:26:50 UTC) #10
rmcilroy
https://codereview.chromium.org/2242193002/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2242193002/diff/20001/src/interpreter/bytecode-generator.cc#newcode673 src/interpreter/bytecode-generator.cc:673: isolate_access_allowed_(true), On 2016/08/16 12:26:50, Michael Starzinger wrote: > nit: ...
4 years, 4 months ago (2016-08-16 14:22:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2242193002/40001
4 years, 4 months ago (2016-08-18 11:24:59 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: v8_android_arm_compile_rel on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/22921) v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 4 months ago (2016-08-18 11:26:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2242193002/60001
4 years, 4 months ago (2016-08-18 12:58:17 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-18 13:42:09 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 13:42:31 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1c2c2f43cd61f143558b9b507b78d2b4aba497a7
Cr-Commit-Position: refs/heads/master@{#38716}

Powered by Google App Engine
This is Rietveld 408576698