|
Add support for interrupting an isolate in the vm. Interrupts are
implemented by extending the existing support for stack overflow
checking in the vm. When an interrupt is scheduled for an isolate, we
overwrite the isolate's stack limit with a value guaranteed to cause a
stack overflow.
We support multiple kinds of interrupts, encoded in the low bits of
the stack limit.
Add Dart_InterruptIsolate and Dart_InterruptIsolateCallback to the
dart embedding api to allow the embedder to request and handle
interrupts.
Add EXPECT_SUBSTRING(needle, haystack) testing macro.
Committed: https://code.google.com/p/dart/source/detail?r=2529
Total comments: 2
Total comments: 18
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+318 lines, -74 lines) |
Patch |
|
M |
runtime/bin/gen_snapshot.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/bin/main.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/bin/run_vm_tests.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/include/dart_api.h
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+40 lines, -6 lines |
1 comment
|
Download
|
|
M |
runtime/tests/vm/vm.status
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/assert.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/code_generator.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+25 lines, -6 lines |
0 comments
|
Download
|
|
M |
runtime/vm/code_generator_ia32.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+14 lines, -4 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/dart.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_impl.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+13 lines, -4 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_impl_test.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+121 lines, -1 line |
3 comments
|
Download
|
|
M |
runtime/vm/isolate.h
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+27 lines, -7 lines |
0 comments
|
Download
|
|
M |
runtime/vm/isolate.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+46 lines, -1 line |
1 comment
|
Download
|
|
M |
runtime/vm/opt_code_generator_ia32.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
runtime/vm/stub_code.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/stub_code_arm.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
runtime/vm/stub_code_ia32.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -24 lines |
0 comments
|
Download
|
|
M |
runtime/vm/stub_code_x64.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|