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

Issue 108383007: Replaces LongJump with LongJumpScope. (Closed)

Created:
6 years, 11 months ago by zra
Modified:
6 years, 11 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Replaces LongJump with LongJumpScope. LongJump required explicitly restoring the old long jump base before function return. This was sometimes forgotten, leading to crashes. This change puts the base restoration into the destructor so that it happens automatically on return. R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=31463

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -120 lines) Patch
M runtime/vm/allocation_test.cc View 1 2 5 chunks +14 lines, -10 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 chunks +1 line, -4 lines 0 comments Download
M runtime/vm/code_descriptors_test.cc View 1 2 chunks +1 line, -4 lines 0 comments Download
M runtime/vm/compiler.cc View 1 13 chunks +7 lines, -32 lines 0 comments Download
M runtime/vm/debugger.cc View 1 3 chunks +3 lines, -8 lines 0 comments Download
M runtime/vm/flow_graph_inliner.cc View 1 5 chunks +1 line, -7 lines 0 comments Download
M runtime/vm/isolate.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/longjump.h View 1 2 2 chunks +14 lines, -3 lines 0 comments Download
M runtime/vm/longjump.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download
M runtime/vm/longjump_test.cc View 1 2 2 chunks +9 lines, -5 lines 0 comments Download
M runtime/vm/parser.cc View 1 4 chunks +2 lines, -11 lines 0 comments Download
M runtime/vm/parser_test.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 7 chunks +5 lines, -22 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
zra
Didn't have any problems building on Mac, or on Linux with any of the cross-compilers.
6 years, 11 months ago (2014-01-03 19:43:16 UTC) #1
zra
Also builds and tests pass on Windows.
6 years, 11 months ago (2014-01-03 20:55:34 UTC) #2
siva
I have one question regarding how this will work in the case where ThrowException is ...
6 years, 11 months ago (2014-01-03 21:18:35 UTC) #3
zra
https://codereview.chromium.org/108383007/diff/1/runtime/vm/longjump.cc File runtime/vm/longjump.cc (right): https://codereview.chromium.org/108383007/diff/1/runtime/vm/longjump.cc#newcode20 runtime/vm/longjump.cc:20: return &environment_; On 2014/01/03 21:18:35, siva wrote: > We ...
6 years, 11 months ago (2014-01-03 21:52:59 UTC) #4
siva
https://codereview.chromium.org/108383007/diff/1/runtime/vm/snapshot.cc File runtime/vm/snapshot.cc (right): https://codereview.chromium.org/108383007/diff/1/runtime/vm/snapshot.cc#newcode1508 runtime/vm/snapshot.cc:1508: ThrowException(exception_type(), exception_msg()); I prefer the first. We can add ...
6 years, 11 months ago (2014-01-04 00:04:22 UTC) #5
Ivan Posva
LGTM with the fix for exception throwing we discussed in person. -Ivan
6 years, 11 months ago (2014-01-04 00:37:05 UTC) #6
zra
6 years, 11 months ago (2014-01-04 01:23:50 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r31463 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698