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

Side by Side Diff: runtime/bin/dartutils.h

Issue 834233003: Fix for issue 21398 (only send "literal like" objects across isolates spawned using spawnURI (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 | « no previous file | runtime/bin/io_service_patch.dart » ('j') | runtime/vm/service.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, 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 #ifndef BIN_DARTUTILS_H_ 5 #ifndef BIN_DARTUTILS_H_
6 #define BIN_DARTUTILS_H_ 6 #define BIN_DARTUTILS_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "include/dart_native_api.h" 9 #include "include/dart_native_api.h"
10 10
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 486
487 private: 487 private:
488 DISALLOW_COPY_AND_ASSIGN(CObjectArray); 488 DISALLOW_COPY_AND_ASSIGN(CObjectArray);
489 }; 489 };
490 490
491 491
492 class CObjectSendPort : public CObject { 492 class CObjectSendPort : public CObject {
493 public: 493 public:
494 DECLARE_COBJECT_CONSTRUCTORS(SendPort) 494 DECLARE_COBJECT_CONSTRUCTORS(SendPort)
495 495
496 Dart_Port Value() const { return cobject_->value.as_send_port; } 496 Dart_Port Value() const { return cobject_->value.as_send_port.id; }
497 Dart_Port OriginId() const { return cobject_->value.as_send_port.origin_id; }
497 498
498 private: 499 private:
499 DISALLOW_COPY_AND_ASSIGN(CObjectSendPort); 500 DISALLOW_COPY_AND_ASSIGN(CObjectSendPort);
500 }; 501 };
501 502
502 503
503 class CObjectTypedData : public CObject { 504 class CObjectTypedData : public CObject {
504 public: 505 public:
505 explicit CObjectTypedData(Dart_CObject *cobject) : CObject(cobject) { 506 explicit CObjectTypedData(Dart_CObject *cobject) : CObject(cobject) {
506 ASSERT(type() == Dart_CObject_kTypedData); 507 ASSERT(type() == Dart_CObject_kTypedData);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 565
565 ~ScopedBlockingCall() { 566 ~ScopedBlockingCall() {
566 Dart_IsolateUnblocked(); 567 Dart_IsolateUnblocked();
567 } 568 }
568 }; 569 };
569 570
570 } // namespace bin 571 } // namespace bin
571 } // namespace dart 572 } // namespace dart
572 573
573 #endif // BIN_DARTUTILS_H_ 574 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/io_service_patch.dart » ('j') | runtime/vm/service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698