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

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

Issue 9395016: First part of new ICData infrastructure: use a wrapper object instead of an array. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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/freelist.h" 7 #include "vm/freelist.h"
8 #include "vm/isolate.h" 8 #include "vm/isolate.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/visitor.h" 10 #include "vm/visitor.h"
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 630
631 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, 631 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj,
632 ObjectPointerVisitor* visitor) { 632 ObjectPointerVisitor* visitor) {
633 // Make sure that we got here with the tagged pointer as this. 633 // Make sure that we got here with the tagged pointer as this.
634 ASSERT(raw_obj->IsHeapObject()); 634 ASSERT(raw_obj->IsHeapObject());
635 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_); 635 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_);
636 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 636 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
637 return JSRegExp::InstanceSize(length); 637 return JSRegExp::InstanceSize(length);
638 } 638 }
639 639
640
641 intptr_t RawICData::VisitICDataPointers(RawICData* raw_obj,
642 ObjectPointerVisitor* visitor) {
643 // Make sure that we got here with the tagged pointer as this.
644 ASSERT(raw_obj->IsHeapObject());
645 return ICData::InstanceSize();
646 }
647
648
640 } // namespace dart 649 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698