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

Unified Diff: runtime/vm/snapshot_test.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/runtime_entry.h ('k') | runtime/vm/symbols.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot_test.cc
diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc
index 8d0898a019147e5a8518c21ceb267aa3e0b2400e..1bf149b10256cd4dbc613472185e131a822709db 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) {
- Zone* zone = Isolate::Current()->current_zone();
+ StackZone* zone = Isolate::Current()->current_zone();
return zone->Realloc<uint8_t>(ptr, old_size, new_size);
}
@@ -132,7 +132,7 @@ static void CheckEncodeDecodeMessage(Dart_CObject* root) {
}
TEST_CASE(SerializeNull) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
// Write snapshot with object content.
uint8_t* buffer;
@@ -158,7 +158,7 @@ TEST_CASE(SerializeNull) {
TEST_CASE(SerializeSmi1) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
// Write snapshot with object content.
uint8_t* buffer;
@@ -185,7 +185,7 @@ TEST_CASE(SerializeSmi1) {
TEST_CASE(SerializeSmi2) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
// Write snapshot with object content.
uint8_t* buffer;
@@ -234,7 +234,7 @@ Dart_CObject* SerializeAndDeserializeMint(const Mint& mint) {
void CheckMint(int64_t value) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
const Mint& mint = Mint::Handle(Mint::New(value));
ApiNativeScope scope;
@@ -279,7 +279,7 @@ TEST_CASE(SerializeMints) {
TEST_CASE(SerializeDouble) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
// Write snapshot with object content.
uint8_t* buffer;
@@ -306,7 +306,7 @@ TEST_CASE(SerializeDouble) {
TEST_CASE(SerializeTrue) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
// Write snapshot with true object.
uint8_t* buffer;
@@ -335,7 +335,7 @@ TEST_CASE(SerializeTrue) {
TEST_CASE(SerializeFalse) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
// Write snapshot with false object.
uint8_t* buffer;
@@ -367,7 +367,7 @@ static uword allocator(intptr_t size) {
TEST_CASE(SerializeBigint) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
// Write snapshot with object content.
uint8_t* buffer;
@@ -427,7 +427,7 @@ Dart_CObject* SerializeAndDeserializeBigint(const Bigint& bigint) {
void CheckBigint(const char* bigint_value) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
Bigint& bigint = Bigint::Handle();
bigint ^= BigintOperations::NewFromCString(bigint_value);
@@ -498,7 +498,7 @@ TEST_CASE(SerializeSingletons) {
TEST_CASE(SerializeString) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
// Write snapshot with object content.
uint8_t* buffer;
@@ -526,7 +526,7 @@ TEST_CASE(SerializeString) {
TEST_CASE(SerializeArray) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
// Write snapshot with object content.
uint8_t* buffer;
@@ -564,7 +564,7 @@ TEST_CASE(SerializeArray) {
TEST_CASE(SerializeEmptyArray) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
// Write snapshot with object content.
uint8_t* buffer;
@@ -593,7 +593,7 @@ TEST_CASE(SerializeEmptyArray) {
TEST_CASE(SerializeByteArray) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
// Write snapshot with object content.
uint8_t* buffer;
@@ -628,7 +628,7 @@ TEST_CASE(SerializeByteArray) {
TEST_CASE(SerializeEmptyByteArray) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
// Write snapshot with object content.
uint8_t* buffer;
@@ -856,7 +856,7 @@ UNIT_TEST_CASE(FullSnapshot) {
// Write snapshot with object content.
Isolate* isolate = Isolate::Current();
- Zone zone(isolate);
+ StackZone zone(isolate);
HandleScope scope(isolate);
FullSnapshotWriter writer(&buffer, &malloc_allocator);
writer.WriteFullSnapshot();
@@ -902,7 +902,7 @@ UNIT_TEST_CASE(FullSnapshot1) {
TestIsolateScope __test_isolate__;
Isolate* isolate = Isolate::Current();
- Zone zone(isolate);
+ StackZone zone(isolate);
HandleScope scope(isolate);
// Create a test library and Load up a test script in it.
@@ -1070,7 +1070,7 @@ UNIT_TEST_CASE(ScriptSnapshot) {
TEST_CASE(IntArrayMessage) {
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
uint8_t* buffer = NULL;
ApiMessageWriter writer(&buffer, &zone_allocator);
@@ -1153,7 +1153,7 @@ UNIT_TEST_CASE(DartGeneratedMessages) {
DARTSCOPE_NOCHECKS(isolate);
{
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
uint8_t* buffer;
MessageWriter writer(&buffer, &zone_allocator);
Smi& smi = Smi::Handle();
@@ -1171,7 +1171,7 @@ UNIT_TEST_CASE(DartGeneratedMessages) {
CheckEncodeDecodeMessage(root);
}
{
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
uint8_t* buffer;
MessageWriter writer(&buffer, &zone_allocator);
Bigint& bigint = Bigint::Handle();
@@ -1190,7 +1190,7 @@ UNIT_TEST_CASE(DartGeneratedMessages) {
CheckEncodeDecodeMessage(root);
}
{
- Zone zone(Isolate::Current());
+ StackZone zone(Isolate::Current());
uint8_t* buffer;
MessageWriter writer(&buffer, &zone_allocator);
String& str = String::Handle();
« no previous file with comments | « runtime/vm/runtime_entry.h ('k') | runtime/vm/symbols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698