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

Issue 771993003: Add Isolate.current getter, returning the current isolate as an Isolate object. (Closed)

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

Description

Add Isolate.current getter, returning the current isolate as an Isolate object. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=42499

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Total comments: 1

Patch Set 3 : Add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -0 lines) Patch
M runtime/lib/isolate.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M runtime/lib/isolate_patch.dart View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/isolate_helper.dart View 1 chunk +7 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/isolate_patch.dart View 1 chunk +7 lines, -0 lines 0 comments Download
M sdk/lib/isolate/isolate.dart View 1 1 chunk +9 lines, -0 lines 0 comments Download
A tests/isolate/isolate_current_test.dart View 1 2 1 chunk +135 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
Lasse Reichstein Nielsen
6 years ago (2014-12-02 10:46:37 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/771993003/diff/1/runtime/lib/isolate.cc File runtime/lib/isolate.cc (right): https://codereview.chromium.org/771993003/diff/1/runtime/lib/isolate.cc#newcode259 runtime/lib/isolate.cc:259: Capability::New(isolate->terminate_capability()))); This doesn't seem to be working. Ivan: Does ...
6 years ago (2014-12-02 10:47:39 UTC) #3
floitsch
LGTM. https://codereview.chromium.org/771993003/diff/1/runtime/lib/isolate_patch.dart File runtime/lib/isolate_patch.dart (right): https://codereview.chromium.org/771993003/diff/1/runtime/lib/isolate_patch.dart#newcode385 runtime/lib/isolate_patch.dart:385: static List _getCurrent() native "Isolate_getCurrent"; s/_getCurrent()/_getPortAndCapabilitiesOfCurrentIsolate()/ ? It's ...
6 years ago (2014-12-02 12:13:57 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/771993003/diff/1/sdk/lib/isolate/isolate.dart File sdk/lib/isolate/isolate.dart (right): https://codereview.chromium.org/771993003/diff/1/sdk/lib/isolate/isolate.dart#newcode125 sdk/lib/isolate/isolate.dart:125: * This isolate can be sent to other isolates ...
6 years ago (2014-12-03 15:34:30 UTC) #5
Lasse Reichstein Nielsen
With fix to Capability, this now works. PTAL.
6 years ago (2014-12-08 07:44:16 UTC) #6
floitsch
still LGTM.
6 years ago (2014-12-08 09:16:00 UTC) #7
Lasse Reichstein Nielsen
Ivan?
6 years ago (2014-12-09 07:14:35 UTC) #8
Lasse Reichstein Nielsen
6 years ago (2014-12-19 07:06:24 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 42499 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698