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

Unified Diff: vm/raw_object.cc

Issue 9481019: Changes to get rid of dependency on openssl in the dart VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/raw_object.h ('k') | vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/raw_object.cc
===================================================================
--- vm/raw_object.cc (revision 4707)
+++ vm/raw_object.cc (working copy)
@@ -84,8 +84,8 @@
}
case kBigint: {
const RawBigint* raw_bgi = reinterpret_cast<const RawBigint*>(this);
- const BIGNUM* bn_ptr = &raw_bgi->ptr()->bn_;
- instance_size = Bigint::InstanceSize(bn_ptr);
+ intptr_t length = raw_bgi->ptr()->allocated_length_;
+ instance_size = Bigint::InstanceSize(length);
break;
}
case kOneByteString: {
@@ -490,7 +490,8 @@
// Make sure that we got here with the tagged pointer as this.
ASSERT(raw_obj->IsHeapObject());
RawBigint* obj = raw_obj->ptr();
- return Bigint::InstanceSize(&obj->bn_);
+ intptr_t length = obj->allocated_length_;
+ return Bigint::InstanceSize(length);
}
« no previous file with comments | « vm/raw_object.h ('k') | vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698