| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 // TODO(mythria): Remove this define after this flag is turned on globally | 28 // TODO(mythria): Remove this define after this flag is turned on globally |
| 29 #define V8_IMMINENT_DEPRECATION_WARNINGS | 29 #define V8_IMMINENT_DEPRECATION_WARNINGS |
| 30 | 30 |
| 31 #include <signal.h> | 31 #include <signal.h> |
| 32 | 32 |
| 33 #include <sys/stat.h> | 33 #include <sys/stat.h> |
| 34 | 34 |
| 35 #include "src/v8.h" | 35 #include "src/v8.h" |
| 36 | 36 |
| 37 #include "src/ast/scopeinfo.h" |
| 37 #include "src/bootstrapper.h" | 38 #include "src/bootstrapper.h" |
| 38 #include "src/compilation-cache.h" | 39 #include "src/compilation-cache.h" |
| 39 #include "src/debug/debug.h" | 40 #include "src/debug/debug.h" |
| 40 #include "src/heap/spaces.h" | 41 #include "src/heap/spaces.h" |
| 41 #include "src/objects.h" | 42 #include "src/objects.h" |
| 42 #include "src/parser.h" | 43 #include "src/parsing/parser.h" |
| 43 #include "src/runtime/runtime.h" | 44 #include "src/runtime/runtime.h" |
| 44 #include "src/scopeinfo.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 | 49 |
| 50 using namespace v8::internal; | 50 using namespace v8::internal; |
| 51 | 51 |
| 52 | 52 |
| 53 bool DefaultSnapshotAvailable() { | 53 bool DefaultSnapshotAvailable() { |
| 54 return i::Snapshot::DefaultSnapshotBlob() != NULL; | 54 return i::Snapshot::DefaultSnapshotBlob() != NULL; |
| (...skipping 1726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1781 delete script_data; | 1781 delete script_data; |
| 1782 } | 1782 } |
| 1783 | 1783 |
| 1784 | 1784 |
| 1785 TEST(SerializationMemoryStats) { | 1785 TEST(SerializationMemoryStats) { |
| 1786 FLAG_profile_deserialization = true; | 1786 FLAG_profile_deserialization = true; |
| 1787 FLAG_always_opt = false; | 1787 FLAG_always_opt = false; |
| 1788 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); | 1788 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); |
| 1789 delete[] blob.data; | 1789 delete[] blob.data; |
| 1790 } | 1790 } |
| OLD | NEW |