| 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 28 matching lines...) Expand all Loading... |
| 39 #include "src/compilation-cache.h" | 39 #include "src/compilation-cache.h" |
| 40 #include "src/debug/debug.h" | 40 #include "src/debug/debug.h" |
| 41 #include "src/heap/spaces.h" | 41 #include "src/heap/spaces.h" |
| 42 #include "src/objects.h" | 42 #include "src/objects.h" |
| 43 #include "src/parsing/parser.h" | 43 #include "src/parsing/parser.h" |
| 44 #include "src/runtime/runtime.h" | 44 #include "src/runtime/runtime.h" |
| 45 #include "src/snapshot/natives.h" | 45 #include "src/snapshot/natives.h" |
| 46 #include "src/snapshot/serialize.h" | 46 #include "src/snapshot/serialize.h" |
| 47 #include "src/snapshot/snapshot.h" | 47 #include "src/snapshot/snapshot.h" |
| 48 #include "test/cctest/cctest.h" | 48 #include "test/cctest/cctest.h" |
| 49 #include "test/cctest/heap/utils-inl.h" |
| 49 | 50 |
| 50 using namespace v8::internal; | 51 using namespace v8::internal; |
| 51 | 52 |
| 52 | 53 |
| 53 bool DefaultSnapshotAvailable() { | 54 bool DefaultSnapshotAvailable() { |
| 54 return i::Snapshot::DefaultSnapshotBlob() != NULL; | 55 return i::Snapshot::DefaultSnapshotBlob() != NULL; |
| 55 } | 56 } |
| 56 | 57 |
| 57 | 58 |
| 58 void DisableTurbofan() { | 59 void DisableTurbofan() { |
| (...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1766 delete script_data; | 1767 delete script_data; |
| 1767 } | 1768 } |
| 1768 | 1769 |
| 1769 | 1770 |
| 1770 TEST(SerializationMemoryStats) { | 1771 TEST(SerializationMemoryStats) { |
| 1771 FLAG_profile_deserialization = true; | 1772 FLAG_profile_deserialization = true; |
| 1772 FLAG_always_opt = false; | 1773 FLAG_always_opt = false; |
| 1773 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); | 1774 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); |
| 1774 delete[] blob.data; | 1775 delete[] blob.data; |
| 1775 } | 1776 } |
| OLD | NEW |