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

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

Issue 10380019: Stop postponing instantiation of Type and remove InstantiatedType VM class. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 | « runtime/vm/raw_object.h ('k') | runtime/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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 } 333 }
334 334
335 335
336 intptr_t RawTypeParameter::VisitTypeParameterPointers( 336 intptr_t RawTypeParameter::VisitTypeParameterPointers(
337 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) { 337 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) {
338 visitor->VisitPointer(reinterpret_cast<RawObject**>(&raw_obj->ptr()->name_)); 338 visitor->VisitPointer(reinterpret_cast<RawObject**>(&raw_obj->ptr()->name_));
339 return TypeParameter::InstanceSize(); 339 return TypeParameter::InstanceSize();
340 } 340 }
341 341
342 342
343 intptr_t RawInstantiatedType::VisitInstantiatedTypePointers(
344 RawInstantiatedType* raw_obj, ObjectPointerVisitor* visitor) {
345 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
346 return InstantiatedType::InstanceSize();
347 }
348
349
350 intptr_t RawAbstractTypeArguments::VisitAbstractTypeArgumentsPointers( 343 intptr_t RawAbstractTypeArguments::VisitAbstractTypeArgumentsPointers(
351 RawAbstractTypeArguments* raw_obj, ObjectPointerVisitor* visitor) { 344 RawAbstractTypeArguments* raw_obj, ObjectPointerVisitor* visitor) {
352 // RawAbstractTypeArguments is an abstract class. 345 // RawAbstractTypeArguments is an abstract class.
353 UNREACHABLE(); 346 UNREACHABLE();
354 return 0; 347 return 0;
355 } 348 }
356 349
357 350
358 intptr_t RawTypeArguments::VisitTypeArgumentsPointers( 351 intptr_t RawTypeArguments::VisitTypeArgumentsPointers(
359 RawTypeArguments* raw_obj, ObjectPointerVisitor* visitor) { 352 RawTypeArguments* raw_obj, ObjectPointerVisitor* visitor) {
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, 935 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj,
943 ObjectPointerVisitor* visitor) { 936 ObjectPointerVisitor* visitor) {
944 // Make sure that we got here with the tagged pointer as this. 937 // Make sure that we got here with the tagged pointer as this.
945 ASSERT(raw_obj->IsHeapObject()); 938 ASSERT(raw_obj->IsHeapObject());
946 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_); 939 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_);
947 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 940 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
948 return JSRegExp::InstanceSize(length); 941 return JSRegExp::InstanceSize(length);
949 } 942 }
950 943
951 } // namespace dart 944 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698