Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: runtime/bin/socket.cc

Issue 463993002: - Separate the thread implementation used in bin/ and vm/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/io_buffer.h" 5 #include "bin/io_buffer.h"
6 #include "bin/isolate_data.h" 6 #include "bin/isolate_data.h"
7 #include "bin/dartutils.h"
7 #include "bin/socket.h" 8 #include "bin/socket.h"
8 #include "bin/dartutils.h"
9 #include "bin/thread.h" 9 #include "bin/thread.h"
10 #include "bin/utils.h" 10 #include "bin/utils.h"
11 11
12 #include "platform/globals.h" 12 #include "platform/globals.h"
13 #include "platform/thread.h"
14 #include "platform/utils.h" 13 #include "platform/utils.h"
15 14
16 #include "include/dart_api.h" 15 #include "include/dart_api.h"
17 16
18 namespace dart { 17 namespace dart {
19 namespace bin { 18 namespace bin {
20 19
21 static const int kSocketIdNativeField = 0; 20 static const int kSocketIdNativeField = 0;
22 21
23 void FUNCTION_NAME(InternetAddress_Parse)(Dart_NativeArguments args) { 22 void FUNCTION_NAME(InternetAddress_Parse)(Dart_NativeArguments args) {
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 intptr_t Socket::GetSocketIdNativeField(Dart_Handle socket_obj) { 686 intptr_t Socket::GetSocketIdNativeField(Dart_Handle socket_obj) {
688 intptr_t socket = 0; 687 intptr_t socket = 0;
689 Dart_Handle err = 688 Dart_Handle err =
690 Dart_GetNativeInstanceField(socket_obj, kSocketIdNativeField, &socket); 689 Dart_GetNativeInstanceField(socket_obj, kSocketIdNativeField, &socket);
691 if (Dart_IsError(err)) Dart_PropagateError(err); 690 if (Dart_IsError(err)) Dart_PropagateError(err);
692 return socket; 691 return socket;
693 } 692 }
694 693
695 } // namespace bin 694 } // namespace bin
696 } // namespace dart 695 } // namespace dart
OLDNEW
« runtime/bin/process_linux.cc ('K') | « runtime/bin/socket.h ('k') | runtime/bin/stdio.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698