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

Unified Diff: runtime/vm/raw_object.cc

Issue 509153003: New bigint implementation in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/raw_object.cc
===================================================================
--- runtime/vm/raw_object.cc (revision 40060)
+++ runtime/vm/raw_object.cc (working copy)
@@ -97,12 +97,6 @@
instance_size = ContextScope::InstanceSize(num_variables);
break;
}
- case kBigintCid: {
- const RawBigint* raw_bgi = reinterpret_cast<const RawBigint*>(this);
- intptr_t length = raw_bgi->ptr()->allocated_length_;
- instance_size = Bigint::InstanceSize(length);
- break;
- }
case kOneByteStringCid: {
const RawOneByteString* raw_string =
reinterpret_cast<const RawOneByteString*>(this);
@@ -689,9 +683,8 @@
ObjectPointerVisitor* visitor) {
// Make sure that we got here with the tagged pointer as this.
ASSERT(raw_obj->IsHeapObject());
- RawBigint* obj = raw_obj->ptr();
- intptr_t length = obj->allocated_length_;
- return Bigint::InstanceSize(length);
+ visitor->VisitPointers(raw_obj->from(), raw_obj->to());
+ return Bigint::InstanceSize();
}

Powered by Google App Engine
This is Rietveld 408576698