Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Side by Side Diff: test/cctest/test-mark-compact.cc

Issue 11421098: Disable stress for some unit test. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-api.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698