|
Avoid trusting the length encoded in the Snapshot if there is an
external length available. We now pass a length with all messages in
the vm and verify that there is no mismatch with the length from the
Snapshot.
Fixed a bug in the use of ApiMessageReader. We were always manually
adding Snapshot::kHeaderSize to the data, but neglecting to subtract
kHeaderSize from the message length.
Added FullSnapshotWriter and MessageWriter classes.
Committed: https://code.google.com/p/dart/source/detail?r=11413
Total comments: 8
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+356 lines, -335 lines) |
Patch |
|
M |
runtime/lib/isolate.cc
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -12 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart.cc
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_impl.cc
|
View
|
1
2
3
4
|
5 chunks |
+14 lines, -11 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_message.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_message.cc
|
View
|
1
2
3
4
|
4 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
|
M |
runtime/vm/isolate.cc
|
View
|
1
2
3
4
|
1 chunk |
+16 lines, -15 lines |
0 comments
|
Download
|
|
M |
runtime/vm/message.h
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/message_handler_test.cc
|
View
|
1
2
3
4
|
8 chunks |
+16 lines, -16 lines |
0 comments
|
Download
|
|
M |
runtime/vm/message_test.cc
|
View
|
1
2
3
4
|
6 chunks |
+31 lines, -11 lines |
0 comments
|
Download
|
|
M |
runtime/vm/native_message_handler.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
|
M |
runtime/vm/port_test.cc
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/vm/snapshot.h
|
View
|
1
2
3
4
|
9 chunks |
+56 lines, -27 lines |
0 comments
|
Download
|
|
M |
runtime/vm/snapshot.cc
|
View
|
1
2
3
4
|
6 chunks |
+24 lines, -11 lines |
0 comments
|
Download
|
|
M |
runtime/vm/snapshot_test.cc
|
View
|
1
2
3
4
|
31 chunks |
+171 lines, -213 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|