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

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

Issue 2591823002: Introduce a SignatureData class so that signature functions can store both their (Closed)
Patch Set: address comments Created 4 years 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/raw_object.h ('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 #include "vm/raw_object.h" 5 #include "vm/raw_object.h"
6 6
7 #include "vm/become.h" 7 #include "vm/become.h"
8 #include "vm/class_table.h" 8 #include "vm/class_table.h"
9 #include "vm/dart.h" 9 #include "vm/dart.h"
10 #include "vm/freelist.h" 10 #include "vm/freelist.h"
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 386
387 387
388 intptr_t RawClosureData::VisitClosureDataPointers( 388 intptr_t RawClosureData::VisitClosureDataPointers(
389 RawClosureData* raw_obj, 389 RawClosureData* raw_obj,
390 ObjectPointerVisitor* visitor) { 390 ObjectPointerVisitor* visitor) {
391 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 391 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
392 return ClosureData::InstanceSize(); 392 return ClosureData::InstanceSize();
393 } 393 }
394 394
395 395
396 intptr_t RawSignatureData::VisitSignatureDataPointers(
397 RawSignatureData* raw_obj,
398 ObjectPointerVisitor* visitor) {
399 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
400 return SignatureData::InstanceSize();
401 }
402
403
396 intptr_t RawRedirectionData::VisitRedirectionDataPointers( 404 intptr_t RawRedirectionData::VisitRedirectionDataPointers(
397 RawRedirectionData* raw_obj, 405 RawRedirectionData* raw_obj,
398 ObjectPointerVisitor* visitor) { 406 ObjectPointerVisitor* visitor) {
399 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 407 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
400 return RedirectionData::InstanceSize(); 408 return RedirectionData::InstanceSize();
401 } 409 }
402 410
403 411
404 bool RawFunction::CheckUsageCounter(RawFunction* raw_fun) { 412 bool RawFunction::CheckUsageCounter(RawFunction* raw_fun) {
405 // NOTE: This code runs while GC is in progress and runs within 413 // NOTE: This code runs while GC is in progress and runs within
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 intptr_t RawUserTag::VisitUserTagPointers(RawUserTag* raw_obj, 1004 intptr_t RawUserTag::VisitUserTagPointers(RawUserTag* raw_obj,
997 ObjectPointerVisitor* visitor) { 1005 ObjectPointerVisitor* visitor) {
998 // Make sure that we got here with the tagged pointer as this. 1006 // Make sure that we got here with the tagged pointer as this.
999 ASSERT(raw_obj->IsHeapObject()); 1007 ASSERT(raw_obj->IsHeapObject());
1000 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 1008 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
1001 return UserTag::InstanceSize(); 1009 return UserTag::InstanceSize();
1002 } 1010 }
1003 1011
1004 1012
1005 } // namespace dart 1013 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698