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

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

Issue 1459173004: Remove support for object grouping during Garbage Collection (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code-review Created 5 years, 1 month 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 | « runtime/vm/isolate.cc ('k') | runtime/vm/object_graph.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 #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 19361 matching lines...) Expand 10 before | Expand all | Expand 10 after
19372 Utf8::Encode(*this, reinterpret_cast<char*>(utf8_array), array_len); 19372 Utf8::Encode(*this, reinterpret_cast<char*>(utf8_array), array_len);
19373 } 19373 }
19374 19374
19375 19375
19376 static FinalizablePersistentHandle* AddFinalizer( 19376 static FinalizablePersistentHandle* AddFinalizer(
19377 const Object& referent, 19377 const Object& referent,
19378 void* peer, 19378 void* peer,
19379 Dart_WeakPersistentHandleFinalizer callback) { 19379 Dart_WeakPersistentHandleFinalizer callback) {
19380 ASSERT((callback != NULL && peer != NULL) || 19380 ASSERT((callback != NULL && peer != NULL) ||
19381 (callback == NULL && peer == NULL)); 19381 (callback == NULL && peer == NULL));
19382 const bool is_prologue = false;
19383 // TODO(19482): Make API consistent for external size of strings/typed data. 19382 // TODO(19482): Make API consistent for external size of strings/typed data.
19384 const intptr_t external_size = 0; 19383 const intptr_t external_size = 0;
19385 return FinalizablePersistentHandle::New(Isolate::Current(), 19384 return FinalizablePersistentHandle::New(Isolate::Current(),
19386 is_prologue,
19387 referent, 19385 referent,
19388 peer, 19386 peer,
19389 callback, 19387 callback,
19390 external_size); 19388 external_size);
19391 } 19389 }
19392 19390
19393 19391
19394 RawString* String::MakeExternal(void* array, 19392 RawString* String::MakeExternal(void* array,
19395 intptr_t length, 19393 intptr_t length,
19396 void* peer, 19394 void* peer,
(...skipping 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after
21932 return tag_label.ToCString(); 21930 return tag_label.ToCString();
21933 } 21931 }
21934 21932
21935 21933
21936 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 21934 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
21937 Instance::PrintJSONImpl(stream, ref); 21935 Instance::PrintJSONImpl(stream, ref);
21938 } 21936 }
21939 21937
21940 21938
21941 } // namespace dart 21939 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698