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

Unified Diff: runtime/vm/bit_vector.h

Issue 10836061: Change the zone allocation api. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/bigint_operations_test.cc ('k') | runtime/vm/bitmap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bit_vector.h
===================================================================
--- runtime/vm/bit_vector.h (revision 10253)
+++ runtime/vm/bit_vector.h (working copy)
@@ -47,9 +47,7 @@
explicit BitVector(intptr_t length)
: length_(length),
data_length_(SizeFor(length)),
- data_(reinterpret_cast<uword*>(
- Isolate::Current()->current_zone()->Allocate(
- data_length_ * sizeof(uword)))) {
+ data_(Isolate::Current()->current_zone()->Alloc<uword>(data_length_)) {
ASSERT(length > 0);
Clear();
}
« no previous file with comments | « runtime/vm/bigint_operations_test.cc ('k') | runtime/vm/bitmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698