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

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

Issue 3135026: Merge flush code phase into marking phase. (Closed)
Patch Set: returned checked casts Created 10 years, 4 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/stub-cache.h ('k') | tools/gc-nvp-trace-processor.py » ('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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 966
967 // Check function is compiled. 967 // Check function is compiled.
968 Object* func_value = Top::context()->global()->GetProperty(*foo_name); 968 Object* func_value = Top::context()->global()->GetProperty(*foo_name);
969 CHECK(func_value->IsJSFunction()); 969 CHECK(func_value->IsJSFunction());
970 Handle<JSFunction> function(JSFunction::cast(func_value)); 970 Handle<JSFunction> function(JSFunction::cast(func_value));
971 CHECK(function->shared()->is_compiled()); 971 CHECK(function->shared()->is_compiled());
972 972
973 Heap::CollectAllGarbage(true); 973 Heap::CollectAllGarbage(true);
974 Heap::CollectAllGarbage(true); 974 Heap::CollectAllGarbage(true);
975 975
976 // foo should still be in the compilation cache and therefore not
977 // have been removed.
978 CHECK(function->shared()->is_compiled()); 976 CHECK(function->shared()->is_compiled());
977
979 Heap::CollectAllGarbage(true); 978 Heap::CollectAllGarbage(true);
980 Heap::CollectAllGarbage(true); 979 Heap::CollectAllGarbage(true);
981 Heap::CollectAllGarbage(true); 980 Heap::CollectAllGarbage(true);
981 Heap::CollectAllGarbage(true);
982 Heap::CollectAllGarbage(true); 982 Heap::CollectAllGarbage(true);
983 983
984 // foo should no longer be in the compilation cache 984 // foo should no longer be in the compilation cache
985 CHECK(!function->shared()->is_compiled()); 985 CHECK(!function->shared()->is_compiled());
986 CHECK(!function->is_compiled());
986 // Call foo to get it recompiled. 987 // Call foo to get it recompiled.
987 CompileRun("foo()"); 988 CompileRun("foo()");
988 CHECK(function->shared()->is_compiled()); 989 CHECK(function->shared()->is_compiled());
990 CHECK(function->is_compiled());
989 } 991 }
OLDNEW
« no previous file with comments | « src/stub-cache.h ('k') | tools/gc-nvp-trace-processor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698