OLD | NEW |
1 // Copyright 2007-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "src/v8.h" | 32 #include "src/v8.h" |
33 | 33 |
34 #include "src/ast/scopeinfo.h" | 34 #include "src/ast/scopeinfo.h" |
35 #include "src/bootstrapper.h" | 35 #include "src/bootstrapper.h" |
36 #include "src/compilation-cache.h" | 36 #include "src/compilation-cache.h" |
37 #include "src/debug/debug.h" | 37 #include "src/debug/debug.h" |
38 #include "src/heap/spaces.h" | 38 #include "src/heap/spaces.h" |
39 #include "src/objects.h" | 39 #include "src/objects.h" |
40 #include "src/parsing/parser.h" | 40 #include "src/parsing/parser.h" |
41 #include "src/runtime/runtime.h" | 41 #include "src/runtime/runtime.h" |
| 42 #include "src/snapshot/code-serializer.h" |
| 43 #include "src/snapshot/deserializer.h" |
42 #include "src/snapshot/natives.h" | 44 #include "src/snapshot/natives.h" |
43 #include "src/snapshot/serialize.h" | 45 #include "src/snapshot/partial-serializer.h" |
44 #include "src/snapshot/snapshot.h" | 46 #include "src/snapshot/snapshot.h" |
| 47 #include "src/snapshot/startup-serializer.h" |
45 #include "test/cctest/cctest.h" | 48 #include "test/cctest/cctest.h" |
46 #include "test/cctest/heap/utils-inl.h" | 49 #include "test/cctest/heap/utils-inl.h" |
47 | 50 |
48 using namespace v8::internal; | 51 using namespace v8::internal; |
49 | 52 |
50 | 53 |
51 bool DefaultSnapshotAvailable() { | 54 bool DefaultSnapshotAvailable() { |
52 return i::Snapshot::DefaultSnapshotBlob() != NULL; | 55 return i::Snapshot::DefaultSnapshotBlob() != NULL; |
53 } | 56 } |
54 | 57 |
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1765 delete script_data; | 1768 delete script_data; |
1766 } | 1769 } |
1767 | 1770 |
1768 | 1771 |
1769 TEST(SerializationMemoryStats) { | 1772 TEST(SerializationMemoryStats) { |
1770 FLAG_profile_deserialization = true; | 1773 FLAG_profile_deserialization = true; |
1771 FLAG_always_opt = false; | 1774 FLAG_always_opt = false; |
1772 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); | 1775 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); |
1773 delete[] blob.data; | 1776 delete[] blob.data; |
1774 } | 1777 } |
OLD | NEW |