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

Issue 2208553002: Simplify reload error reporting (Closed)

Created:
4 years, 4 months ago by Cutch
Modified:
4 years, 4 months ago
Reviewers:
rmacnak
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

Simplify reload error reporting - [x] Rationalize the load failure code path. - [x] Remove support for reload to be aborted via a callback. - [x] If a reload fails due to an unwind error, ignore it as the isolate is dead anyway. - [x] Move more allocations into the zone. Committed: https://github.com/dart-lang/sdk/commit/a6114c23cd6219fcface6c848cc8379ff0928c00

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -42 lines) Patch
M runtime/vm/isolate.h View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/isolate.cc View 2 chunks +0 lines, -12 lines 0 comments Download
M runtime/vm/isolate_reload.h View 1 chunk +10 lines, -2 lines 0 comments Download
M runtime/vm/isolate_reload.cc View 7 chunks +31 lines, -21 lines 0 comments Download
M runtime/vm/unit_test.cc View 1 chunk +9 lines, -5 lines 4 comments Download

Messages

Total messages: 8 (3 generated)
Cutch
4 years, 4 months ago (2016-08-02 22:58:18 UTC) #3
Cutch
Fixes hot reload bots. TBR=rmacnak
4 years, 4 months ago (2016-08-02 23:11:15 UTC) #4
Cutch
Committed patchset #1 (id:1) manually as a6114c23cd6219fcface6c848cc8379ff0928c00 (presubmit successful).
4 years, 4 months ago (2016-08-02 23:11:36 UTC) #6
rmacnak
https://codereview.chromium.org/2208553002/diff/1/runtime/vm/unit_test.cc File runtime/vm/unit_test.cc (right): https://codereview.chromium.org/2208553002/diff/1/runtime/vm/unit_test.cc#newcode300 runtime/vm/unit_test.cc:300: fprintf(stderr, "RELOAD REPORT:\n%s\n", js.ToCString()); OS::PrintErr https://codereview.chromium.org/2208553002/diff/1/runtime/vm/unit_test.cc#newcode306 runtime/vm/unit_test.cc:306: return Dart_Null(); ...
4 years, 4 months ago (2016-08-03 19:55:25 UTC) #7
Cutch
4 years, 4 months ago (2016-08-03 21:17:19 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2208553002/diff/1/runtime/vm/unit_test.cc
File runtime/vm/unit_test.cc (right):

https://codereview.chromium.org/2208553002/diff/1/runtime/vm/unit_test.cc#new...
runtime/vm/unit_test.cc:300: fprintf(stderr, "RELOAD REPORT:\n%s\n",
js.ToCString());
On 2016/08/03 19:55:25, rmacnak wrote:
> OS::PrintErr

Acknowledged.

https://codereview.chromium.org/2208553002/diff/1/runtime/vm/unit_test.cc#new...
runtime/vm/unit_test.cc:306: return Dart_Null();
On 2016/08/03 19:55:25, rmacnak wrote:
> Shouldn't this return some kind of error?

In the unit tests we keep the reload context alive and grab the error from it
explicitly.

Powered by Google App Engine
This is Rietveld 408576698