| Index: test/cctest/test-serialize.cc
|
| diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc
|
| index acd904f4b79dfd29dc51bbe262b09167494b9bc6..9c2321258eea31d16106214d3fa50154a3388aef 100644
|
| --- a/test/cctest/test-serialize.cc
|
| +++ b/test/cctest/test-serialize.cc
|
| @@ -188,7 +188,7 @@
|
| if (!str) return NULL;
|
| v8::Isolate* v8_isolate = NULL;
|
| {
|
| - SnapshotData snapshot_data(Vector<const byte>(str, len));
|
| + SnapshotData snapshot_data(str, len);
|
| Deserializer deserializer(&snapshot_data);
|
| Isolate* isolate = Isolate::NewForTesting();
|
| v8_isolate = reinterpret_cast<v8::Isolate*>(isolate);
|
| @@ -393,7 +393,7 @@
|
| Isolate* isolate = reinterpret_cast<Isolate*>(v8_isolate);
|
| Object* root;
|
| {
|
| - SnapshotData snapshot_data(Vector<const byte>(snapshot, snapshot_size));
|
| + SnapshotData snapshot_data(snapshot, snapshot_size);
|
| Deserializer deserializer(&snapshot_data);
|
| deserializer.DeserializePartial(isolate, &root);
|
| CHECK(root->IsString());
|
| @@ -404,7 +404,7 @@
|
|
|
| Object* root2;
|
| {
|
| - SnapshotData snapshot_data(Vector<const byte>(snapshot, snapshot_size));
|
| + SnapshotData snapshot_data(snapshot, snapshot_size);
|
| Deserializer deserializer(&snapshot_data);
|
| deserializer.DeserializePartial(isolate, &root2);
|
| CHECK(root2->IsString());
|
| @@ -503,7 +503,7 @@
|
| Isolate* isolate = reinterpret_cast<Isolate*>(v8_isolate);
|
| Object* root;
|
| {
|
| - SnapshotData snapshot_data(Vector<const byte>(snapshot, snapshot_size));
|
| + SnapshotData snapshot_data(snapshot, snapshot_size);
|
| Deserializer deserializer(&snapshot_data);
|
| deserializer.DeserializePartial(isolate, &root);
|
| CHECK(root->IsContext());
|
| @@ -514,7 +514,7 @@
|
|
|
| Object* root2;
|
| {
|
| - SnapshotData snapshot_data(Vector<const byte>(snapshot, snapshot_size));
|
| + SnapshotData snapshot_data(snapshot, snapshot_size);
|
| Deserializer deserializer(&snapshot_data);
|
| deserializer.DeserializePartial(isolate, &root2);
|
| CHECK(root2->IsContext());
|
|
|