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

Issue 1730853005: [interpreter] Make setting of function data more resilient. (Closed)

Created:
4 years, 10 months ago by Michael Starzinger
Modified:
4 years, 10 months ago
Reviewers:
rmcilroy
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@local_interpreter-test-enable-strong
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[interpreter] Make setting of function data more resilient. This adds explicit setters for the SharedFunctionInfo::function_data field. Such setters are safer because they allow for explicit checking of which values are allowed, and they improve readability because the intended semantics become clear for each call-site. Also fix a cctest case along the way. R=rmcilroy@chromium.org Committed: https://crrev.com/6acee6ee598f4638e1ee376d51243821787acb3e Cr-Commit-Position: refs/heads/master@{#34297}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Allow race in threading test. :( #

Patch Set 3 : Addressed comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -14 lines) Patch
M src/api-natives.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/bootstrapper.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M src/objects.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 chunks +17 lines, -0 lines 2 comments Download
M src/runtime/runtime-function.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/cctest.status View 1 chunk +0 lines, -4 lines 0 comments Download
M test/cctest/heap/test-heap.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (4 generated)
Michael Starzinger
4 years, 10 months ago (2016-02-25 13:47:21 UTC) #2
rmcilroy
LGTM with some comments. https://codereview.chromium.org/1730853005/diff/1/src/objects-inl.h File src/objects-inl.h (right): https://codereview.chromium.org/1730853005/diff/1/src/objects-inl.h#newcode5851 src/objects-inl.h:5851: DCHECK(bytecode->IsBytecodeArray() || bytecode->IsUndefined()); Is this ...
4 years, 10 months ago (2016-02-25 14:18:06 UTC) #3
Michael Starzinger
PTAL. Addressed one out of two comments. https://codereview.chromium.org/1730853005/diff/1/src/objects-inl.h File src/objects-inl.h (right): https://codereview.chromium.org/1730853005/diff/1/src/objects-inl.h#newcode5851 src/objects-inl.h:5851: DCHECK(bytecode->IsBytecodeArray() || ...
4 years, 10 months ago (2016-02-25 14:43:44 UTC) #4
rmcilroy
LGTM, thanks https://codereview.chromium.org/1730853005/diff/40001/src/objects-inl.h File src/objects-inl.h (right): https://codereview.chromium.org/1730853005/diff/40001/src/objects-inl.h#newcode5851 src/objects-inl.h:5851: DCHECK(function_data()->IsUndefined()); On 2016/02/25 14:43:43, Michael Starzinger wrote: ...
4 years, 10 months ago (2016-02-25 15:33:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1730853005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1730853005/40001
4 years, 10 months ago (2016-02-25 15:36:53 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-25 16:06:10 UTC) #9
commit-bot: I haz the power
4 years, 10 months ago (2016-02-25 16:07:30 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6acee6ee598f4638e1ee376d51243821787acb3e
Cr-Commit-Position: refs/heads/master@{#34297}

Powered by Google App Engine
This is Rietveld 408576698