| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "bin/dartutils.h" | 5 #include "bin/dartutils.h" |
| 6 #include "bin/eventhandler.h" | 6 #include "bin/eventhandler.h" |
| 7 #include "bin/socket.h" | 7 #include "bin/socket.h" |
| 8 #include "bin/thread.h" | |
| 9 | 8 |
| 10 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
| 11 | 10 |
| 12 | 11 |
| 13 namespace dart { | 12 namespace dart { |
| 14 namespace bin { | 13 namespace bin { |
| 15 | 14 |
| 16 static const intptr_t kTimerId = -1; | 15 static const intptr_t kTimerId = -1; |
| 17 static const intptr_t kInvalidId = -2; | 16 static const intptr_t kInvalidId = -2; |
| 18 | 17 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 if (Dart_IsError(handle)) { | 99 if (Dart_IsError(handle)) { |
| 101 Dart_PropagateError(handle); | 100 Dart_PropagateError(handle); |
| 102 UNREACHABLE(); | 101 UNREACHABLE(); |
| 103 } | 102 } |
| 104 int64_t data = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 2)); | 103 int64_t data = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 2)); |
| 105 event_handler->SendData(id, dart_port, data); | 104 event_handler->SendData(id, dart_port, data); |
| 106 } | 105 } |
| 107 | 106 |
| 108 } // namespace bin | 107 } // namespace bin |
| 109 } // namespace dart | 108 } // namespace dart |
| OLD | NEW |