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 1803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1814 CHECK(shared->is_compiled()); | 1814 CHECK(shared->is_compiled()); |
1815 CHECK_EQ(Code::kPreAgedCodeAge, shared->code()->GetAge()); | 1815 CHECK_EQ(Code::kPreAgedCodeAge, shared->code()->GetAge()); |
1816 count++; | 1816 count++; |
1817 } | 1817 } |
1818 CHECK_EQ(3, count); | 1818 CHECK_EQ(3, count); |
1819 } | 1819 } |
1820 isolate2->Dispose(); | 1820 isolate2->Dispose(); |
1821 } | 1821 } |
1822 | 1822 |
1823 TEST(Regress503552) { | 1823 TEST(Regress503552) { |
| 1824 if (!FLAG_incremental_marking) return; |
1824 // Test that the code serializer can deal with weak cells that form a linked | 1825 // Test that the code serializer can deal with weak cells that form a linked |
1825 // list during incremental marking. | 1826 // list during incremental marking. |
1826 CcTest::InitializeVM(); | 1827 CcTest::InitializeVM(); |
1827 Isolate* isolate = CcTest::i_isolate(); | 1828 Isolate* isolate = CcTest::i_isolate(); |
1828 | 1829 |
1829 HandleScope scope(isolate); | 1830 HandleScope scope(isolate); |
1830 Handle<String> source = isolate->factory()->NewStringFromAsciiChecked( | 1831 Handle<String> source = isolate->factory()->NewStringFromAsciiChecked( |
1831 "function f() {} function g() {}"); | 1832 "function f() {} function g() {}"); |
1832 ScriptData* script_data = NULL; | 1833 ScriptData* script_data = NULL; |
1833 Handle<SharedFunctionInfo> shared = Compiler::GetSharedFunctionInfoForScript( | 1834 Handle<SharedFunctionInfo> shared = Compiler::GetSharedFunctionInfoForScript( |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2301 } | 2302 } |
2302 delete[] blob.data; | 2303 delete[] blob.data; |
2303 } | 2304 } |
2304 | 2305 |
2305 TEST(SerializationMemoryStats) { | 2306 TEST(SerializationMemoryStats) { |
2306 FLAG_profile_deserialization = true; | 2307 FLAG_profile_deserialization = true; |
2307 FLAG_always_opt = false; | 2308 FLAG_always_opt = false; |
2308 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); | 2309 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); |
2309 delete[] blob.data; | 2310 delete[] blob.data; |
2310 } | 2311 } |
OLD | NEW |