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

Issue 2126393003: Cache compile-time constants on the script object, sometimes. (Closed)

Created:
4 years, 5 months ago by turnidge
Modified:
4 years, 5 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Florian Schneider
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Cache compile-time constants on the script object, sometimes. When a script is not in the vm heap, we now cache compile time constants on the script object itself. During isolate reload we may have both an old and a new version of a script being compiled at the same time and they need to cache their constants separately. This also means that compile time constants from old scripts can be collected when the script is collected, which is good. When a script is in the vm heap, we continue to use the old system of employing a shared per-isolate cache stored in the object store. Closes #26833 BUG= R=fschneider@google.com, johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/62ccff992fc64403d5d4693ee4ca1b71e02df360

Patch Set 1 #

Patch Set 2 : cleanups #

Total comments: 6

Patch Set 3 : Code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -148 lines) Patch
M runtime/vm/isolate_reload.h View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M runtime/vm/isolate_reload.cc View 1 2 5 chunks +0 lines, -88 lines 0 comments Download
M runtime/vm/object.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/object_store.h View 3 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/object_store.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/parser.h View 1 2 5 chunks +71 lines, -17 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 chunks +59 lines, -29 lines 0 comments Download
M runtime/vm/precompiler.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/raw_object.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
turnidge
4 years, 5 months ago (2016-07-08 00:17:55 UTC) #2
Cutch
LGTM with a small nit. Nice cleanup of the whole system! https://codereview.chromium.org/2126393003/diff/20001/runtime/vm/isolate_reload.h File runtime/vm/isolate_reload.h (right): ...
4 years, 5 months ago (2016-07-08 01:06:25 UTC) #3
Florian Schneider
Lgtm. https://codereview.chromium.org/2126393003/diff/20001/runtime/vm/parser.h File runtime/vm/parser.h (right): https://codereview.chromium.org/2126393003/diff/20001/runtime/vm/parser.h#newcode107 runtime/vm/parser.h:107: // Used by CachConstantValue if a new constant ...
4 years, 5 months ago (2016-07-08 18:01:25 UTC) #5
turnidge
https://codereview.chromium.org/2126393003/diff/20001/runtime/vm/isolate_reload.h File runtime/vm/isolate_reload.h (right): https://codereview.chromium.org/2126393003/diff/20001/runtime/vm/isolate_reload.h#newcode115 runtime/vm/isolate_reload.h:115: void BuildCleanScriptSet(); On 2016/07/08 01:06:25, Cutch wrote: > BuildCleanScriptSet ...
4 years, 5 months ago (2016-07-11 21:00:43 UTC) #6
turnidge
4 years, 5 months ago (2016-07-11 21:15:35 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
62ccff992fc64403d5d4693ee4ca1b71e02df360 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698