Home | History | Annotate | Download | only in cctest

Lines Matching defs:env

557   v8::Local<v8::Context> env = CcTest::NewContext(PROFILER_EXTENSION);
558 v8::Context::Scope context_scope(env);
632 v8::Local<v8::Context> env = CcTest::NewContext(PROFILER_EXTENSION);
633 v8::Context::Scope context_scope(env);
635 v8::CpuProfiler* profiler = env->GetIsolate()->GetCpuProfiler();
639 env->GetIsolate(), "function a() { startProfiling(); }\n"));
642 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(),
690 int GetFunctionLineNumber(LocalContext* env, const char* name) {
695 (*(*env))->Global()->Get(v8_str(name))));
707 LocalContext env;
722 CHECK_EQ(1, GetFunctionLineNumber(&env, "foo_at_the_first_line"));
723 CHECK_EQ(0, GetFunctionLineNumber(&env, "lazy_func_at_forth_line"));
724 CHECK_EQ(2, GetFunctionLineNumber(&env, "bar_at_the_second_line"));
725 CHECK_EQ(0, GetFunctionLineNumber(&env, "lazy_func_at_6th_line"));
734 v8::Local<v8::Context> env = CcTest::NewContext(PROFILER_EXTENSION);
735 v8::Context::Scope context_scope(env);
737 v8::CpuProfiler* profiler = env->GetIsolate()->GetCpuProfiler();
741 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(),