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

Unified Diff: vm/dart_api_impl.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/bigint_store.h ('k') | vm/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/dart_api_impl.cc
===================================================================
--- vm/dart_api_impl.cc (revision 4707)
+++ vm/dart_api_impl.cc (working copy)
@@ -955,7 +955,7 @@
#if defined(DEBUG)
Bigint& bigint = Bigint::Handle();
bigint ^= int_obj.raw();
- ASSERT(!BigintOperations::FitsIntoInt64(bigint));
+ ASSERT(!BigintOperations::FitsIntoMint(bigint));
#endif
*fits = false;
}
@@ -1011,8 +1011,8 @@
ASSERT(int_obj.IsBigint());
Bigint& bigint = Bigint::Handle();
bigint ^= int_obj.raw();
- if (BigintOperations::FitsIntoInt64(bigint)) {
- *value = BigintOperations::ToInt64(bigint);
+ if (BigintOperations::FitsIntoMint(bigint)) {
+ *value = BigintOperations::ToMint(bigint);
return Api::Success();
}
}
@@ -1456,8 +1456,8 @@
} else if (retval.IsBigint()) {
Bigint& bigint = Bigint::Handle();
bigint ^= retval.raw();
- if (BigintOperations::FitsIntoInt64(bigint)) {
- *len = BigintOperations::ToInt64(bigint);
+ if (BigintOperations::FitsIntoMint(bigint)) {
+ *len = BigintOperations::ToMint(bigint);
return Api::Success();
} else {
return Api::NewError("Length of List object is greater than the "
« no previous file with comments | « vm/bigint_store.h ('k') | vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698