Lines Matching refs:v8
7 namespace v8 {
30 typedef SimpleStringResource<char, v8::String::ExternalOneByteStringResource>
32 typedef SimpleStringResource<uc16, v8::String::ExternalStringResource>
40 v8::Handle<v8::FunctionTemplate>
42 v8::Isolate* isolate, v8::Handle<v8::String> str) {
43 if (strcmp(*v8::String::Utf8Value(str), "externalizeString") == 0) {
44 return v8::FunctionTemplate::New(isolate,
47 DCHECK(strcmp(*v8::String::Utf8Value(str), "isOneByteString") == 0);
48 return v8::FunctionTemplate::New(isolate,
55 const v8::FunctionCallbackInfo<v8::Value>& args) {
57 args.GetIsolate()->ThrowException(v8::String::NewFromUtf8(
67 args.GetIsolate()->ThrowException(v8::String::NewFromUtf8(
74 Handle<String> string = Utils::OpenHandle(*args[0].As<v8::String>());
76 args.GetIsolate()->ThrowException(v8::String::NewFromUtf8(
105 args.GetIsolate()->ThrowException(v8::String::NewFromUtf8(
113 const v8::FunctionCallbackInfo<v8::Value>& args) {
115 args.GetIsolate()->ThrowException(v8::String::NewFromUtf8(
121 Utils::OpenHandle(*args[0].As<v8::String>())->IsOneByteRepresentation();
125 } } // namespace v8::internal