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

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

Issue 10967052: Support for show/hide combinators (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 } 423 }
424 424
425 425
426 intptr_t RawLibraryPrefix::VisitLibraryPrefixPointers( 426 intptr_t RawLibraryPrefix::VisitLibraryPrefixPointers(
427 RawLibraryPrefix* raw_obj, ObjectPointerVisitor* visitor) { 427 RawLibraryPrefix* raw_obj, ObjectPointerVisitor* visitor) {
428 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 428 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
429 return LibraryPrefix::InstanceSize(); 429 return LibraryPrefix::InstanceSize();
430 } 430 }
431 431
432 432
433 intptr_t RawNamespace::VisitNamespacePointers(
434 RawNamespace* raw_obj, ObjectPointerVisitor* visitor) {
435 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
436 return Namespace::InstanceSize();
437 }
438
439
433 intptr_t RawCode::VisitCodePointers(RawCode* raw_obj, 440 intptr_t RawCode::VisitCodePointers(RawCode* raw_obj,
434 ObjectPointerVisitor* visitor) { 441 ObjectPointerVisitor* visitor) {
435 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 442 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
436 443
437 RawCode* obj = raw_obj->ptr(); 444 RawCode* obj = raw_obj->ptr();
438 intptr_t length = obj->pointer_offsets_length_; 445 intptr_t length = obj->pointer_offsets_length_;
439 if (obj->is_alive_ == 1) { 446 if (obj->is_alive_ == 1) {
440 // Also visit all the embedded pointers in the corresponding instructions. 447 // Also visit all the embedded pointers in the corresponding instructions.
441 uword entry_point = reinterpret_cast<uword>(obj->instructions_->ptr()) + 448 uword entry_point = reinterpret_cast<uword>(obj->instructions_->ptr()) +
442 Instructions::HeaderSize(); 449 Instructions::HeaderSize();
(...skipping 537 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