|
|
Fix for issue 11680
- implicitly store a full stack trace in Error objects when they are thrown.
- the shlFromInt on Mints and Bigints was trying to allocate a new OutOfMemory
exception objects instead of using the pre-allocated exception object.
Made the implementation of these methods native so that they can use the
pre-allocated object.
- Ensure that it is not possible to allocate new OutOfMemory or StackOverflow
exception objects.
R=ahe@google.com, srdjan@google.com
Committed: https://code.google.com/p/dart/source/detail?r=25492
Total comments: 4
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+339 lines, -62 lines) |
Patch |
 |
M |
runtime/lib/errors_patch.dart
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/lib/integers.cc
|
View
|
1
2
3
4
|
3 chunks |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/lib/integers.dart
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/bootstrap_natives.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/exceptions.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/exceptions.cc
|
View
|
1
2
3
4
|
10 chunks |
+123 lines, -47 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object_store.h
|
View
|
1
2
3
4
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object_store.cc
|
View
|
1
2
3
4
|
3 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/symbols.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tests/language/error_stacktrace_test.dart
|
View
|
1
2
3
|
1 chunk |
+112 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/language/language_dart2js.status
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tests/standalone/oom_error_stacktrace_test.dart
|
View
|
1
2
3
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/standalone.status
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|