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

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

Issue 1294763004: [heap] Hide GCTracer inside the heap component. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« src/heap/heap.h ('K') | « test/cctest/test-gc-tracer.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 10 matching lines...) Expand all
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include <stdlib.h> 28 #include <stdlib.h>
29 #include <utility> 29 #include <utility>
30 30
31 #include "src/v8.h"
32
33 #include "src/compilation-cache.h" 31 #include "src/compilation-cache.h"
34 #include "src/context-measure.h" 32 #include "src/context-measure.h"
35 #include "src/deoptimizer.h" 33 #include "src/deoptimizer.h"
36 #include "src/execution.h" 34 #include "src/execution.h"
37 #include "src/factory.h" 35 #include "src/factory.h"
38 #include "src/global-handles.h" 36 #include "src/global-handles.h"
37 #include "src/heap/gc-tracer.h"
39 #include "src/ic/ic.h" 38 #include "src/ic/ic.h"
40 #include "src/macro-assembler.h" 39 #include "src/macro-assembler.h"
41 #include "src/snapshot/snapshot.h" 40 #include "src/snapshot/snapshot.h"
42 #include "test/cctest/cctest.h" 41 #include "test/cctest/cctest.h"
43 42
44 using namespace v8::internal; 43 using namespace v8::internal;
45 using v8::Just; 44 using v8::Just;
46 45
47 static void CheckMap(Map* map, int type, int instance_size) { 46 static void CheckMap(Map* map, int type, int instance_size) {
48 CHECK(map->IsHeapObject()); 47 CHECK(map->IsHeapObject());
(...skipping 6331 matching lines...) Expand 10 before | Expand all | Expand 10 after
6380 6379
6381 PrintF("Context size : %d bytes\n", measure.Size()); 6380 PrintF("Context size : %d bytes\n", measure.Size());
6382 PrintF("Context object count: %d\n", measure.Count()); 6381 PrintF("Context object count: %d\n", measure.Count());
6383 6382
6384 CHECK_LE(1000, measure.Count()); 6383 CHECK_LE(1000, measure.Count());
6385 CHECK_LE(50000, measure.Size()); 6384 CHECK_LE(50000, measure.Size());
6386 6385
6387 CHECK_LE(measure.Count(), count_upper_limit); 6386 CHECK_LE(measure.Count(), count_upper_limit);
6388 CHECK_LE(measure.Size(), size_upper_limit); 6387 CHECK_LE(measure.Size(), size_upper_limit);
6389 } 6388 }
OLDNEW
« src/heap/heap.h ('K') | « test/cctest/test-gc-tracer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698