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

Side by Side Diff: src/platform/socket.h

Issue 23604054: Reland "Deuglify V8_INLINE and V8_NOINLINE." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | « src/platform/mutex.cc ('k') | src/spaces.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 bool Shutdown(); 59 bool Shutdown();
60 60
61 // Data Transimission 61 // Data Transimission
62 // Return 0 on failure. 62 // Return 0 on failure.
63 int Send(const char* buffer, int length) V8_WARN_UNUSED_RESULT; 63 int Send(const char* buffer, int length) V8_WARN_UNUSED_RESULT;
64 int Receive(char* buffer, int length) V8_WARN_UNUSED_RESULT; 64 int Receive(char* buffer, int length) V8_WARN_UNUSED_RESULT;
65 65
66 // Set the value of the SO_REUSEADDR socket option. 66 // Set the value of the SO_REUSEADDR socket option.
67 bool SetReuseAddress(bool reuse_address); 67 bool SetReuseAddress(bool reuse_address);
68 68
69 V8_INLINE(bool IsValid()) const { 69 V8_INLINE bool IsValid() const {
70 return native_handle_ != kInvalidNativeHandle; 70 return native_handle_ != kInvalidNativeHandle;
71 } 71 }
72 72
73 static int GetLastError(); 73 static int GetLastError();
74 74
75 // The implementation-defined native handle type. 75 // The implementation-defined native handle type.
76 #if V8_OS_POSIX 76 #if V8_OS_POSIX
77 typedef int NativeHandle; 77 typedef int NativeHandle;
78 static const NativeHandle kInvalidNativeHandle = -1; 78 static const NativeHandle kInvalidNativeHandle = -1;
79 #elif V8_OS_WIN 79 #elif V8_OS_WIN
(...skipping 12 matching lines...) Expand all
92 explicit Socket(NativeHandle native_handle) : native_handle_(native_handle) {} 92 explicit Socket(NativeHandle native_handle) : native_handle_(native_handle) {}
93 93
94 NativeHandle native_handle_; 94 NativeHandle native_handle_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(Socket); 96 DISALLOW_COPY_AND_ASSIGN(Socket);
97 }; 97 };
98 98
99 } } // namespace v8::internal 99 } } // namespace v8::internal
100 100
101 #endif // V8_PLATFORM_SOCKET_H_ 101 #endif // V8_PLATFORM_SOCKET_H_
OLDNEW
« no previous file with comments | « src/platform/mutex.cc ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698