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

Unified Diff: runtime/vm/object.cc

Issue 11040062: Renamed Zone->StackZone, BaseZone->Zone, in preparation for changing isolate->get_zone() to return … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review changes Created 8 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/native_entry.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 081d8af32a1e5d9f0bf0311fdea2ffe49b1e5ded..59ca858ff7a1e2e398d5585e4bf71f393f77468b 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -9672,7 +9672,7 @@ RawBigint* Bigint::Allocate(intptr_t length, Heap::Space space) {
static uword BigintAllocator(intptr_t size) {
- Zone* zone = Isolate::Current()->current_zone();
+ StackZone* zone = Isolate::Current()->current_zone();
return zone->AllocUnsafe(size);
}
@@ -10184,7 +10184,7 @@ RawString* String::NewFormattedV(const char* format, va_list args) {
intptr_t len = OS::VSNPrint(NULL, 0, format, args_copy);
va_end(args_copy);
- Zone* zone = Isolate::Current()->current_zone();
+ StackZone* zone = Isolate::Current()->current_zone();
char* buffer = zone->Alloc<char>(len + 1);
OS::VSNPrint(buffer, (len + 1), format, args);
@@ -10289,7 +10289,7 @@ RawString* String::SubString(const String& str,
const char* String::ToCString() const {
intptr_t len = Utf8::Length(*this);
- Zone* zone = Isolate::Current()->current_zone();
+ StackZone* zone = Isolate::Current()->current_zone();
char* result = zone->Alloc<char>(len + 1);
Utf8::Encode(*this, result, len);
result[len] = 0;
« no previous file with comments | « runtime/vm/native_entry.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698