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

Issue 18531003: Cleanup VM error handling. (Closed)

Created:
7 years, 5 months ago by floitsch
Modified:
7 years, 5 months ago
Reviewers:
siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Cleanup VM error handling. Unify the way the runtime throws errors. With this patch the VM goes through one location and always invokes the constructor of the errors. It also makes it easier to rename fields in the error classes. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=24995 Reverted: https://code.google.com/p/dart/source/detail?r=24997 Committed: https://code.google.com/p/dart/source/detail?r=25000

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Rebase #

Total comments: 18

Patch Set 4 : Address comments. #

Patch Set 5 : Fix typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -133 lines) Patch
M runtime/bin/dartutils.cc View 4 chunks +4 lines, -1 line 0 comments Download
M runtime/lib/error.cc View 1 2 3 3 chunks +20 lines, -33 lines 0 comments Download
M runtime/lib/error.dart View 1 2 3 4 4 chunks +46 lines, -40 lines 0 comments Download
M runtime/vm/exceptions.h View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M runtime/vm/exceptions.cc View 1 2 3 3 chunks +39 lines, -47 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
floitsch
7 years, 5 months ago (2013-07-02 19:32:16 UTC) #1
siva
Florian, Could you explain how this cleanup makes things easier I am probably missing the ...
7 years, 5 months ago (2013-07-08 20:57:54 UTC) #2
floitsch
This CL makes things easier, because: - now every exception is created in the same ...
7 years, 5 months ago (2013-07-09 10:56:29 UTC) #3
floitsch
ping.
7 years, 5 months ago (2013-07-10 14:22:49 UTC) #4
siva
https://codereview.chromium.org/18531003/diff/4001/runtime/lib/error.cc File runtime/lib/error.cc (right): https://codereview.chromium.org/18531003/diff/4001/runtime/lib/error.cc#newcode42 runtime/lib/error.cc:42: script.GetSnippet(from_line, from_column, to_line, to_column))); args.SetAt(0, ....); https://codereview.chromium.org/18531003/diff/4001/runtime/lib/error.cc#newcode47 runtime/lib/error.cc:47: ASSERT(args_index ...
7 years, 5 months ago (2013-07-12 16:49:35 UTC) #5
floitsch
https://codereview.chromium.org/18531003/diff/4001/runtime/lib/error.cc File runtime/lib/error.cc (right): https://codereview.chromium.org/18531003/diff/4001/runtime/lib/error.cc#newcode42 runtime/lib/error.cc:42: script.GetSnippet(from_line, from_column, to_line, to_column))); On 2013/07/12 16:49:36, siva wrote: ...
7 years, 5 months ago (2013-07-12 17:12:35 UTC) #6
siva
lgtm
7 years, 5 months ago (2013-07-12 17:15:54 UTC) #7
floitsch
Committed patchset #4 manually as r24995 (presubmit successful).
7 years, 5 months ago (2013-07-15 09:28:38 UTC) #8
floitsch
7 years, 5 months ago (2013-07-15 10:32:46 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 manually as r25000 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698