D | test-func-name-inference.cc | 45 using ::v8::internal::Script; 51 static void CheckFunctionName(v8::Handle<v8::Script> script, in CheckFunctionName() argument 57 // Get script source. in CheckFunctionName() 58 Handle<Object> obj = v8::Utils::OpenHandle(*script); in CheckFunctionName() 67 Handle<Script> i_script(Script::cast(shared_function->script())); in CheckFunctionName() 95 static v8::Handle<v8::Script> Compile(v8::Isolate* isolate, const char* src) { in Compile() 96 return v8::Script::Compile(v8::String::NewFromUtf8(isolate, src)); in Compile() 104 v8::Handle<v8::Script> script = Compile( in TEST() local 108 CheckFunctionName(script, "return 1", "fun1"); in TEST() 109 CheckFunctionName(script, "return 2", "fun2"); in TEST() [all …]
|