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

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

Issue 2973893002: [fuchsia] Use 0 instead of the deprecated MX_PORT_OPT_V2 option (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | runtime/bin/process_fuchsia.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 #if !defined(DART_IO_DISABLED) 5 #if !defined(DART_IO_DISABLED)
6 6
7 #include "platform/globals.h" 7 #include "platform/globals.h"
8 #if defined(HOST_OS_FUCHSIA) 8 #if defined(HOST_OS_FUCHSIA)
9 9
10 #include "bin/eventhandler.h" 10 #include "bin/eventhandler.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 const uint64_t key = reinterpret_cast<uint64_t>(di); 278 const uint64_t key = reinterpret_cast<uint64_t>(di);
279 di->io_handle()->CancelWait(port_handle, key); 279 di->io_handle()->CancelWait(port_handle, key);
280 } 280 }
281 281
282 282
283 EventHandlerImplementation::EventHandlerImplementation() 283 EventHandlerImplementation::EventHandlerImplementation()
284 : socket_map_(&HashMap::SamePointerValue, 16) { 284 : socket_map_(&HashMap::SamePointerValue, 16) {
285 shutdown_ = false; 285 shutdown_ = false;
286 // Create the port. 286 // Create the port.
287 port_handle_ = MX_HANDLE_INVALID; 287 port_handle_ = MX_HANDLE_INVALID;
288 mx_status_t status = mx_port_create(MX_PORT_OPT_V2, &port_handle_); 288 mx_status_t status = mx_port_create(0, &port_handle_);
289 if (status != MX_OK) { 289 if (status != MX_OK) {
290 // This is a FATAL because the VM won't work at all if we can't create this 290 // This is a FATAL because the VM won't work at all if we can't create this
291 // port. 291 // port.
292 FATAL1("mx_port_create failed: %s\n", mx_status_get_string(status)); 292 FATAL1("mx_port_create failed: %s\n", mx_status_get_string(status));
293 } 293 }
294 ASSERT(port_handle_ != MX_HANDLE_INVALID); 294 ASSERT(port_handle_ != MX_HANDLE_INVALID);
295 } 295 }
296 296
297 297
298 static void DeleteDescriptorInfo(void* info) { 298 static void DeleteDescriptorInfo(void* info) {
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 // The hashmap does not support keys with value 0. 582 // The hashmap does not support keys with value 0.
583 return dart::Utils::WordHash(fd + 1); 583 return dart::Utils::WordHash(fd + 1);
584 } 584 }
585 585
586 } // namespace bin 586 } // namespace bin
587 } // namespace dart 587 } // namespace dart
588 588
589 #endif // defined(HOST_OS_FUCHSIA) 589 #endif // defined(HOST_OS_FUCHSIA)
590 590
591 #endif // !defined(DART_IO_DISABLED) 591 #endif // !defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/process_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698