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

Issue 1665773004: Add necessary support functions so that embedders can implemented pause on start and exit (Closed)

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

Description

Add necessary support functions so that embedders can implemented pause on start and exit - Add Dart_ShouldPauseOnStart, Dart_SetShouldPauseOnStart, Dart_IsPausedOnStart, Dart_SetPausedOnStart, Dart_ShouldPauseOnExit, Dart_SetShouldPauseOnExit, Dart_IsPausedOnExit, Dart_SetPausedOnExit to query and control pause on start / exit from outside of the default message handler. - Add Dart_HandleMessages to process all regular messages from outside the default message handler. - Allow per isolate overriding of pause on start / pause on exit flags. - Set the resume_request bit when resuming from isolate start / exit. - Clear the resume_request bit in the default message handler. - Rename MessageHandler fields and accessors. - Rename Isolate::Resume to Isolate::SetResumeRequest. R=turnidge@google.com Committed: https://github.com/dart-lang/sdk/commit/6f76e2af994a08b1aa08dbf737991eece01186e0

Patch Set 1 #

Total comments: 23

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -73 lines) Patch
M runtime/include/dart_api.h View 1 2 3 2 chunks +79 lines, -0 lines 0 comments Download
M runtime/vm/dart.cc View 1 2 3 chunks +9 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 2 chunks +76 lines, -0 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M runtime/vm/message_handler.h View 1 2 3 4 5 chunks +33 lines, -18 lines 0 comments Download
M runtime/vm/message_handler.cc View 1 2 3 4 6 chunks +118 lines, -41 lines 0 comments Download
M runtime/vm/service.cc View 1 2 3 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Cutch
4 years, 10 months ago (2016-02-03 19:37:54 UTC) #3
turnidge
https://codereview.chromium.org/1665773004/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/1665773004/diff/1/runtime/include/dart_api.h#newcode1063 runtime/include/dart_api.h:1063: DART_EXPORT void Dart_SetShouldPauseOnStart(bool v); v -> value, here and ...
4 years, 10 months ago (2016-02-03 21:33:37 UTC) #4
turnidge
https://codereview.chromium.org/1665773004/diff/1/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1665773004/diff/1/runtime/vm/isolate.cc#newcode1076 runtime/vm/isolate.cc:1076: } On 2016/02/03 21:33:36, turnidge wrote: > As discussed ...
4 years, 10 months ago (2016-02-03 21:35:53 UTC) #5
Cutch
https://codereview.chromium.org/1665773004/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/1665773004/diff/1/runtime/include/dart_api.h#newcode1063 runtime/include/dart_api.h:1063: DART_EXPORT void Dart_SetShouldPauseOnStart(bool v); On 2016/02/03 21:33:36, turnidge wrote: ...
4 years, 10 months ago (2016-02-03 23:04:05 UTC) #7
turnidge
lgtm with comments https://codereview.chromium.org/1665773004/diff/40001/runtime/vm/message_handler.cc File runtime/vm/message_handler.cc (right): https://codereview.chromium.org/1665773004/diff/40001/runtime/vm/message_handler.cc#newcode313 runtime/vm/message_handler.cc:313: status != MessageHandler::kShutdown); I wonder if ...
4 years, 10 months ago (2016-02-03 23:17:57 UTC) #8
Cutch
https://codereview.chromium.org/1665773004/diff/40001/runtime/vm/message_handler.cc File runtime/vm/message_handler.cc (right): https://codereview.chromium.org/1665773004/diff/40001/runtime/vm/message_handler.cc#newcode313 runtime/vm/message_handler.cc:313: status != MessageHandler::kShutdown); On 2016/02/03 23:17:56, turnidge wrote: > ...
4 years, 10 months ago (2016-02-03 23:25:07 UTC) #9
Cutch
4 years, 10 months ago (2016-02-03 23:33:45 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
6f76e2af994a08b1aa08dbf737991eece01186e0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698