OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 304 |
305 | 305 |
306 static int NumberOfWeakCalls = 0; | 306 static int NumberOfWeakCalls = 0; |
307 static void WeakPointerCallback(v8::Persistent<v8::Value> handle, void* id) { | 307 static void WeakPointerCallback(v8::Persistent<v8::Value> handle, void* id) { |
308 ASSERT(id == reinterpret_cast<void*>(1234)); | 308 ASSERT(id == reinterpret_cast<void*>(1234)); |
309 NumberOfWeakCalls++; | 309 NumberOfWeakCalls++; |
310 handle.Dispose(); | 310 handle.Dispose(); |
311 } | 311 } |
312 | 312 |
313 TEST(ObjectGroups) { | 313 TEST(ObjectGroups) { |
| 314 FLAG_incremental_marking = false; |
314 InitializeVM(); | 315 InitializeVM(); |
315 GlobalHandles* global_handles = Isolate::Current()->global_handles(); | 316 GlobalHandles* global_handles = Isolate::Current()->global_handles(); |
316 | 317 |
317 NumberOfWeakCalls = 0; | 318 NumberOfWeakCalls = 0; |
318 v8::HandleScope handle_scope; | 319 v8::HandleScope handle_scope; |
319 | 320 |
320 Handle<Object> g1s1 = | 321 Handle<Object> g1s1 = |
321 global_handles->Create(HEAP->AllocateFixedArray(1)->ToObjectChecked()); | 322 global_handles->Create(HEAP->AllocateFixedArray(1)->ToObjectChecked()); |
322 Handle<Object> g1s2 = | 323 Handle<Object> g1s2 = |
323 global_handles->Create(HEAP->AllocateFixedArray(1)->ToObjectChecked()); | 324 global_handles->Create(HEAP->AllocateFixedArray(1)->ToObjectChecked()); |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 if (v8::internal::Snapshot::IsEnabled()) { | 548 if (v8::internal::Snapshot::IsEnabled()) { |
548 CHECK_LE(delta, 2500 * 1024); // 2400. | 549 CHECK_LE(delta, 2500 * 1024); // 2400. |
549 } else { | 550 } else { |
550 CHECK_LE(delta, 2860 * 1024); // 2760. | 551 CHECK_LE(delta, 2860 * 1024); // 2760. |
551 } | 552 } |
552 } | 553 } |
553 } | 554 } |
554 } | 555 } |
555 | 556 |
556 #endif // __linux__ and !USE_SIMULATOR | 557 #endif // __linux__ and !USE_SIMULATOR |
OLD | NEW |