HomeSort by relevance Sort by last modified time
    Searched refs:GetIsolate (Results 1 - 25 of 220) sorted by null

1 2 3 4 5 6 7 8 9

  /external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/
V8CryptoCustom.cpp 44 throwNotEnoughArgumentsError(args.GetIsolate());
49 if (!V8ArrayBufferView::HasInstance(buffer, args.GetIsolate(), worldType(args.GetIsolate()))) {
50 throwTypeError("First argument is not an ArrayBufferView", args.GetIsolate());
57 ExceptionState es(args.GetIsolate());
V8AudioBufferSourceNodeCustom.cpp 44 if (V8AudioBuffer::HasInstance(value, info.GetIsolate(), worldType(info.GetIsolate()))) {
47 throwTypeError("AudioBuffer unsupported number of channels", info.GetIsolate());
53 throwTypeError("Value is not of type AudioBuffer", info.GetIsolate());
V8DedicatedWorkerGlobalScopeCustom.cpp 50 if (!extractTransferables(args[1], ports, arrayBuffers, args.GetIsolate()))
59 args.GetIsolate());
62 ExceptionState es(args.GetIsolate());
V8HTMLMediaElementCustom.cpp 38 if (!V8MediaController::HasInstance(value, info.GetIsolate(), worldType(info.GetIsolate()))) {
39 throwTypeError("Value is not of type MediaController", info.GetIsolate());
V8MessagePortCustom.cpp 49 if (!extractTransferables(args[1], portArray, arrayBufferArray, args.GetIsolate()))
58 args.GetIsolate());
61 ExceptionState es(args.GetIsolate());
V8WorkerCustom.cpp 51 if (!extractTransferables(args[1], ports, arrayBuffers, args.GetIsolate()))
60 args.GetIsolate());
63 ExceptionState es(args.GetIsolate());
V8MutationObserverCustom.cpp 46 throwNotEnoughArgumentsError(args.GetIsolate());
52 throwTypeError("Callback argument must be a function", args.GetIsolate());
59 RefPtr<MutationCallback> callback = V8MutationCallback::create(v8::Handle<v8::Function>::Cast(arg), context, wrapper, args.GetIsolate());
62 V8DOMWrapper::associateObjectWithWrapper<V8MutationObserver>(observer.release(), &info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent);
V8FormDataCustom.cpp 45 if (args.Length() > 0 && V8HTMLFormElement::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate())))
50 V8DOMWrapper::associateObjectWithWrapper<V8FormData>(domFormData.release(), &info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent);
57 throwError(v8SyntaxError, "Not enough arguments", args.GetIsolate());
66 if (V8Blob::HasInstance(arg, args.GetIsolate(), worldType(args.GetIsolate()))) {
V8SQLResultSetRowListCustom.cpp 43 throwError(v8SyntaxError, "Item index is required.", args.GetIsolate());
48 throwTypeError("Item index must be a number.", args.GetIsolate());
56 throwError(v8RangeError, "Item index is out of range.", args.GetIsolate());
69 value = v8String(sqlValue.string(), args.GetIsolate());
72 value = v8::Null(args.GetIsolate());
81 item->Set(v8String(rowList->columnNames()[i], args.GetIsolate()), value, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly));
V8SVGLengthCustom.cpp 46 ExceptionState es(info.GetIsolate());
58 setDOMException(NoModificationAllowedError, info.GetIsolate());
63 throwTypeError(info.GetIsolate());
68 ExceptionState es(info.GetIsolate());
80 setDOMException(NoModificationAllowedError, args.GetIsolate());
85 throwNotEnoughArgumentsError(args.GetIsolate());
90 ExceptionState es(args.GetIsolate());
V8BlobCustom.cpp 58 args.GetReturnValue().Set(toV8(blob.get(), args.Holder(), args.GetIsolate()));
64 throwTypeError("First argument of the constructor is not of type Array", args.GetIsolate());
73 throwTypeError("Second argument of the constructor is not of type Object", args.GetIsolate());
77 V8TRYCATCH_VOID(Dictionary, dictionary, Dictionary(args[1], args.GetIsolate()));
82 throwTypeError("The endings property must be either \"transparent\" or \"native\"", args.GetIsolate());
90 throwError(v8SyntaxError, "type must consist of ASCII characters", args.GetIsolate());
106 if (V8ArrayBuffer::HasInstance(item, args.GetIsolate(), worldType(args.GetIsolate()))) {
110 } else if (V8ArrayBufferView::HasInstance(item, args.GetIsolate(), worldType(args.GetIsolate()))) {
    [all...]
V8AudioContextCustom.cpp 54 throwError(v8SyntaxError, "audio resources unavailable for AudioContext construction", args.GetIsolate());
68 throwError(v8SyntaxError, "Error creating AudioContext", args.GetIsolate());
74 V8DOMWrapper::associateObjectWithWrapper<V8AudioContext>(audioContext.release(), &info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent);
V8MessageChannelCustom.cpp 58 V8HiddenPropertyName::setNamedHiddenReference(wrapper, "port1", toV8(obj->port1(), args.Holder(), args.GetIsolate()));
59 V8HiddenPropertyName::setNamedHiddenReference(wrapper, "port2", toV8(obj->port2(), args.Holder(), args.GetIsolate()));
61 V8DOMWrapper::associateObjectWithWrapper<V8MessageChannel>(obj.release(), &info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent);
V8MessageEventCustom.cpp 58 v8::Local<v8::Value> mainWorldData = getHiddenValueFromMainWorldWrapper(info.GetIsolate(), event, V8HiddenPropertyName::data());
60 event->setSerializedData(SerializedScriptValue::createAndSwallowExceptions(mainWorldData, info.GetIsolate()));
63 result = event->dataAsSerializedScriptValue()->deserialize(info.GetIsolate());
65 result = v8::Null(info.GetIsolate());
73 result = serializedValue->deserialize(info.GetIsolate(), &ports);
75 result = v8::Null(info.GetIsolate());
81 result = v8String(stringValue, info.GetIsolate());
114 v8::Handle<v8::Object> window = wrapper->FindInstanceInPrototypeChain(V8Window::GetTemplate(args.GetIsolate(), worldTypeInMainThread(args.GetIsolate())));
122 if (!getMessagePortArray(args[7], *portArray, args.GetIsolate()))
    [all...]
V8DocumentCustom.cpp 66 ExceptionState es(args.GetIsolate());
69 if (V8Node::HasInstance(args[1], args.GetIsolate(), worldType(args.GetIsolate())))
72 RefPtr<XPathNSResolver> resolver = toXPathNSResolver(args[2], args.GetIsolate());
74 setDOMException(TypeMismatchError, args.GetIsolate());
80 if (V8XPathResult::HasInstance(args[4], args.GetIsolate(), worldType(args.GetIsolate())))
116 v8SetReturnValue(args, toV8(touchList.release(), args.Holder(), args.GetIsolate()));
V8HTMLSelectElementCustom.cpp 54 if (V8HTMLOptionElement::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate()))) {
V8WebGLRenderingContextCustom.cpp 265 throwNotEnoughArgumentsError(args.GetIsolate());
291 v8SetReturnValue(args, toV8Object(info, args.Holder(), args.GetIsolate()));
312 throwNotEnoughArgumentsError(args.GetIsolate());
317 if (args.Length() > 0 && !isUndefinedOrNull(args[0]) && !V8WebGLProgram::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate()))) {
318 throwTypeError(args.GetIsolate());
321 WebGLProgram* program = V8WebGLProgram::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8WebGLProgram::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0;
330 array->Set(v8::Integer::New(ii, args.GetIsolate()), toV8(shaders[ii].get(), args.Holder(), args.GetIsolate()));
    [all...]
V8NodeCustom.cpp 69 ExceptionState es(args.GetIsolate());
70 Node* newChild = V8Node::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0;
71 Node* refChild = V8Node::HasInstance(args[1], args.GetIsolate(), worldType(args.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(args[1])) : 0;
86 ExceptionState es(args.GetIsolate());
87 Node* newChild = V8Node::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0;
88 Node* oldChild = V8Node::HasInstance(args[1], args.GetIsolate(), worldType(args.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(args[1])) : 0
    [all...]
V8PannerNodeCustom.cpp 45 throwTypeError("Illegal panningModel", info.GetIsolate());
57 throwTypeError("Illegal panningModel", info.GetIsolate());
69 throwTypeError("Illegal distanceModel", info.GetIsolate());
81 throwTypeError("Illegal distanceModel", info.GetIsolate());
V8ClipboardCustom.cpp 60 result->Set(v8::Integer::New(index, info.GetIsolate()), v8String(*it, info.GetIsolate()));
75 throwError(v8SyntaxError, "clearData: Invalid number of arguments", args.GetIsolate());
91 throwError(v8SyntaxError, "setDragImage: Invalid number of arguments", args.GetIsolate());
99 if (V8Node::HasInstance(args[0], args.GetIsolate(), worldType(args.GetIsolate())))
103 throwTypeError("setDragImageFromElement: Invalid first argument", args.GetIsolate());
V8CustomEventCustom.cpp 68 v8::Local<v8::Value> mainWorldDetail = getHiddenValueFromMainWorldWrapper(info.GetIsolate(), event, V8HiddenPropertyName::detail());
70 event->setSerializedDetail(SerializedScriptValue::createAndSwallowExceptions(mainWorldDetail, info.GetIsolate()));
79 v8SetReturnValue(info, cacheState(info.Holder(), v8::Null(info.GetIsolate())));
96 if (isolatedWorldForIsolate(args.GetIsolate()))
97 event->setSerializedDetail(SerializedScriptValue::createAndSwallowExceptions(detailsArg, args.GetIsolate()));
V8PopStateEventCustom.cpp 64 v8::Local<v8::Value> mainWorldState = getHiddenValueFromMainWorldWrapper(info.GetIsolate(), event, V8HiddenPropertyName::state());
66 event->setSerializedState(SerializedScriptValue::createAndSwallowExceptions(mainWorldState, info.GetIsolate()));
71 result = v8::Null(info.GetIsolate());
93 result = event->serializedState()->deserialize(info.GetIsolate());
96 result = event->serializedState()->deserialize(info.GetIsolate());
V8XMLHttpRequestCustom.cpp 65 V8DOMWrapper::associateObjectWithWrapper<V8XMLHttpRequest>(xmlHttpRequest.release(), &info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent);
72 ExceptionState es(info.GetIsolate());
77 v8SetReturnValueString(info, emptyString(), info.GetIsolate());
95 ExceptionState es(info.GetIsolate());
105 ExceptionState es(info.GetIsolate());
115 ExceptionState es(info.GetIsolate());
138 throwNotEnoughArgumentsError(args.GetIsolate());
150 ExceptionState es(args.GetIsolate());
186 ExceptionState es(args.GetIsolate());
191 WrapperWorldType currentWorldType = worldType(args.GetIsolate());
    [all...]
V8HistoryCustom.cpp 56 value = serialized ? serialized->deserialize(info.GetIsolate()) : v8::Handle<v8::Value>(v8::Null(info.GetIsolate()));
65 RefPtr<SerializedScriptValue> historyState = SerializedScriptValue::create(args[0], 0, 0, didThrow, args.GetIsolate());
72 ExceptionState es(args.GetIsolate());
82 RefPtr<SerializedScriptValue> historyState = SerializedScriptValue::create(args[0], 0, 0, didThrow, args.GetIsolate());
89 ExceptionState es(args.GetIsolate());
  /external/chromium_org/chrome/renderer/extensions/
scoped_persistent.h 31 handle_.Reset(GetIsolate(handle), handle);
57 return v8::Local<T>::New(GetIsolate(handle_), handle_);
68 static v8::Isolate* GetIsolate(v8::Handle<U> object_handle) {
72 return GetIsolate(object_handle->CreationContext());
75 static v8::Isolate* GetIsolate(v8::Handle<v8::Context> context_handle) {
77 return context_handle->GetIsolate();
80 static v8::Isolate* GetIsolate(

Completed in 385 milliseconds

1 2 3 4 5 6 7 8 9