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

Side by Side Diff: test/cctest/test-heap.cc

Issue 3615009: Parallelize marking phase of mark-sweep/compact collection cycle. (Closed)
Patch Set: Created 10 years, 2 months 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
« no previous file with comments | « src/x64/assembler-x64-inl.h ('k') | test/cctest/test-mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 2
3 #include <stdlib.h> 3 #include <stdlib.h>
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "execution.h" 7 #include "execution.h"
8 #include "factory.h" 8 #include "factory.h"
9 #include "macro-assembler.h" 9 #include "macro-assembler.h"
10 #include "global-handles.h" 10 #include "global-handles.h"
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 Address clone_addr = clone->address(); 955 Address clone_addr = clone->address();
956 Page* page = Page::FromAddress(clone_addr); 956 Page* page = Page::FromAddress(clone_addr);
957 // Check that region covering inobject property 1 is marked dirty. 957 // Check that region covering inobject property 1 is marked dirty.
958 CHECK(page->IsRegionDirty(clone_addr + (object_size - kPointerSize))); 958 CHECK(page->IsRegionDirty(clone_addr + (object_size - kPointerSize)));
959 } 959 }
960 960
961 TEST(TestCodeFlushing) { 961 TEST(TestCodeFlushing) {
962 i::FLAG_allow_natives_syntax = true; 962 i::FLAG_allow_natives_syntax = true;
963 // If we do not flush code this test is invalid. 963 // If we do not flush code this test is invalid.
964 if (!FLAG_flush_code) return; 964 if (!FLAG_flush_code) return;
965 // Code flushing does not work predictably with parallel marking.
966 if (FLAG_parallel_marking) return;
965 InitializeVM(); 967 InitializeVM();
966 v8::HandleScope scope; 968 v8::HandleScope scope;
967 const char* source = "function foo() {" 969 const char* source = "function foo() {"
968 " var x = 42;" 970 " var x = 42;"
969 " var y = 42;" 971 " var y = 42;"
970 " var z = x + y;" 972 " var z = x + y;"
971 "};" 973 "};"
972 "foo()"; 974 "foo()";
973 Handle<String> foo_name = Factory::LookupAsciiSymbol("foo"); 975 Handle<String> foo_name = Factory::LookupAsciiSymbol("foo");
974 976
(...skipping 19 matching lines...) Expand all
994 Heap::CollectAllGarbage(true); 996 Heap::CollectAllGarbage(true);
995 997
996 // foo should no longer be in the compilation cache 998 // foo should no longer be in the compilation cache
997 CHECK(!function->shared()->is_compiled()); 999 CHECK(!function->shared()->is_compiled());
998 CHECK(!function->is_compiled()); 1000 CHECK(!function->is_compiled());
999 // Call foo to get it recompiled. 1001 // Call foo to get it recompiled.
1000 CompileRun("foo()"); 1002 CompileRun("foo()");
1001 CHECK(function->shared()->is_compiled()); 1003 CHECK(function->shared()->is_compiled());
1002 CHECK(function->is_compiled()); 1004 CHECK(function->is_compiled());
1003 } 1005 }
OLDNEW
« no previous file with comments | « src/x64/assembler-x64-inl.h ('k') | test/cctest/test-mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698