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

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

Issue 17611010: Remove dead code and re-enable short socket read (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
« no previous file with comments | « no previous file | runtime/bin/socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_natives.h" 5 #include "bin/io_natives.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "bin/builtin.h" 10 #include "bin/builtin.h"
(...skipping 29 matching lines...) Expand all
40 V(Process_Kill, 3) \ 40 V(Process_Kill, 3) \
41 V(Process_SetExitCode, 1) \ 41 V(Process_SetExitCode, 1) \
42 V(Process_Exit, 1) \ 42 V(Process_Exit, 1) \
43 V(Process_Sleep, 1) \ 43 V(Process_Sleep, 1) \
44 V(Process_Pid, 1) \ 44 V(Process_Pid, 1) \
45 V(ServerSocket_CreateBindListen, 5) \ 45 V(ServerSocket_CreateBindListen, 5) \
46 V(ServerSocket_Accept, 2) \ 46 V(ServerSocket_Accept, 2) \
47 V(Socket_CreateConnect, 3) \ 47 V(Socket_CreateConnect, 3) \
48 V(Socket_Available, 1) \ 48 V(Socket_Available, 1) \
49 V(Socket_Read, 2) \ 49 V(Socket_Read, 2) \
50 V(Socket_ReadList, 4) \
51 V(Socket_WriteList, 4) \ 50 V(Socket_WriteList, 4) \
52 V(Socket_GetPort, 1) \ 51 V(Socket_GetPort, 1) \
53 V(Socket_GetRemotePeer, 1) \ 52 V(Socket_GetRemotePeer, 1) \
54 V(Socket_GetError, 1) \ 53 V(Socket_GetError, 1) \
55 V(Socket_GetStdioHandle, 2) \ 54 V(Socket_GetStdioHandle, 2) \
56 V(Socket_NewServicePort, 0) \ 55 V(Socket_NewServicePort, 0) \
57 V(Socket_GetType, 1) \ 56 V(Socket_GetType, 1) \
58 V(Socket_SetOption, 3) \ 57 V(Socket_SetOption, 3) \
59 V(SecureSocket_Connect, 9) \ 58 V(SecureSocket_Connect, 9) \
60 V(SecureSocket_Destroy, 1) \ 59 V(SecureSocket_Destroy, 1) \
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 if (!strcmp(function_name, entry->name_) && 92 if (!strcmp(function_name, entry->name_) &&
94 (entry->argument_count_ == argument_count)) { 93 (entry->argument_count_ == argument_count)) {
95 return reinterpret_cast<Dart_NativeFunction>(entry->function_); 94 return reinterpret_cast<Dart_NativeFunction>(entry->function_);
96 } 95 }
97 } 96 }
98 return NULL; 97 return NULL;
99 } 98 }
100 99
101 } // namespace bin 100 } // namespace bin
102 } // namespace dart 101 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698