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

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

Issue 136853004: 1. Delete prolog weak persistent handles when shutting down an isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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.h ('k') | runtime/vm/raw_object.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) 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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 16449 matching lines...) Expand 10 before | Expand all | Expand 10 after
16460 } 16460 }
16461 16461
16462 16462
16463 void TypedData::PrintToJSONStream(JSONStream* stream, bool ref) const { 16463 void TypedData::PrintToJSONStream(JSONStream* stream, bool ref) const {
16464 Instance::PrintToJSONStream(stream, ref); 16464 Instance::PrintToJSONStream(stream, ref);
16465 } 16465 }
16466 16466
16467 16467
16468 FinalizablePersistentHandle* ExternalTypedData::AddFinalizer( 16468 FinalizablePersistentHandle* ExternalTypedData::AddFinalizer(
16469 void* peer, Dart_WeakPersistentHandleFinalizer callback) const { 16469 void* peer, Dart_WeakPersistentHandleFinalizer callback) const {
16470 SetPeer(peer); 16470 Isolate::Current()->heap()->SetPeer(this->raw(), peer);
Ivan Posva 2014/01/14 02:08:28 I don't think this is correct. Adding a VM interna
siva 2014/01/14 16:44:14 At least that is what the old code was doing. We s
16471 return dart::AddFinalizer(*this, peer, callback); 16471 return dart::AddFinalizer(*this, peer, callback);
16472 } 16472 }
16473 16473
16474 16474
16475 RawExternalTypedData* ExternalTypedData::New(intptr_t class_id, 16475 RawExternalTypedData* ExternalTypedData::New(intptr_t class_id,
16476 uint8_t* data, 16476 uint8_t* data,
16477 intptr_t len, 16477 intptr_t len,
16478 Heap::Space space) { 16478 Heap::Space space) {
16479 ExternalTypedData& result = ExternalTypedData::Handle(); 16479 ExternalTypedData& result = ExternalTypedData::Handle();
16480 { 16480 {
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
16974 return "_MirrorReference"; 16974 return "_MirrorReference";
16975 } 16975 }
16976 16976
16977 16977
16978 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 16978 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
16979 Instance::PrintToJSONStream(stream, ref); 16979 Instance::PrintToJSONStream(stream, ref);
16980 } 16980 }
16981 16981
16982 16982
16983 } // namespace dart 16983 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698