Home
last modified time | relevance | path

Searched refs:CcTest (Results 1 – 25 of 111) sorted by relevance

12345

/external/v8/test/cctest/
Dtest-func-name-inference.cc55 Isolate* isolate = CcTest::i_isolate(); in CheckFunctionName()
106 CcTest::InitializeVM(); in TEST()
107 v8::HandleScope scope(CcTest::isolate()); in TEST()
109 v8::Local<v8::Script> script = Compile(CcTest::isolate(), in TEST()
118 CcTest::InitializeVM(); in TEST()
119 v8::HandleScope scope(CcTest::isolate()); in TEST()
122 Compile(CcTest::isolate(), in TEST()
131 CcTest::InitializeVM(); in TEST()
132 v8::HandleScope scope(CcTest::isolate()); in TEST()
135 Compile(CcTest::isolate(), in TEST()
[all …]
Dtest-decls.cc55 Isolate* isolate = CcTest::isolate(); in ~DeclarationContext()
97 v8::Isolate* isolate() const { return CcTest::isolate(); } in isolate()
119 Isolate* isolate = CcTest::isolate(); in InitializeIfNeeded()
122 Local<Value> data = External::New(CcTest::isolate(), this); in InitializeIfNeeded()
146 CcTest::heap()->CollectGarbage(v8::internal::NEW_SPACE); in Check()
147 HandleScope scope(CcTest::isolate()); in Check()
148 TryCatch catcher(CcTest::isolate()); in Check()
150 Local<Context> context = CcTest::isolate()->GetCurrentContext(); in Check()
153 String::NewFromUtf8(CcTest::isolate(), source, v8::NewStringType::kNormal) in Check()
177 CcTest::heap()->CollectAllAvailableGarbage(); in Check()
[all …]
Dtest-compiler.cc41 Isolate* isolate = CcTest::i_isolate(); in GetGlobalProperty()
48 Isolate* isolate = CcTest::i_isolate(); in SetGlobalProperty()
59 Isolate* isolate = CcTest::i_isolate(); in Compile()
86 CcTest::InitializeVM(); in TEST()
87 v8::HandleScope scope(CcTest::isolate()); in TEST()
88 CHECK_EQ(4.0, Inc(CcTest::i_isolate(), 3)); in TEST()
105 CcTest::InitializeVM(); in TEST()
106 v8::HandleScope scope(CcTest::isolate()); in TEST()
107 CHECK_EQ(5.0, Add(CcTest::i_isolate(), 2, 3)); in TEST()
123 CcTest::InitializeVM(); in TEST()
[all …]
Dtest-mementos.cc34 Isolate* isolate = CcTest::i_isolate(); in SetUpNewSpaceWithPoisonedMementoAtTop()
57 CcTest::InitializeVM(); in TEST()
59 v8::HandleScope scope(CcTest::isolate()); in TEST()
65 CcTest::i_isolate()->heap()->CollectAllGarbage( in TEST()
71 CcTest::InitializeVM(); in TEST()
73 v8::HandleScope scope(CcTest::isolate()); in TEST()
78 Address top = CcTest::i_isolate()->heap()->new_space()->top(); in TEST()
79 *(CcTest::i_isolate()->heap()->new_space()->allocation_limit_address()) = top; in TEST()
83 CcTest::i_isolate()->heap()->CollectAllGarbage( in TEST()
89 CcTest::InitializeVM(); in TEST()
[all …]
Dtest-object-observe.cc43 HandleScope scope(CcTest::isolate()); in TEST()
44 LocalContext context1(CcTest::isolate()); in TEST()
60 LocalContext context2(CcTest::isolate()); in TEST()
71 LocalContext context3(CcTest::isolate()); in TEST()
80 LocalContext context4(CcTest::isolate()); in TEST()
107 HandleScope scope(CcTest::isolate()); in TEST()
108 LocalContext context(CcTest::isolate()); in TEST()
121 HandleScope scope(CcTest::isolate()); in TEST()
122 LocalContext context(CcTest::isolate()); in TEST()
153 HandleScope scope(CcTest::isolate()); in TEST()
[all …]
Dtest-thread-termination.cc125 v8::HandleScope scope(CcTest::isolate()); in TEST()
127 CreateGlobalTemplate(CcTest::isolate(), TerminateCurrentThread, DoLoop); in TEST()
129 v8::Context::New(CcTest::isolate(), NULL, global); in TEST()
131 CHECK(!CcTest::isolate()->IsExecutionTerminating()); in TEST()
134 CompileRun(CcTest::isolate()->GetCurrentContext(), in TEST()
138 CHECK(!CcTest::isolate()->IsExecutionTerminating()); in TEST()
139 result = CompileRun(CcTest::isolate()->GetCurrentContext(), in TEST()
148 v8::HandleScope scope(CcTest::isolate()); in TEST()
150 CcTest::isolate(), TerminateCurrentThread, DoLoopNoCall); in TEST()
152 v8::Context::New(CcTest::isolate(), NULL, global); in TEST()
[all …]
Dcctest.cc48 CcTest* CcTest::last_ = NULL;
49 bool CcTest::initialize_called_ = false;
50 v8::base::Atomic32 CcTest::isolate_used_ = 0;
51 v8::ArrayBuffer::Allocator* CcTest::allocator_ = NULL;
52 v8::Isolate* CcTest::isolate_ = NULL;
55 CcTest::CcTest(TestFunction* callback, const char* file, const char* name, in CcTest() function in CcTest
79 void CcTest::Run() { in Run()
83 CHECK(CcTest::isolate_ == NULL); in Run()
107 v8::Local<v8::Context> CcTest::NewContext(CcTestExtensionFlags extensions, in NewContext()
122 void CcTest::DisableAutomaticDispose() { in DisableAutomaticDispose()
[all …]
Dtest-field-type-tracking.cc42 Isolate* isolate = CcTest::i_isolate(); in MakeString()
57 Isolate* isolate = CcTest::i_isolate(); in CreateAccessorPair()
397 Isolate* isolate = CcTest::i_isolate(); in TransitionToAccessorConstant()
421 CcTest::InitializeVM(); in TEST()
422 v8::HandleScope scope(CcTest::isolate()); in TEST()
423 Isolate* isolate = CcTest::i_isolate(); in TEST()
482 CcTest::InitializeVM(); in TEST()
483 Isolate* isolate = CcTest::i_isolate(); in TEST()
485 v8::HandleScope scope(CcTest::isolate()); in TEST()
540 Isolate* isolate = CcTest::i_isolate(); in TestGeneralizeRepresentation()
[all …]
Dtest-unboxed-doubles.cc40 Isolate* isolate = CcTest::i_isolate(); in MakeString()
56 CcTest::global() in GetObject()
123 CcTest::InitializeVM(); in TEST()
124 v8::HandleScope scope(CcTest::isolate()); in TEST()
159 CcTest::InitializeVM(); in TEST()
160 Isolate* isolate = CcTest::i_isolate(); in TEST()
161 v8::HandleScope scope(CcTest::isolate()); in TEST()
248 CcTest::i_isolate(), layout_descriptor_length); in TestLayoutDescriptorQueries()
357 CcTest::InitializeVM(); in TEST()
358 v8::HandleScope scope(CcTest::isolate()); in TEST()
[all …]
Dtest-dictionary.cc47 Isolate* isolate = CcTest::i_isolate(); in TestHashMap()
56 CHECK_EQ(table->Lookup(b), CcTest::heap()->the_hole_value()); in TestHashMap()
59 CcTest::heap()->CollectGarbage(NEW_SPACE); in TestHashMap()
62 CHECK_EQ(table->Lookup(b), CcTest::heap()->the_hole_value()); in TestHashMap()
74 CHECK_EQ(table->Lookup(a), CcTest::heap()->the_hole_value()); in TestHashMap()
94 CHECK_EQ(table->Lookup(key), CcTest::heap()->the_hole_value()); in TestHashMap()
102 CHECK_EQ(table->Lookup(key), CcTest::heap()->the_hole_value()); in TestHashMap()
104 CHECK_EQ(identity_hash, CcTest::heap()->undefined_value()); in TestHashMap()
112 Isolate* isolate = CcTest::i_isolate(); in TEST()
137 Isolate* isolate = CcTest::i_isolate(); in TEST()
[all …]
Dtest-inobject-slack-tracking.cc42 Isolate* isolate = CcTest::i_isolate(); in GetGlobal()
54 Isolate* isolate = CcTest::i_isolate(); in GetLexical()
116 CcTest::i_isolate()->factory()->one_pointer_filler_map(); in IsObjectShrinkable()
135 CcTest::InitializeVM(); in TEST()
136 v8::HandleScope scope(CcTest::isolate()); in TEST()
194 CcTest::InitializeVM(); in TEST()
195 v8::HandleScope scope(CcTest::isolate()); in TEST()
275 CcTest::InitializeVM(); in TEST()
276 v8::HandleScope scope(CcTest::isolate()); in TEST()
342 CcTest::InitializeVM(); in TEST()
[all …]
Dtest-strings.cc137 Isolate* isolate = CcTest::i_isolate(); in InitializeBuildingBlocks()
195 *v8::String::NewExternalTwoByte(CcTest::isolate(), resource) in InitializeBuildingBlocks()
209 *v8::String::NewExternalOneByte(CcTest::isolate(), resource) in InitializeBuildingBlocks()
292 empty_string_ = CcTest::heap()->empty_string(); in ConsStringGenerationData()
396 Factory* factory = CcTest::i_isolate()->factory(); in ConstructRandomString()
458 Factory* factory = CcTest::i_isolate()->factory(); in ConstructLeft()
477 Factory* factory = CcTest::i_isolate()->factory(); in ConstructRight()
497 Factory* factory = CcTest::i_isolate()->factory(); in ConstructBalancedHelper()
562 CcTest::InitializeVM(); in TEST()
563 v8::HandleScope scope(CcTest::isolate()); in TEST()
[all …]
Dtest-deoptimization.cc138 NonIncrementalGC(CcTest::i_isolate()); in TEST()
146 CHECK_EQ(0, Deoptimizer::GetDeoptimizedCodeCount(CcTest::i_isolate())); in TEST()
158 NonIncrementalGC(CcTest::i_isolate()); in TEST()
166 CHECK_EQ(0, Deoptimizer::GetDeoptimizedCodeCount(CcTest::i_isolate())); in TEST()
184 NonIncrementalGC(CcTest::i_isolate()); in TEST()
192 CHECK_EQ(0, Deoptimizer::GetDeoptimizedCodeCount(CcTest::i_isolate())); in TEST()
205 NonIncrementalGC(CcTest::i_isolate()); in TEST()
213 CHECK_EQ(0, Deoptimizer::GetDeoptimizedCodeCount(CcTest::i_isolate())); in TEST()
232 NonIncrementalGC(CcTest::i_isolate()); in TEST()
245 CHECK_EQ(0, Deoptimizer::GetDeoptimizedCodeCount(CcTest::i_isolate())); in TEST()
[all …]
Dtest-elements-kind.cc29 Isolate* isolate = CcTest::i_isolate(); in MakeString()
70 CcTest::InitializeVM(); in TEST()
71 Isolate* isolate = CcTest::i_isolate(); in TEST()
73 v8::HandleScope scope(CcTest::isolate()); in TEST()
98 CcTest::InitializeVM(); in TEST()
99 Isolate* isolate = CcTest::i_isolate(); in TEST()
101 v8::HandleScope scope(CcTest::isolate()); in TEST()
143 CcTest::InitializeVM(); in TEST()
144 Isolate* isolate = CcTest::i_isolate(); in TEST()
146 v8::HandleScope scope(CcTest::isolate()); in TEST()
[all …]
Dtest-lockers.cc101 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); in TEST()
219 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); in TEST()
262 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); in TEST()
307 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); in TEST()
392 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); in TEST()
449 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); in TEST()
514 create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); in TEST()
534 CHECK(!v8::Locker::IsLocked(CcTest::isolate())); in Run()
546 CHECK(!v8::Locker::IsLocked(CcTest::isolate())); in Run()
552 CHECK(!v8::Locker::IsLocked(CcTest::isolate())); in Run()
[all …]
Dtest-assembler-x87.cc51 CcTest::InitializeVM(); in TEST()
52 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate()); in TEST()
78 CcTest::InitializeVM(); in TEST()
79 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate()); in TEST()
115 CcTest::InitializeVM(); in TEST()
116 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate()); in TEST()
161 CcTest::InitializeVM(); in TEST()
162 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate()); in TEST()
184 CcTest::InitializeVM(); in TEST()
185 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate()); in TEST()
[all …]
Dtest-slots-buffer.cc13 CcTest::InitializeVM(); in TEST()
14 v8::HandleScope scope(CcTest::isolate()); in TEST()
15 Isolate* isolate = CcTest::i_isolate(); in TEST()
30 SlotsBuffer::RemoveObjectSlots(CcTest::i_isolate()->heap(), buffer, in TEST()
45 SlotsBuffer::RemoveObjectSlots(CcTest::i_isolate()->heap(), buffer, in TEST()
60 CcTest::InitializeVM(); in TEST()
61 v8::HandleScope scope(CcTest::isolate()); in TEST()
62 Isolate* isolate = CcTest::i_isolate(); in TEST()
Dcctest.h39 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, true, true); \
46 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, true, false); \
53 CcTest register_test_##Name(Test##Name, __FILE__, #Name, #Dep, true, true); \
60 CcTest register_test_##Name(Test##Name, __FILE__, #Name, #Dep, true, false); \
67 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, false, true); \
93 class CcTest { in EXTENSION_LIST()
96 CcTest(TestFunction* callback, const char* file, const char* name, in EXTENSION_LIST()
98 ~CcTest() { i::DeleteArray(file_); } in EXTENSION_LIST()
100 static CcTest* last() { return last_; } in EXTENSION_LIST()
101 CcTest* prev() { return prev_; } in EXTENSION_LIST()
[all …]
Dtest-feedback-vector.cc26 v8::MaybeLocal<v8::Value> v8_f = CcTest::global()->Get( in GetFunction()
37 Isolate* isolate = CcTest::i_isolate(); in TEST()
105 Isolate* isolate = CcTest::i_isolate(); in TEST()
159 Isolate* isolate = CcTest::i_isolate(); in TEST()
198 CcTest::InitializeVM(); in TEST()
201 Isolate* isolate = CcTest::i_isolate(); in TEST()
239 CcTest::InitializeVM(); in TEST()
242 Isolate* isolate = CcTest::i_isolate(); in TEST()
261 CcTest::global()->Get(context.local(), v8_str("o")); in TEST()
294 CcTest::InitializeVM(); in TEST()
[all …]
/external/v8/test/cctest/heap/
Dtest-heap.cc55 CHECK(CcTest::heap()->Contains(map)); in CheckMap()
57 CHECK_EQ(CcTest::heap()->meta_map(), map->map()); in CheckMap()
64 CcTest::InitializeVM(); in TEST()
65 Heap* heap = CcTest::heap(); in TEST()
133 CcTest::InitializeVM(); in TEST()
134 Isolate* isolate = CcTest::i_isolate(); in TEST()
143 CcTest::InitializeVM(); in TEST()
144 Isolate* isolate = CcTest::i_isolate(); in TEST()
204 CcTest::i_isolate()->context()->global_object()); in TEST()
248 CcTest::InitializeVM(); in TEST()
[all …]
Dtest-alloc.cc40 Heap* heap = CcTest::heap(); in AllocateAfterFailures()
51 *CcTest::i_isolate()->object_function()).ToObjectChecked(); in AllocateAfterFailures()
82 heap->CopyCode(CcTest::i_isolate()->builtins()->builtin( in AllocateAfterFailures()
94 CcTest::heap()->CollectAllAvailableGarbage("panic"); in TestAllocateAfterFailures()
95 AlwaysAllocateScope scope(CcTest::i_isolate()); in TestAllocateAfterFailures()
96 return handle(AllocateAfterFailures().ToObjectChecked(), CcTest::i_isolate()); in TestAllocateAfterFailures()
101 v8::HandleScope scope(CcTest::isolate()); in HEAP_TEST()
102 v8::Local<v8::Context> env = v8::Context::New(CcTest::isolate()); in HEAP_TEST()
137 Isolate* isolate = CcTest::i_isolate(); in TEST()
139 v8::HandleScope scope(CcTest::isolate()); in TEST()
[all …]
Dtest-mark-compact.cc54 CcTest::InitializeVM(); in TEST()
81 CcTest::InitializeVM(); in HEAP_TEST()
82 Heap* heap = CcTest::heap(); in HEAP_TEST()
85 v8::HandleScope sc(CcTest::isolate()); in HEAP_TEST()
107 CcTest::InitializeVM(); in HEAP_TEST()
108 Heap* heap = CcTest::heap(); in HEAP_TEST()
111 v8::HandleScope sc(CcTest::isolate()); in HEAP_TEST()
134 CcTest::InitializeVM(); in HEAP_TEST()
135 Isolate* isolate = CcTest::i_isolate(); in HEAP_TEST()
136 Heap* heap = CcTest::heap(); in HEAP_TEST()
[all …]
Dtest-incremental-marking.cc119 CcTest::InitializeVM(); in TEST()
123 SimulateFullSpace(CcTest::heap()->old_space()); in TEST()
124 i::IncrementalMarking* marking = CcTest::heap()->incremental_marking(); in TEST()
144 CcTest::InitializeVM(); in TEST()
148 SimulateFullSpace(CcTest::heap()->old_space()); in TEST()
149 CcTest::heap()->CollectAllGarbage(); in TEST()
150 i::IncrementalMarking* marking = CcTest::heap()->incremental_marking(); in TEST()
170 CcTest::InitializeVM(); in TEST()
174 SimulateFullSpace(CcTest::heap()->old_space()); in TEST()
175 i::IncrementalMarking* marking = CcTest::heap()->incremental_marking(); in TEST()
Dtest-lab.cc63 CcTest::InitializeVM(); in TEST()
64 Heap* heap = CcTest::heap(); in TEST()
83 CcTest::InitializeVM(); in TEST()
84 Heap* heap = CcTest::heap(); in TEST()
110 CcTest::InitializeVM(); in TEST()
111 Heap* heap = CcTest::heap(); in TEST()
139 CcTest::InitializeVM(); in TEST()
140 Heap* heap = CcTest::heap(); in TEST()
169 CcTest::InitializeVM(); in TEST()
170 Heap* heap = CcTest::heap(); in TEST()
[all …]
/external/v8/test/cctest/compiler/
Dtest-run-inlining.cc17 StackTraceFrameIterator it(CcTest::i_isolate()); in AssertInlineCount()
71 InstallAssertInlineCountHelper(CcTest::isolate()); in TEST()
85 InstallAssertInlineCountHelper(CcTest::isolate()); in TEST()
99 InstallAssertInlineCountHelper(CcTest::isolate()); in TEST()
113 InstallAssertInlineCountHelper(CcTest::isolate()); in TEST()
130 InstallAssertInlineCountHelper(CcTest::isolate()); in TEST()
145 InstallAssertInlineCountHelper(CcTest::isolate()); in TEST()
161 InstallAssertInlineCountHelper(CcTest::isolate()); in TEST()
176 InstallAssertInlineCountHelper(CcTest::isolate()); in TEST()
192 InstallAssertInlineCountHelper(CcTest::isolate()); in TEST()
[all …]

12345