Lines Matching refs:v8
1 // Copyright 2007-2008 the V8 project authors. All rights reserved.
28 #include "v8.h"
34 using namespace v8::internal;
107 v8::Persistent<v8::Context> env = v8::Context::New();
108 v8::HandleScope scope;
129 v8::Persistent<v8::Context> env = v8::Context::New();
130 v8::HandleScope scope;
150 env->Global()->Set(v8::String::New("Foo"), v8::Utils::ToLocal(function));
152 v8::Handle<v8::Value> result =
153 v8::Script::Compile(v8::String::New("(new Foo).get"))->Run();
167 // Use the lower half of the V8::Random() generator.