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

Side by Side Diff: runtime/vm/raw_object.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 | « runtime/vm/object.cc ('k') | runtime/vm/raw_object_snapshot.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) 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 VM_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1809 // VM implementations of the basic types in the isolate. 1809 // VM implementations of the basic types in the isolate.
1810 class RawCapability : public RawInstance { 1810 class RawCapability : public RawInstance {
1811 RAW_HEAP_OBJECT_IMPLEMENTATION(Capability); 1811 RAW_HEAP_OBJECT_IMPLEMENTATION(Capability);
1812 uint64_t id_; 1812 uint64_t id_;
1813 }; 1813 };
1814 1814
1815 1815
1816 class RawSendPort : public RawInstance { 1816 class RawSendPort : public RawInstance {
1817 RAW_HEAP_OBJECT_IMPLEMENTATION(SendPort); 1817 RAW_HEAP_OBJECT_IMPLEMENTATION(SendPort);
1818 Dart_Port id_; 1818 Dart_Port id_;
1819 Dart_Port origin_id_;
1819 1820
1820 friend class ReceivePort; 1821 friend class ReceivePort;
1821 }; 1822 };
1822 1823
1823 1824
1824 class RawReceivePort : public RawInstance { 1825 class RawReceivePort : public RawInstance {
1825 RAW_HEAP_OBJECT_IMPLEMENTATION(ReceivePort); 1826 RAW_HEAP_OBJECT_IMPLEMENTATION(ReceivePort);
1826 1827
1827 RawObject** from() { 1828 RawObject** from() {
1828 return reinterpret_cast<RawObject**>(&ptr()->send_port_); 1829 return reinterpret_cast<RawObject**>(&ptr()->send_port_);
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
2152 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2153 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2153 kTypedDataInt8ArrayViewCid + 15); 2154 kTypedDataInt8ArrayViewCid + 15);
2154 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2155 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2155 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2156 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2156 return (kNullCid - kTypedDataInt8ArrayCid); 2157 return (kNullCid - kTypedDataInt8ArrayCid);
2157 } 2158 }
2158 2159
2159 } // namespace dart 2160 } // namespace dart
2160 2161
2161 #endif // VM_RAW_OBJECT_H_ 2162 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698