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

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

Issue 10827288: - Support for patching of class methods and fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 } 367 }
368 368
369 369
370 intptr_t RawInstantiatedTypeArguments::VisitInstantiatedTypeArgumentsPointers( 370 intptr_t RawInstantiatedTypeArguments::VisitInstantiatedTypeArgumentsPointers(
371 RawInstantiatedTypeArguments* raw_obj, ObjectPointerVisitor* visitor) { 371 RawInstantiatedTypeArguments* raw_obj, ObjectPointerVisitor* visitor) {
372 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 372 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
373 return InstantiatedTypeArguments::InstanceSize(); 373 return InstantiatedTypeArguments::InstanceSize();
374 } 374 }
375 375
376 376
377 intptr_t RawPatchClass::VisitPatchClassPointers(RawPatchClass* raw_obj,
378 ObjectPointerVisitor* visitor) {
379 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
380 return PatchClass::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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, 961 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj,
955 ObjectPointerVisitor* visitor) { 962 ObjectPointerVisitor* visitor) {
956 // Make sure that we got here with the tagged pointer as this. 963 // Make sure that we got here with the tagged pointer as this.
957 ASSERT(raw_obj->IsHeapObject()); 964 ASSERT(raw_obj->IsHeapObject());
958 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_); 965 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_);
959 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 966 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
960 return JSRegExp::InstanceSize(length); 967 return JSRegExp::InstanceSize(length);
961 } 968 }
962 969
963 } // namespace dart 970 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698