|
Add support for native ports in the vm.
Dart_NewNativePort creates a port associated with a C handler
function. When messages come in on this port, they are forwarded to
the C function for processing.
To support this, refactored PortMap so that it operates on a new
MessageHandler type instead of directly on Isolates.
For now, native ports have a dedicated single thread. Eventually we
will back native ports (and possibly Isolates as well) by a shared
thread pool.
Committed: https://code.google.com/p/dart/source/detail?r=3804
Total comments: 58
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+603 lines, -729 lines) |
Patch |
|
M |
runtime/include/dart_api.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+46 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/lib/isolate.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/vm/allocation.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+15 lines, -6 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_impl.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_impl.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+35 lines, -3 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_impl_test.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+79 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/isolate.h
|
View
|
1
2
3
4
|
5 chunks |
+4 lines, -34 lines |
0 comments
|
Download
|
|
M |
runtime/vm/isolate.cc
|
View
|
1
2
3
4
5
6
|
8 chunks |
+67 lines, -58 lines |
0 comments
|
Download
|
|
A + |
runtime/vm/message.h
|
View
|
1
2
3
5
6
|
4 chunks |
+61 lines, -6 lines |
0 comments
|
Download
|
|
A + |
runtime/vm/message.cc
|
View
|
1
2
3
4
|
4 chunks |
+69 lines, -10 lines |
0 comments
|
Download
|
|
D |
runtime/vm/message_queue.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -97 lines |
0 comments
|
Download
|
|
D |
runtime/vm/message_queue.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -134 lines |
0 comments
|
Download
|
|
D |
runtime/vm/message_queue_test.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -289 lines |
0 comments
|
Download
|
|
A + |
runtime/vm/message_test.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
runtime/vm/native_message_handler.h
|
View
|
1
2
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/vm/native_message_handler.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+67 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/port.h
|
View
|
1
2
3
4
|
3 chunks |
+14 lines, -10 lines |
0 comments
|
Download
|
|
M |
runtime/vm/port.cc
|
View
|
1
2
3
4
5
6
|
8 chunks |
+41 lines, -38 lines |
0 comments
|
Download
|
|
M |
runtime/vm/port_test.cc
|
View
|
1
2
3
4
|
8 chunks |
+35 lines, -38 lines |
0 comments
|
Download
|
|
M |
runtime/vm/vm_sources.gypi
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|