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

Side by Side Diff: runtime/vm/port.cc

Issue 9209001: Move utils.h and utils.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addresed new comments from ager@ Created 8 years, 11 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 | « runtime/vm/os_test.cc ('k') | runtime/vm/scavenger.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 (c) 2011, 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 "vm/port.h" 5 #include "vm/port.h"
6 6
7 #include "platform/utils.h"
7 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
8 #include "vm/isolate.h" 9 #include "vm/isolate.h"
9 #include "vm/thread.h" 10 #include "vm/thread.h"
10 #include "vm/utils.h"
11 11
12 namespace dart { 12 namespace dart {
13 13
14 14
15 Mutex* PortMap::mutex_ = NULL; 15 Mutex* PortMap::mutex_ = NULL;
16 16
17 PortMap::Entry* PortMap::map_ = NULL; 17 PortMap::Entry* PortMap::map_ = NULL;
18 Isolate* PortMap::deleted_entry_ = reinterpret_cast<Isolate*>(1); 18 Isolate* PortMap::deleted_entry_ = reinterpret_cast<Isolate*>(1);
19 intptr_t PortMap::capacity_ = 0; 19 intptr_t PortMap::capacity_ = 0;
20 intptr_t PortMap::used_ = 0; 20 intptr_t PortMap::used_ = 0;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 ASSERT(Utils::IsPowerOfTwo(kInitialCapacity)); 233 ASSERT(Utils::IsPowerOfTwo(kInitialCapacity));
234 map_ = new Entry[kInitialCapacity]; 234 map_ = new Entry[kInitialCapacity];
235 memset(map_, 0, kInitialCapacity * sizeof(Entry)); 235 memset(map_, 0, kInitialCapacity * sizeof(Entry));
236 capacity_ = kInitialCapacity; 236 capacity_ = kInitialCapacity;
237 used_ = 0; 237 used_ = 0;
238 deleted_ = 0; 238 deleted_ = 0;
239 } 239 }
240 240
241 241
242 } // namespace dart 242 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/os_test.cc ('k') | runtime/vm/scavenger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698