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

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

Issue 10964058: Support redirecting factory constructors in the VM (issue 3969). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 } 374 }
375 375
376 376
377 intptr_t RawClosureData::VisitClosureDataPointers( 377 intptr_t RawClosureData::VisitClosureDataPointers(
378 RawClosureData* raw_obj, ObjectPointerVisitor* visitor) { 378 RawClosureData* raw_obj, ObjectPointerVisitor* visitor) {
379 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 379 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
380 return ClosureData::InstanceSize(); 380 return ClosureData::InstanceSize();
381 } 381 }
382 382
383 383
384 intptr_t RawRedirectionData::VisitRedirectionDataPointers(
385 RawRedirectionData* raw_obj, ObjectPointerVisitor* visitor) {
386 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
387 return RedirectionData::InstanceSize();
388 }
389
390
384 intptr_t RawFunction::VisitFunctionPointers(RawFunction* raw_obj, 391 intptr_t RawFunction::VisitFunctionPointers(RawFunction* 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());
387 return Function::InstanceSize(); 394 return Function::InstanceSize();
388 } 395 }
389 396
390 397
391 intptr_t RawField::VisitFieldPointers(RawField* raw_obj, 398 intptr_t RawField::VisitFieldPointers(RawField* raw_obj,
392 ObjectPointerVisitor* visitor) { 399 ObjectPointerVisitor* visitor) {
393 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 400 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 987
981 intptr_t RawWeakProperty::VisitWeakPropertyPointers( 988 intptr_t RawWeakProperty::VisitWeakPropertyPointers(
982 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) { 989 RawWeakProperty* raw_obj, ObjectPointerVisitor* visitor) {
983 // Make sure that we got here with the tagged pointer as this. 990 // Make sure that we got here with the tagged pointer as this.
984 ASSERT(raw_obj->IsHeapObject()); 991 ASSERT(raw_obj->IsHeapObject());
985 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 992 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
986 return WeakProperty::InstanceSize(); 993 return WeakProperty::InstanceSize();
987 } 994 }
988 995
989 } // namespace dart 996 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698