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

Side by Side Diff: vm/raw_object.cc

Issue 10917222: Move all the closure related fields in RawFunction into a new class (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 3 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 | « vm/raw_object.h ('k') | 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/class_table.h" 7 #include "vm/class_table.h"
8 #include "vm/freelist.h" 8 #include "vm/freelist.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 } 367 }
368 368
369 369
370 intptr_t RawPatchClass::VisitPatchClassPointers(RawPatchClass* raw_obj, 370 intptr_t RawPatchClass::VisitPatchClassPointers(RawPatchClass* raw_obj,
371 ObjectPointerVisitor* visitor) { 371 ObjectPointerVisitor* visitor) {
372 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 372 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
373 return PatchClass::InstanceSize(); 373 return PatchClass::InstanceSize();
374 } 374 }
375 375
376 376
377 intptr_t RawClosureData::VisitClosureDataPointers(
378 RawClosureData* raw_obj, ObjectPointerVisitor* visitor) {
379 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
380 return ClosureData::InstanceSize();
381 }
382
383
377 intptr_t RawFunction::VisitFunctionPointers(RawFunction* raw_obj, 384 intptr_t RawFunction::VisitFunctionPointers(RawFunction* raw_obj,
378 ObjectPointerVisitor* visitor) { 385 ObjectPointerVisitor* visitor) {
379 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 386 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
380 return Function::InstanceSize(); 387 return Function::InstanceSize();
381 } 388 }
382 389
383 390
384 intptr_t RawField::VisitFieldPointers(RawField* raw_obj, 391 intptr_t RawField::VisitFieldPointers(RawField* raw_obj,
385 ObjectPointerVisitor* visitor) { 392 ObjectPointerVisitor* visitor) {
386 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 393 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 980
974 intptr_t RawWeakProperty::VisitWeakPropertyPointers( 981 intptr_t RawWeakProperty::VisitWeakPropertyPointers(
975 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { 982 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) {
976 // Make sure that we got here with the tagged pointer as this. 983 // Make sure that we got here with the tagged pointer as this.
977 ASSERT(raw_obj->IsHeapObject()); 984 ASSERT(raw_obj->IsHeapObject());
978 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 985 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
979 return WeakProperty::InstanceSize(); 986 return WeakProperty::InstanceSize();
980 } 987 }
981 988
982 } // namespace dart 989 } // namespace dart
OLDNEW
« no previous file with comments | « vm/raw_object.h ('k') | vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698