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

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

Issue 1815733003: Remove recently introduced FunctionType vm class by merging it into class Type. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comment Created 4 years, 9 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
« 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/dart.h" 8 #include "vm/dart.h"
9 #include "vm/freelist.h" 9 #include "vm/freelist.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 } 336 }
337 337
338 338
339 intptr_t RawType::VisitTypePointers( 339 intptr_t RawType::VisitTypePointers(
340 RawType* raw_obj, ObjectPointerVisitor* visitor) { 340 RawType* raw_obj, ObjectPointerVisitor* visitor) {
341 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 341 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
342 return Type::InstanceSize(); 342 return Type::InstanceSize();
343 } 343 }
344 344
345 345
346 intptr_t RawFunctionType::VisitFunctionTypePointers(
347 RawFunctionType* raw_obj, ObjectPointerVisitor* visitor) {
348 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
349 return FunctionType::InstanceSize();
350 }
351
352
353 intptr_t RawTypeRef::VisitTypeRefPointers( 346 intptr_t RawTypeRef::VisitTypeRefPointers(
354 RawTypeRef* raw_obj, ObjectPointerVisitor* visitor) { 347 RawTypeRef* raw_obj, ObjectPointerVisitor* visitor) {
355 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 348 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
356 return TypeRef::InstanceSize(); 349 return TypeRef::InstanceSize();
357 } 350 }
358 351
359 352
360 intptr_t RawTypeParameter::VisitTypeParameterPointers( 353 intptr_t RawTypeParameter::VisitTypeParameterPointers(
361 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) { 354 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) {
362 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 355 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 intptr_t RawUserTag::VisitUserTagPointers( 954 intptr_t RawUserTag::VisitUserTagPointers(
962 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { 955 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) {
963 // Make sure that we got here with the tagged pointer as this. 956 // Make sure that we got here with the tagged pointer as this.
964 ASSERT(raw_obj->IsHeapObject()); 957 ASSERT(raw_obj->IsHeapObject());
965 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 958 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
966 return UserTag::InstanceSize(); 959 return UserTag::InstanceSize();
967 } 960 }
968 961
969 962
970 } // namespace dart 963 } // 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