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 27 matching lines...) Expand all Loading... |
38 #include <unistd.h> | 38 #include <unistd.h> |
39 #endif | 39 #endif |
40 | 40 |
41 #include <utility> | 41 #include <utility> |
42 | 42 |
43 #include "src/v8.h" | 43 #include "src/v8.h" |
44 | 44 |
45 #include "src/full-codegen/full-codegen.h" | 45 #include "src/full-codegen/full-codegen.h" |
46 #include "src/global-handles.h" | 46 #include "src/global-handles.h" |
47 #include "test/cctest/cctest.h" | 47 #include "test/cctest/cctest.h" |
48 #include "test/cctest/heap-tester.h" | 48 #include "test/cctest/heap/heap-tester.h" |
| 49 #include "test/cctest/heap/utils-inl.h" |
| 50 |
49 | 51 |
50 using namespace v8::internal; | 52 using namespace v8::internal; |
51 using v8::Just; | 53 using v8::Just; |
52 | 54 |
53 | 55 |
54 TEST(MarkingDeque) { | 56 TEST(MarkingDeque) { |
55 CcTest::InitializeVM(); | 57 CcTest::InitializeVM(); |
56 int mem_size = 20 * kPointerSize; | 58 int mem_size = 20 * kPointerSize; |
57 byte* mem = NewArray<byte>(20*kPointerSize); | 59 byte* mem = NewArray<byte>(20*kPointerSize); |
58 Address low = reinterpret_cast<Address>(mem); | 60 Address low = reinterpret_cast<Address>(mem); |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 | 491 |
490 | 492 |
491 TEST(RegressJoinThreadsOnIsolateDeinit) { | 493 TEST(RegressJoinThreadsOnIsolateDeinit) { |
492 intptr_t size_limit = ShortLivingIsolate() * 2; | 494 intptr_t size_limit = ShortLivingIsolate() * 2; |
493 for (int i = 0; i < 10; i++) { | 495 for (int i = 0; i < 10; i++) { |
494 CHECK_GT(size_limit, ShortLivingIsolate()); | 496 CHECK_GT(size_limit, ShortLivingIsolate()); |
495 } | 497 } |
496 } | 498 } |
497 | 499 |
498 #endif // __linux__ and !USE_SIMULATOR | 500 #endif // __linux__ and !USE_SIMULATOR |
OLD | NEW |