Lines Matching refs:GetIsolate
351 v8::HandleScope scope(env->GetIsolate()); in TEST()
352 v8::CpuProfiler* cpu_profiler = env->GetIsolate()->GetCpuProfiler(); in TEST()
356 v8::Local<v8::String> name1 = v8::String::NewFromUtf8(env->GetIsolate(), "1"); in TEST()
365 v8::Local<v8::String> name2 = v8::String::NewFromUtf8(env->GetIsolate(), "2"); in TEST()
371 v8::Local<v8::String> name3 = v8::String::NewFromUtf8(env->GetIsolate(), "3"); in TEST()
390 v8::HandleScope scope(env->GetIsolate()); in TEST()
391 v8::CpuProfiler* cpu_profiler = env->GetIsolate()->GetCpuProfiler(); in TEST()
394 v8::String::NewFromUtf8(env->GetIsolate(), "test"); in TEST()
405 v8::CpuProfiler* cpu_profiler = env->GetIsolate()->GetCpuProfiler(); in RunProfiler()
407 v8::String::NewFromUtf8(env->GetIsolate(), "my_profile"); in RunProfiler()
412 reinterpret_cast<i::Isolate*>(env->GetIsolate())->logger()->sampler(); in RunProfiler()
543 v8::HandleScope scope(env->GetIsolate()); in TEST()
545 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
548 env->Global()->Get(v8::String::NewFromUtf8(env->GetIsolate(), "start"))); in TEST()
552 v8::Integer::New(env->GetIsolate(), profiling_interval_ms) in TEST()
562 env->GetIsolate(), ProfileGenerator::kGarbageCollectorEntryName); in TEST()
563 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
565 names[2] = v8::String::NewFromUtf8(env->GetIsolate(), "start"); in TEST()
569 GetChild(env->GetIsolate(), root, "start"); in TEST()
573 GetChild(env->GetIsolate(), startNode, "foo"); in TEST()
577 CheckSimpleBranch(env->GetIsolate(), fooNode, barBranch, in TEST()
580 CheckSimpleBranch(env->GetIsolate(), fooNode, bazBranch, in TEST()
583 CheckSimpleBranch(env->GetIsolate(), fooNode, delayBranch, in TEST()
620 v8::HandleScope scope(env->GetIsolate()); in TEST()
623 env->GetIsolate(), in TEST()
626 env->Global()->Get(v8::String::NewFromUtf8(env->GetIsolate(), "start"))); in TEST()
630 v8::Integer::New(env->GetIsolate(), profiling_interval_ms) in TEST()
640 env->GetIsolate(), ProfileGenerator::kGarbageCollectorEntryName); in TEST()
641 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
643 names[2] = v8::String::NewFromUtf8(env->GetIsolate(), "start"); in TEST()
647 GetChild(env->GetIsolate(), root, "start"); in TEST()
650 GetChild(env->GetIsolate(), startNode, "foo"); in TEST()
658 v8::HandleScope scope(env->GetIsolate()); in TEST()
660 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
663 env->Global()->Get(v8::String::NewFromUtf8(env->GetIsolate(), "start"))); in TEST()
667 v8::Integer::New(env->GetIsolate(), profiling_interval_ms) in TEST()
710 v8::HandleScope scope(env->GetIsolate()); in TEST()
713 env->GetIsolate(), cpu_profiler_test_source2))->Run(); in TEST()
715 env->Global()->Get(v8::String::NewFromUtf8(env->GetIsolate(), "start"))); in TEST()
723 v8::Integer::New(env->GetIsolate(), repeat_count) in TEST()
732 env->GetIsolate(), ProfileGenerator::kGarbageCollectorEntryName); in TEST()
733 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
735 names[2] = v8::String::NewFromUtf8(env->GetIsolate(), "start"); in TEST()
739 FindChild(env->GetIsolate(), root, "start"); in TEST()
745 GetChild(env->GetIsolate(), startNode, "delay"); in TEST()
748 GetChild(env->GetIsolate(), delayNode, "loop"); in TEST()
818 v8::Isolate* isolate = env->GetIsolate(); in TEST()
863 v8::Isolate* isolate = env->GetIsolate(); in TEST()
924 v8::Isolate* isolate = env->GetIsolate(); in TEST()
970 v8::Isolate* isolate = env->GetIsolate(); in TEST()
1042 v8::String::NewFromUtf8(env->GetIsolate(), bound_function_test_source)) in TEST()
1045 env->Global()->Get(v8::String::NewFromUtf8(env->GetIsolate(), "start"))); in TEST()
1052 env->GetIsolate(), ProfileGenerator::kGarbageCollectorEntryName); in TEST()
1053 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
1055 names[2] = v8::String::NewFromUtf8(env->GetIsolate(), "start"); in TEST()
1060 GetChild(env->GetIsolate(), root, "start"); in TEST()
1061 GetChild(env->GetIsolate(), startNode, "foo"); in TEST()
1093 v8::HandleScope scope(env->GetIsolate()); in TEST()
1099 env->GetIsolate(), call_function_test_source))->Run(); in TEST()
1101 env->Global()->Get(v8::String::NewFromUtf8(env->GetIsolate(), "start"))); in TEST()
1105 v8::Integer::New(env->GetIsolate(), duration_ms) in TEST()
1114 env->GetIsolate(), ProfileGenerator::kGarbageCollectorEntryName); in TEST()
1115 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
1117 names[2] = v8::String::NewFromUtf8(env->GetIsolate(), "start"); in TEST()
1119 env->GetIsolate(), i::ProfileGenerator::kUnresolvedFunctionName); in TEST()
1129 FindChild(env->GetIsolate(), root, "start"); in TEST()
1133 names[0] = v8::String::NewFromUtf8(env->GetIsolate(), "bar"); in TEST()
1134 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), "call"); in TEST()
1139 env->GetIsolate(), root, i::ProfileGenerator::kUnresolvedFunctionName); in TEST()
1142 names[0] = v8::String::NewFromUtf8(env->GetIsolate(), "call"); in TEST()
1177 v8::HandleScope scope(env->GetIsolate()); in TEST()
1180 v8::String::NewFromUtf8(env->GetIsolate(), function_apply_test_source)) in TEST()
1183 env->Global()->Get(v8::String::NewFromUtf8(env->GetIsolate(), "start"))); in TEST()
1187 v8::Integer::New(env->GetIsolate(), duration_ms) in TEST()
1197 env->GetIsolate(), ProfileGenerator::kGarbageCollectorEntryName); in TEST()
1198 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
1200 names[2] = v8::String::NewFromUtf8(env->GetIsolate(), "start"); in TEST()
1206 FindChild(env->GetIsolate(), root, "start"); in TEST()
1210 names[0] = v8::String::NewFromUtf8(env->GetIsolate(), "test"); in TEST()
1212 env->GetIsolate(), ProfileGenerator::kUnresolvedFunctionName); in TEST()
1217 FindChild(env->GetIsolate(), startNode, "test"); in TEST()
1220 names[0] = v8::String::NewFromUtf8(env->GetIsolate(), "bar"); in TEST()
1221 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), "apply"); in TEST()
1224 names[2] = v8::String::NewFromUtf8(env->GetIsolate(), "get length"); in TEST()
1229 FindChild(env->GetIsolate(), startNode, in TEST()
1232 names[0] = v8::String::NewFromUtf8(env->GetIsolate(), "apply"); in TEST()
1234 GetChild(env->GetIsolate(), unresolvedNode, "apply"); in TEST()
1271 env->GetIsolate(), cpu_profiler_deep_stack_test_source))->Run(); in TEST()
1273 env->Global()->Get(v8::String::NewFromUtf8(env->GetIsolate(), "start"))); in TEST()
1275 v8::CpuProfiler* cpu_profiler = env->GetIsolate()->GetCpuProfiler(); in TEST()
1277 v8::String::NewFromUtf8(env->GetIsolate(), "my_profile"); in TEST()
1288 env->GetIsolate(), ProfileGenerator::kGarbageCollectorEntryName); in TEST()
1289 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
1291 names[2] = v8::String::NewFromUtf8(env->GetIsolate(), "start"); in TEST()
1296 GetChild(env->GetIsolate(), root, "start"); in TEST()
1298 node = GetChild(env->GetIsolate(), node, "foo"); in TEST()
1341 env->GetIsolate(), CallJsFunction); in TEST()
1343 func->SetName(v8::String::NewFromUtf8(env->GetIsolate(), "CallJsFunction")); in TEST()
1345 v8::String::NewFromUtf8(env->GetIsolate(), "CallJsFunction"), func); in TEST()
1347 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
1350 env->Global()->Get(v8::String::NewFromUtf8(env->GetIsolate(), "start"))); in TEST()
1358 env->GetIsolate(), ProfileGenerator::kGarbageCollectorEntryName); in TEST()
1359 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
1361 names[2] = v8::String::NewFromUtf8(env->GetIsolate(), "start"); in TEST()
1366 GetChild(env->GetIsolate(), root, "start"); in TEST()
1369 GetChild(env->GetIsolate(), startNode, "CallJsFunction"); in TEST()
1373 GetChild(env->GetIsolate(), nativeFunctionNode, "bar"); in TEST()
1376 GetChild(env->GetIsolate(), barNode, "foo"); in TEST()
1410 env->GetIsolate(), CallJsFunction); in TEST()
1412 func->SetName(v8::String::NewFromUtf8(env->GetIsolate(), "CallJsFunction")); in TEST()
1414 v8::String::NewFromUtf8(env->GetIsolate(), "CallJsFunction"), func); in TEST()
1417 v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
1420 env->Global()->Get(v8::String::NewFromUtf8(env->GetIsolate(), "start"))); in TEST()
1427 env->GetIsolate(), ProfileGenerator::kGarbageCollectorEntryName); in TEST()
1428 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
1430 names[2] = v8::String::NewFromUtf8(env->GetIsolate(), "start"); in TEST()
1434 GetChild(env->GetIsolate(), root, "start"); in TEST()
1437 GetChild(env->GetIsolate(), startNode, "CallJsFunction"); in TEST()
1441 GetChild(env->GetIsolate(), nativeFunctionNode, "bar"); in TEST()
1448 GetChild(env->GetIsolate(), barNode, "foo"); in TEST()
1490 env->GetIsolate(), CallJsFunction); in TEST()
1492 func1->SetName(v8::String::NewFromUtf8(env->GetIsolate(), "CallJsFunction1")); in TEST()
1494 v8::String::NewFromUtf8(env->GetIsolate(), "CallJsFunction1"), func1); in TEST()
1497 env->GetIsolate(), CallJsFunction2)->GetFunction(); in TEST()
1498 func2->SetName(v8::String::NewFromUtf8(env->GetIsolate(), "CallJsFunction2")); in TEST()
1500 v8::String::NewFromUtf8(env->GetIsolate(), "CallJsFunction2"), func2); in TEST()
1503 v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
1506 env->Global()->Get(v8::String::NewFromUtf8(env->GetIsolate(), "start"))); in TEST()
1513 env->GetIsolate(), ProfileGenerator::kGarbageCollectorEntryName); in TEST()
1514 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
1516 names[2] = v8::String::NewFromUtf8(env->GetIsolate(), "start"); in TEST()
1520 GetChild(env->GetIsolate(), root, "start"); in TEST()
1523 GetChild(env->GetIsolate(), startNode, "CallJsFunction1"); in TEST()
1527 GetChild(env->GetIsolate(), nativeNode1, "bar"); in TEST()
1531 GetChild(env->GetIsolate(), barNode, "CallJsFunction2"); in TEST()
1534 GetChild(env->GetIsolate(), nativeNode2, "foo"); in TEST()
1546 v8::HandleScope scope(env->GetIsolate()); in TEST()
1547 v8::CpuProfiler* cpu_profiler = env->GetIsolate()->GetCpuProfiler(); in TEST()
1550 v8::String::NewFromUtf8(env->GetIsolate(), "my_profile"); in TEST()
1575 env->GetIsolate(), ProfileGenerator::kGarbageCollectorEntryName); in TEST()
1576 names[1] = v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
1578 names[2] = v8::String::NewFromUtf8(env->GetIsolate(), in TEST()
1583 GetChild(env->GetIsolate(), root, ProfileGenerator::kProgramEntryName); in TEST()
1588 GetChild(env->GetIsolate(), root, ProfileGenerator::kIdleEntryName); in TEST()
1637 const v8::CpuProfileNode* script = GetChild(env->GetIsolate(), root, ""); in TEST()
1638 CheckFunctionDetails(env->GetIsolate(), script, "", "script_b", in TEST()
1640 const v8::CpuProfileNode* baz = GetChild(env->GetIsolate(), script, "baz"); in TEST()
1641 CheckFunctionDetails(env->GetIsolate(), baz, "baz", "script_b", in TEST()
1643 const v8::CpuProfileNode* foo = GetChild(env->GetIsolate(), baz, "foo"); in TEST()
1644 CheckFunctionDetails(env->GetIsolate(), foo, "foo", "script_a", in TEST()
1646 const v8::CpuProfileNode* bar = GetChild(env->GetIsolate(), foo, "bar"); in TEST()
1647 CheckFunctionDetails(env->GetIsolate(), bar, "bar", "script_a", in TEST()
1656 v8::Isolate* isolate = env->GetIsolate(); in TEST()
1658 v8::CpuProfiler* profiler = env->GetIsolate()->GetCpuProfiler(); in TEST()