Lines Matching refs:GetIsolate

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