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

Issue 1850653003: Provide ability to patch external functions in a class that has already been finalized. The follow… (Closed)

Created:
4 years, 8 months ago by siva
Modified:
4 years, 8 months ago
Reviewers:
regis, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Provide ability to patch external functions in a class that has already been finalized. The following restrictions are in place: - No new fields or patching of existing fields can be done - Only external methods that have not already executed (i.e code for it has been generated) can be patched This change enables patching of JS Interop methods into a class and provides close to 5 sec drop in start up times for Green Tea app. R=hausner@google.com, regis@google.com Committed: https://github.com/dart-lang/sdk/commit/78a6b4615557bd5634b8d0554e1c2fb47cc53ef7

Patch Set 1 #

Patch Set 2 : sync #

Total comments: 8

Patch Set 3 : code-review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -3 lines) Patch
M runtime/vm/class_finalizer.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 chunks +159 lines, -0 lines 0 comments Download
M runtime/vm/object.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 chunks +84 lines, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 2 chunks +13 lines, -2 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
siva
4 years, 8 months ago (2016-03-31 17:35:32 UTC) #2
regis
LGTM with a few comments https://codereview.chromium.org/1850653003/diff/20001/runtime/vm/class_finalizer.cc File runtime/vm/class_finalizer.cc (right): https://codereview.chromium.org/1850653003/diff/20001/runtime/vm/class_finalizer.cc#newcode2430 runtime/vm/class_finalizer.cc:2430: // or if the ...
4 years, 8 months ago (2016-03-31 18:16:49 UTC) #3
hausner
LGTM with Q: Is it necessary to introduce locks so the background compiler isn't attempting ...
4 years, 8 months ago (2016-03-31 20:31:49 UTC) #4
siva
The Class has been marked as not finalized (refinalize) so if the background compiler attempts ...
4 years, 8 months ago (2016-03-31 23:48:08 UTC) #6
siva
4 years, 8 months ago (2016-04-01 03:06:49 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
78a6b4615557bd5634b8d0554e1c2fb47cc53ef7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698