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

Unified Diff: runtime/vm/snapshot_test.cc

Issue 11028145: Changed StackZone and ApiZone to be containers for Zone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added assertion for ApiZone linking. 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
Index: runtime/vm/snapshot_test.cc
diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc
index 1bf149b10256cd4dbc613472185e131a822709db..e7d127a4a10c6c98e19038f7fea968fd6da19ef9 100644
--- a/runtime/vm/snapshot_test.cc
+++ b/runtime/vm/snapshot_test.cc
@@ -58,7 +58,7 @@ static uint8_t* malloc_allocator(
static uint8_t* zone_allocator(
uint8_t* ptr, intptr_t old_size, intptr_t new_size) {
- StackZone* zone = Isolate::Current()->current_zone();
+ Zone* zone = Isolate::Current()->current_zone();
return zone->Realloc<uint8_t>(ptr, old_size, new_size);
}
@@ -416,7 +416,6 @@ Dart_CObject* SerializeAndDeserializeBigint(const Bigint& bigint) {
free(const_cast<char*>(str2));
// Read object back from the snapshot into a C structure.
- ApiNativeScope scope;
ApiMessageReader api_reader(buffer, buffer_len, &zone_allocator);
Dart_CObject* root = api_reader.ReadMessage();
// Bigint not supported.
@@ -428,6 +427,7 @@ Dart_CObject* SerializeAndDeserializeBigint(const Bigint& bigint) {
void CheckBigint(const char* bigint_value) {
StackZone zone(Isolate::Current());
+ ApiNativeScope scope;
Bigint& bigint = Bigint::Handle();
bigint ^= BigintOperations::NewFromCString(bigint_value);

Powered by Google App Engine
This is Rietveld 408576698