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 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 | 1120 |
1121 int result_int; | 1121 int result_int; |
1122 CHECK(copy_result->ToInt32(&result_int)); | 1122 CHECK(copy_result->ToInt32(&result_int)); |
1123 CHECK_EQ(7, result_int); | 1123 CHECK_EQ(7, result_int); |
1124 | 1124 |
1125 delete cache; | 1125 delete cache; |
1126 source.Dispose(); | 1126 source.Dispose(); |
1127 } | 1127 } |
1128 | 1128 |
1129 TEST(CodeSerializerLargeCodeObjectWithIncrementalMarking) { | 1129 TEST(CodeSerializerLargeCodeObjectWithIncrementalMarking) { |
| 1130 FLAG_stress_incremental_marking = false; |
1130 FLAG_serialize_toplevel = true; | 1131 FLAG_serialize_toplevel = true; |
1131 FLAG_always_opt = false; | 1132 FLAG_always_opt = false; |
1132 // This test relies on (full-codegen) code objects going to large object | 1133 // This test relies on (full-codegen) code objects going to large object |
1133 // space. Once FCG goes away, it must either be redesigned (to put some | 1134 // space. Once FCG goes away, it must either be redesigned (to put some |
1134 // other large deserialized object into LO space), or it can be deleted. | 1135 // other large deserialized object into LO space), or it can be deleted. |
1135 FLAG_ignition = false; | 1136 FLAG_ignition = false; |
1136 const char* filter_flag = "--turbo-filter=NOTHING"; | 1137 const char* filter_flag = "--turbo-filter=NOTHING"; |
1137 FlagList::SetFlagsFromString(filter_flag, StrLength(filter_flag)); | 1138 FlagList::SetFlagsFromString(filter_flag, StrLength(filter_flag)); |
1138 FLAG_black_allocation = true; | 1139 FLAG_black_allocation = true; |
1139 FLAG_manual_evacuation_candidates_selection = true; | 1140 FLAG_manual_evacuation_candidates_selection = true; |
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2546 } | 2547 } |
2547 delete[] blob.data; | 2548 delete[] blob.data; |
2548 } | 2549 } |
2549 | 2550 |
2550 TEST(SerializationMemoryStats) { | 2551 TEST(SerializationMemoryStats) { |
2551 FLAG_profile_deserialization = true; | 2552 FLAG_profile_deserialization = true; |
2552 FLAG_always_opt = false; | 2553 FLAG_always_opt = false; |
2553 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); | 2554 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); |
2554 delete[] blob.data; | 2555 delete[] blob.data; |
2555 } | 2556 } |
OLD | NEW |