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

Issue 10871005: Make ClassFinalizer indifferent on whether we are generating a snapshot or not. (Closed)

Created:
8 years, 4 months ago by regis
Modified:
8 years, 4 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make ClassFinalizer indifferent on whether we are generating a snapshot or not. Add flag --error_on_malformed_type. Remove obsolete flag --verify_implements. Support snapshotting of LanguageError (for malformed types) and ApiError. Committed: https://code.google.com/p/dart/source/detail?r=11198

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -221 lines) Patch
M runtime/vm/class_finalizer.h View 1 2 3 3 chunks +4 lines, -25 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 3 15 chunks +20 lines, -125 lines 0 comments Download
M runtime/vm/class_finalizer_test.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 2 chunks +6 lines, -14 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M runtime/vm/parser.h View 1 2 3 4 chunks +9 lines, -5 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 chunks +34 lines, -12 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 3 21 chunks +99 lines, -38 lines 0 comments Download
M runtime/vm/snapshot.h View 1 2 3 5 chunks +6 lines, -0 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
regis
There is a bit for everyone :-) Todd, this should help you detect errors earlier ...
8 years, 4 months ago (2012-08-21 23:53:03 UTC) #1
hausner
finalizer/compiler/parser LGTM w/comments. https://chromiumcodereview.appspot.com/10871005/diff/1/runtime/vm/class_finalizer.h File runtime/vm/class_finalizer.h (right): https://chromiumcodereview.appspot.com/10871005/diff/1/runtime/vm/class_finalizer.h#newcode32 runtime/vm/class_finalizer.h:32: kGeneratingSnapshot = true, Shouldn't the constants ...
8 years, 4 months ago (2012-08-22 00:15:39 UTC) #2
regis
PTAL Thanks, Regis https://chromiumcodereview.appspot.com/10871005/diff/1/runtime/vm/class_finalizer.h File runtime/vm/class_finalizer.h (right): https://chromiumcodereview.appspot.com/10871005/diff/1/runtime/vm/class_finalizer.h#newcode32 runtime/vm/class_finalizer.h:32: kGeneratingSnapshot = true, On 2012/08/22 00:15:39, ...
8 years, 4 months ago (2012-08-22 02:24:26 UTC) #3
regis
Please, have another look. Note that it was not necessary to make the class finalizer ...
8 years, 4 months ago (2012-08-22 23:31:43 UTC) #4
turnidge
lgtm, for my parts of the review. Didn't look to closely at the function which ...
8 years, 4 months ago (2012-08-22 23:49:17 UTC) #5
siva
LGTM with one comment regarding mismatched read/write on the type parameters. https://chromiumcodereview.appspot.com/10871005/diff/12004/runtime/vm/raw_object_snapshot.cc File runtime/vm/raw_object_snapshot.cc (right): ...
8 years, 4 months ago (2012-08-22 23:55:04 UTC) #6
regis
8 years, 4 months ago (2012-08-23 00:24:25 UTC) #7
Thanks!

https://chromiumcodereview.appspot.com/10871005/diff/12004/runtime/vm/raw_obj...
File runtime/vm/raw_object_snapshot.cc (right):

https://chromiumcodereview.appspot.com/10871005/diff/12004/runtime/vm/raw_obj...
runtime/vm/raw_object_snapshot.cc:235: SnapshotWriterVisitor visitor(writer);
On 2012/08/22 23:55:05, asiva wrote:
> We should probably leave it as , false here because the reader is expecting to
> read the fields inline. See the read method above.

I fixed it the other way around, by reading refs.

https://chromiumcodereview.appspot.com/10871005/diff/12004/runtime/vm/raw_obj...
runtime/vm/raw_object_snapshot.cc:290: SnapshotWriterVisitor visitor(writer);
On 2012/08/22 23:55:05, asiva wrote:
> Ditto.

Ditto

https://chromiumcodereview.appspot.com/10871005/diff/12004/runtime/vm/raw_obj...
runtime/vm/raw_object_snapshot.cc:410: SnapshotWriterVisitor visitor(writer);
On 2012/08/22 23:55:05, asiva wrote:
> Ditto.

Ditto

https://chromiumcodereview.appspot.com/10871005/diff/12004/runtime/vm/raw_obj...
runtime/vm/raw_object_snapshot.cc:420: ASSERT((kind != Snapshot::kMessage) &&
On 2012/08/22 23:49:17, turnidge wrote:
> Why the extra parens?

Not that I like them that much, but our style guide requires them. I try to add
them when I touch the code.

Powered by Google App Engine
This is Rietveld 408576698