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

Unified Diff: runtime/vm/object.h

Issue 2449013003: Don't allocate on the Dart heap during Bigint::ToCString(). (Closed)
Patch Set: Created 4 years, 2 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 | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 5f8ddbf1d94d59bbc00a9018c6531d13f2c1f9ab..f88285c2756c2a160db0815b19478f8a0511d191 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -6637,8 +6637,8 @@ class Bigint : public Integer {
intptr_t Used() const;
uint32_t DigitAt(intptr_t index) const;
- const char* ToDecCString(uword (*allocator)(intptr_t size)) const;
- const char* ToHexCString(uword (*allocator)(intptr_t size)) const;
+ const char* ToDecCString(Zone* zone) const;
+ const char* ToHexCString(Zone* zone) const;
static const intptr_t kBitsPerDigit = 32; // Same as _Bigint._DIGIT_BITS
static const intptr_t kBytesPerDigit = 4;
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698