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

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

Issue 109803002: Profiler Take 2 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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/socket.h" 7 #include "bin/socket.h"
8 #include "bin/dartutils.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" 13 #include "platform/thread.h"
14 #include "platform/utils.h" 14 #include "platform/utils.h"
15 15
16 #include "include/dart_api.h" 16 #include "include/dart_api.h"
17 17 #include "include/dart_native_api.h"
siva 2013/12/13 21:29:14 Leftover from a previous version, can be removed.
Cutch 2013/12/13 22:40:18 Done.
18 18
19 namespace dart { 19 namespace dart {
20 namespace bin { 20 namespace bin {
21 21
22 static const int kSocketIdNativeField = 0; 22 static const int kSocketIdNativeField = 0;
23 23
24 dart::Mutex* Socket::mutex_ = new dart::Mutex(); 24 dart::Mutex* Socket::mutex_ = new dart::Mutex();
25 int Socket::service_ports_size_ = 0; 25 int Socket::service_ports_size_ = 0;
26 Dart_Port* Socket::service_ports_ = NULL; 26 Dart_Port* Socket::service_ports_ = NULL;
27 int Socket::service_ports_index_ = 0; 27 int Socket::service_ports_index_ = 0;
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 intptr_t Socket::GetSocketIdNativeField(Dart_Handle socket_obj) { 746 intptr_t Socket::GetSocketIdNativeField(Dart_Handle socket_obj) {
747 intptr_t socket = 0; 747 intptr_t socket = 0;
748 Dart_Handle err = 748 Dart_Handle err =
749 Dart_GetNativeInstanceField(socket_obj, kSocketIdNativeField, &socket); 749 Dart_GetNativeInstanceField(socket_obj, kSocketIdNativeField, &socket);
750 if (Dart_IsError(err)) Dart_PropagateError(err); 750 if (Dart_IsError(err)) Dart_PropagateError(err);
751 return socket; 751 return socket;
752 } 752 }
753 753
754 } // namespace bin 754 } // namespace bin
755 } // namespace dart 755 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698