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

Issue 68813002: Fix VM not accepting static methods for Isolate.spawn. (Closed)

Created:
7 years, 1 month ago by Lasse Reichstein Nielsen
Modified:
7 years, 1 month ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, floitsch
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Updated and extended tests. #

Total comments: 12

Patch Set 3 : Address comments. Add more tests - some fail! #

Total comments: 1

Patch Set 4 : Rule out anonymous closures. #

Total comments: 4

Patch Set 5 : Fix static/top-level declaration detection. Add tests. Fix other bugs. #

Patch Set 6 : Mark test as failing on drt/dartium due to using spawnFunction. #

Total comments: 2

Patch Set 7 : removed throw_exception boolean. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -26 lines) Patch
M runtime/lib/isolate.cc View 1 2 3 4 5 6 1 chunk +12 lines, -20 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 6 4 chunks +35 lines, -6 lines 0 comments Download
M tests/isolate/isolate.status View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A tests/isolate/static_function_lib.dart View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A tests/isolate/static_function_test.dart View 1 2 3 4 1 chunk +106 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Lasse Reichstein Nielsen
7 years, 1 month ago (2013-11-11 14:30:17 UTC) #1
Ivan Posva
First round of comments. We used to have this functionality in the past and it ...
7 years, 1 month ago (2013-11-12 07:19:48 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/68813002/diff/30001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/68813002/diff/30001/runtime/vm/isolate.cc#newcode1012 runtime/vm/isolate.cc:1012: class_name_ = strdup(class_name.ToCString()); Beacuse I'm not freeing it somewhere ...
7 years, 1 month ago (2013-11-12 07:28:50 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/68813002/diff/110001/tests/isolate/static_function_test.dart File tests/isolate/static_function_test.dart (right): https://codereview.chromium.org/68813002/diff/110001/tests/isolate/static_function_test.dart#newcode67 tests/isolate/static_function_test.dart:67: throwsTest("static closure", staticClosure); This test, and the next one, ...
7 years, 1 month ago (2013-11-12 07:34:05 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/68813002/diff/150001/runtime/lib/isolate.cc File runtime/lib/isolate.cc (right): https://codereview.chromium.org/68813002/diff/150001/runtime/lib/isolate.cc#newcode224 runtime/lib/isolate.cc:224: func.name() == Symbols::AnonymousClosure().raw()) { This feels a little hackish. ...
7 years, 1 month ago (2013-11-12 07:51:00 UTC) #5
Lasse Reichstein Nielsen
ping
7 years, 1 month ago (2013-11-14 08:32:32 UTC) #6
Ivan Posva
https://codereview.chromium.org/68813002/diff/150001/runtime/lib/isolate.cc File runtime/lib/isolate.cc (right): https://codereview.chromium.org/68813002/diff/150001/runtime/lib/isolate.cc#newcode224 runtime/lib/isolate.cc:224: func.name() == Symbols::AnonymousClosure().raw()) { On 2013/11/12 07:51:00, Lasse Reichstein ...
7 years, 1 month ago (2013-11-14 17:51:01 UTC) #7
Ivan Posva
https://codereview.chromium.org/68813002/diff/150001/runtime/lib/isolate.cc File runtime/lib/isolate.cc (right): https://codereview.chromium.org/68813002/diff/150001/runtime/lib/isolate.cc#newcode224 runtime/lib/isolate.cc:224: func.name() == Symbols::AnonymousClosure().raw()) { On 2013/11/14 17:51:01, Ivan Posva ...
7 years, 1 month ago (2013-11-14 18:11:45 UTC) #8
Ivan Posva
Please add a test that ensures that named inner functions are not sneaking through, so ...
7 years, 1 month ago (2013-11-14 18:16:47 UTC) #9
Lasse Reichstein Nielsen
Your suggested fix worked. It looks like it is all working now. https://codereview.chromium.org/68813002/diff/150001/runtime/lib/isolate.cc File runtime/lib/isolate.cc ...
7 years, 1 month ago (2013-11-15 10:10:03 UTC) #10
Lasse Reichstein Nielsen
Committed patchset #5 manually as r30300 (presubmit successful).
7 years, 1 month ago (2013-11-15 10:28:42 UTC) #11
Lasse Reichstein Nielsen
Ick! Committed wrong workspace. Will revert.
7 years, 1 month ago (2013-11-15 11:22:27 UTC) #12
Lasse Reichstein Nielsen
Reverted, please continue looking at CL.
7 years, 1 month ago (2013-11-15 11:45:43 UTC) #13
Lasse Reichstein Nielsen
ping
7 years, 1 month ago (2013-11-19 07:43:34 UTC) #14
Ivan Posva
LGTM -ip https://codereview.chromium.org/68813002/diff/310002/runtime/lib/isolate.cc File runtime/lib/isolate.cc (right): https://codereview.chromium.org/68813002/diff/310002/runtime/lib/isolate.cc#newcode218 runtime/lib/isolate.cc:218: GET_NON_NULL_NATIVE_ARGUMENT(Instance, closure, arguments->NativeArgAt(0)); This whole control flow ...
7 years, 1 month ago (2013-11-19 22:20:15 UTC) #15
Lasse Reichstein Nielsen
https://codereview.chromium.org/68813002/diff/310002/runtime/lib/isolate.cc File runtime/lib/isolate.cc (right): https://codereview.chromium.org/68813002/diff/310002/runtime/lib/isolate.cc#newcode218 runtime/lib/isolate.cc:218: GET_NON_NULL_NATIVE_ARGUMENT(Instance, closure, arguments->NativeArgAt(0)); Done. Just rearranged the blocks, so ...
7 years, 1 month ago (2013-11-20 09:09:09 UTC) #16
Lasse Reichstein Nielsen
7 years, 1 month ago (2013-11-20 09:16:12 UTC) #17
Message was sent while issue was closed.
Committed patchset #7 manually as r30442 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698