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

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

Issue 10696013: Consider upper bounds of type parameters in type checks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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
« runtime/vm/parser.cc ('K') | « runtime/vm/raw_object.h ('k') | no next file » | 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 intptr_t RawType::VisitTypePointers( 335 intptr_t RawType::VisitTypePointers(
336 RawType* raw_obj, ObjectPointerVisitor* visitor) { 336 RawType* raw_obj, ObjectPointerVisitor* visitor) {
337 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 337 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
338 return Type::InstanceSize(); 338 return Type::InstanceSize();
339 } 339 }
340 340
341 341
342 intptr_t RawTypeParameter::VisitTypeParameterPointers( 342 intptr_t RawTypeParameter::VisitTypeParameterPointers(
343 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) { 343 RawTypeParameter* raw_obj, ObjectPointerVisitor* visitor) {
344 visitor->VisitPointer(reinterpret_cast<RawObject**>(&raw_obj->ptr()->name_)); 344 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
345 return TypeParameter::InstanceSize(); 345 return TypeParameter::InstanceSize();
346 } 346 }
347 347
348 348
349 intptr_t RawAbstractTypeArguments::VisitAbstractTypeArgumentsPointers( 349 intptr_t RawAbstractTypeArguments::VisitAbstractTypeArgumentsPointers(
350 RawAbstractTypeArguments* raw_obj, ObjectPointerVisitor* visitor) { 350 RawAbstractTypeArguments* raw_obj, ObjectPointerVisitor* visitor) {
351 // RawAbstractTypeArguments is an abstract class. 351 // RawAbstractTypeArguments is an abstract class.
352 UNREACHABLE(); 352 UNREACHABLE();
353 return 0; 353 return 0;
354 } 354 }
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, 941 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj,
942 ObjectPointerVisitor* visitor) { 942 ObjectPointerVisitor* visitor) {
943 // Make sure that we got here with the tagged pointer as this. 943 // Make sure that we got here with the tagged pointer as this.
944 ASSERT(raw_obj->IsHeapObject()); 944 ASSERT(raw_obj->IsHeapObject());
945 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_); 945 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_);
946 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 946 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
947 return JSRegExp::InstanceSize(length); 947 return JSRegExp::InstanceSize(length);
948 } 948 }
949 949
950 } // namespace dart 950 } // namespace dart
OLDNEW
« runtime/vm/parser.cc ('K') | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698