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

Unified Diff: runtime/vm/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 42788)
+++ runtime/vm/object.h (working copy)
@@ -7247,10 +7247,20 @@
public:
Dart_Port Id() const { return raw_ptr()->id_; }
+ Dart_Port origin_id() const { return raw_ptr()->origin_id_; }
+ void set_origin_id(Dart_Port id) const {
+ ASSERT(origin_id() == 0);
+ StoreNonPointer(&(raw_ptr()->origin_id_), id);
+ }
+
static intptr_t InstanceSize() {
return RoundedAllocationSize(sizeof(RawSendPort));
}
- static RawSendPort* New(Dart_Port id, Heap::Space space = Heap::kNew);
+ static RawSendPort* New(Dart_Port id,
+ Heap::Space space = Heap::kNew);
+ static RawSendPort* New(Dart_Port id,
+ Dart_Port origin_id,
+ Heap::Space space = Heap::kNew);
private:
FINAL_HEAP_OBJECT_IMPLEMENTATION(SendPort, Instance);
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698